Skip to content

Commit d6ee7f8

Browse files
authored
fix: Set correct module type in basic package (#729)
1 parent 3bf96a6 commit d6ee7f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/basic-setup/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
},
1919
"scripts": {
2020
"watch": "tsbb watch src/*.ts --use-babel",
21-
"build": "tsbb build src/*.ts --use-babel"
21+
"build": "tsbb build src/*.ts --use-babel && npm run setmodule",
22+
"setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json"
2223
},
2324
"repository": {
2425
"type": "git",

0 commit comments

Comments
 (0)