Skip to content

Commit 0b3eddb

Browse files
committed
chore: fix ci build after node v20 update
1 parent 10f1739 commit 0b3eddb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

packages/react-google-charts/.storybook/main.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { dirname, join } from "path";
2-
const path = require("path");
1+
import { dirname, join, resolve } from "path";
2+
import { createRequire } from "module";
33

4-
module.exports = {
4+
const require = createRequire(import.meta.url);
5+
6+
export default {
57
stories: ["../stories/*.tsx"],
68

79
addons: [
@@ -13,10 +15,7 @@ module.exports = {
1315
],
1416

1517
webpackFinal(config) {
16-
config.resolve.alias["react-google-charts"] = path.resolve(
17-
__dirname,
18-
"../src",
19-
);
18+
config.resolve.alias["react-google-charts"] = resolve(__dirname, "../src");
2019
return config;
2120
},
2221

packages/react-google-charts/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { default as swc } from "rollup-plugin-swc";
22
import { nodeResolve } from "@rollup/plugin-node-resolve";
3-
import pkg from "./package.json" assert { type: "json" };
3+
import pkg from "./package.json" with { type: "json" };
44

55
const swcPlugin = swc.default;
66
const extensions = [".js", ".ts", ".tsx"];

0 commit comments

Comments
 (0)