Skip to content

Commit d47a3da

Browse files
authored
fix: Disable experimental require module to make node 20.19 and above work (openscd#1709)
1 parent 4311e94 commit d47a3da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
],
99
"scripts": {
1010
"clean": "lerna run clean",
11-
"build": "npx nx run-many -t build --all",
11+
"build": "NODE_OPTIONS=--no-experimental-require-module npx nx run-many -t build --all",
1212
"doc": "lerna run doc",
1313
"test": "npx nx run-many -t test --all --parallel=false",
1414
"graph": "npx nx graph",
15-
"start": "npx rimraf packages/distribution/node_modules/.cache/snowpack/build/[email protected] && lerna run start",
15+
"start": "npx rimraf packages/distribution/node_modules/.cache/snowpack/build/[email protected] && NODE_OPTIONS=--no-experimental-require-module lerna run start",
1616
"serve": "nx run @openscd/distribution:serve"
1717
},
1818
"repository": {

0 commit comments

Comments
 (0)