Skip to content

Commit ee12219

Browse files
committed
fix: Fix update-extensions script execution
1 parent b2b762b commit ee12219

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "npm run lint && rollup --config rollup.config.ts --configPlugin typescript && npm run generate-types",
88
"generate-types": "tsc --project tsconfig.types.json",
9-
"update-extensions": "ts-node update-extensions.ts",
9+
"update-extensions": "node --loader ts-node/esm update-extensions.ts",
1010
"lint": "eslint --ext .ts src update-extensions.ts"
1111
},
1212
"repository": {

tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"exclude": [
2424
"dist",
2525
"node_modules"
26-
]
26+
],
27+
"ts-node": {
28+
"compilerOptions": {
29+
"module": "commonjs"
30+
}
31+
}
2732
}

0 commit comments

Comments
 (0)