diff --git a/extensions/classname/package.json b/extensions/classname/package.json index 20eb49915..b672683f2 100644 --- a/extensions/classname/package.json +++ b/extensions/classname/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/color/package.json b/extensions/color/package.json index 4c9a9d041..631a025e8 100644 --- a/extensions/color/package.json +++ b/extensions/color/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/events/package.json b/extensions/events/package.json index dc8b8b60e..b369f12ad 100644 --- a/extensions/events/package.json +++ b/extensions/events/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/hyper-link/package.json b/extensions/hyper-link/package.json index 10e1263de..d9d48b855 100644 --- a/extensions/hyper-link/package.json +++ b/extensions/hyper-link/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/langs/package.json b/extensions/langs/package.json index a6b75eaa9..8bd6b7570 100644 --- a/extensions/langs/package.json +++ b/extensions/langs/package.json @@ -17,8 +17,9 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "npm run gen && tsbb build src/*.ts --use-babel", - "gen": "node gen-langs-map.cjs ../../node_modules/@codemirror/language-data/dist/index.cjs > src/index.ts" + "build": "npm run gen && tsbb build src/*.ts --use-babel && npm run setmodule", + "gen": "node gen-langs-map.cjs ../../node_modules/@codemirror/language-data/dist/index.cjs > src/index.ts", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/line-numbers-relative/package.json b/extensions/line-numbers-relative/package.json index 0f4cd3c03..a62679454 100644 --- a/extensions/line-numbers-relative/package.json +++ b/extensions/line-numbers-relative/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/mentions/package.json b/extensions/mentions/package.json index a0c4a72e1..b962dedbb 100644 --- a/extensions/mentions/package.json +++ b/extensions/mentions/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/extensions/zebra-stripes/package.json b/extensions/zebra-stripes/package.json index d9fc9ac59..df35d6b8d 100644 --- a/extensions/zebra-stripes/package.json +++ b/extensions/zebra-stripes/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/merge/package.json b/merge/package.json index 564c45aca..3ea6c1f60 100644 --- a/merge/package.json +++ b/merge/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.tsx --use-babel", - "build": "tsbb build src/*.tsx --use-babel", + "build": "tsbb build src/*.tsx --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json", "test": "tsbb test --env=jsdom", "coverage": "tsbb test --env=jsdom --coverage --bail" }, diff --git a/themes/abcdef/package.json b/themes/abcdef/package.json index db7ba1a19..70436c389 100644 --- a/themes/abcdef/package.json +++ b/themes/abcdef/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/abyss/package.json b/themes/abyss/package.json index ae4a93a74..e6499a9d5 100644 --- a/themes/abyss/package.json +++ b/themes/abyss/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/all/package.json b/themes/all/package.json index dbdf37dbe..d5806b868 100644 --- a/themes/all/package.json +++ b/themes/all/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/androidstudio/package.json b/themes/androidstudio/package.json index 8130655f4..6f1c7724f 100644 --- a/themes/androidstudio/package.json +++ b/themes/androidstudio/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/andromeda/package.json b/themes/andromeda/package.json index 8450478d1..fc8786d02 100644 --- a/themes/andromeda/package.json +++ b/themes/andromeda/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/atomone/package.json b/themes/atomone/package.json index d5c5a1652..30af21992 100644 --- a/themes/atomone/package.json +++ b/themes/atomone/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/aura/package.json b/themes/aura/package.json index 5e3219ac3..19d83735b 100644 --- a/themes/aura/package.json +++ b/themes/aura/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/basic/package.json b/themes/basic/package.json index c4d340f2d..e863e7eb5 100644 --- a/themes/basic/package.json +++ b/themes/basic/package.json @@ -28,7 +28,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/bbedit/package.json b/themes/bbedit/package.json index d40a6eba4..36a999369 100644 --- a/themes/bbedit/package.json +++ b/themes/bbedit/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/bespin/package.json b/themes/bespin/package.json index fdae71d48..ac388c090 100644 --- a/themes/bespin/package.json +++ b/themes/bespin/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/console/package.json b/themes/console/package.json index a47a750c8..3d05f0669 100644 --- a/themes/console/package.json +++ b/themes/console/package.json @@ -27,7 +27,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/copilot/package.json b/themes/copilot/package.json index 576cc458d..87160e9da 100644 --- a/themes/copilot/package.json +++ b/themes/copilot/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/darcula/package.json b/themes/darcula/package.json index a5447992a..04eac50c9 100644 --- a/themes/darcula/package.json +++ b/themes/darcula/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/dracula/package.json b/themes/dracula/package.json index ccf4b8e6b..0f2d3b8c5 100644 --- a/themes/dracula/package.json +++ b/themes/dracula/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/duotone/package.json b/themes/duotone/package.json index 81e12f1a5..7a9405c09 100644 --- a/themes/duotone/package.json +++ b/themes/duotone/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/eclipse/package.json b/themes/eclipse/package.json index 346295792..4a080693a 100644 --- a/themes/eclipse/package.json +++ b/themes/eclipse/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/github/package.json b/themes/github/package.json index 8912b3000..ef0636fbe 100644 --- a/themes/github/package.json +++ b/themes/github/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/gruvbox/package.json b/themes/gruvbox/package.json index e26742cae..8be3aac11 100644 --- a/themes/gruvbox/package.json +++ b/themes/gruvbox/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/kimbie/package.json b/themes/kimbie/package.json index 0571bdd94..453a622ea 100644 --- a/themes/kimbie/package.json +++ b/themes/kimbie/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/material/package.json b/themes/material/package.json index 891d25382..83192022f 100644 --- a/themes/material/package.json +++ b/themes/material/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/monokai-dimmed/package.json b/themes/monokai-dimmed/package.json index 4a80bff33..d822c8241 100644 --- a/themes/monokai-dimmed/package.json +++ b/themes/monokai-dimmed/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/monokai/package.json b/themes/monokai/package.json index d0b3d0427..6ed81dcff 100644 --- a/themes/monokai/package.json +++ b/themes/monokai/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/noctis-lilac/package.json b/themes/noctis-lilac/package.json index 8e0eeb919..c30924930 100644 --- a/themes/noctis-lilac/package.json +++ b/themes/noctis-lilac/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/nord/package.json b/themes/nord/package.json index 2cf129cc9..96b7bec69 100644 --- a/themes/nord/package.json +++ b/themes/nord/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/okaidia/package.json b/themes/okaidia/package.json index b2c5859ad..8668859f7 100644 --- a/themes/okaidia/package.json +++ b/themes/okaidia/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/quietlight/package.json b/themes/quietlight/package.json index 1d7f67038..25f117e76 100644 --- a/themes/quietlight/package.json +++ b/themes/quietlight/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/red/package.json b/themes/red/package.json index 4a57f9a0c..e5b534091 100644 --- a/themes/red/package.json +++ b/themes/red/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/solarized/package.json b/themes/solarized/package.json index 7a518cad7..531f9aaf4 100644 --- a/themes/solarized/package.json +++ b/themes/solarized/package.json @@ -28,7 +28,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/sublime/package.json b/themes/sublime/package.json index c2761801c..e3ad53f04 100644 --- a/themes/sublime/package.json +++ b/themes/sublime/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/theme/package.json b/themes/theme/package.json index 9e7d39779..6003f05e6 100644 --- a/themes/theme/package.json +++ b/themes/theme/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.tsx --use-babel", - "build": "tsbb build src/*.tsx --use-babel" + "build": "tsbb build src/*.tsx --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/tokyo-night-day/package.json b/themes/tokyo-night-day/package.json index dd7a236ac..0d8c473b3 100644 --- a/themes/tokyo-night-day/package.json +++ b/themes/tokyo-night-day/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/tokyo-night-storm/package.json b/themes/tokyo-night-storm/package.json index 1493ed7a5..3bfda0e3d 100644 --- a/themes/tokyo-night-storm/package.json +++ b/themes/tokyo-night-storm/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/tokyo-night/package.json b/themes/tokyo-night/package.json index c8169d180..6b1c35bd2 100644 --- a/themes/tokyo-night/package.json +++ b/themes/tokyo-night/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/tomorrow-night-blue/package.json b/themes/tomorrow-night-blue/package.json index fe1e65c10..874f52fb2 100644 --- a/themes/tomorrow-night-blue/package.json +++ b/themes/tomorrow-night-blue/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/vscode/package.json b/themes/vscode/package.json index 37dc4463d..4ea447f21 100644 --- a/themes/vscode/package.json +++ b/themes/vscode/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/white/package.json b/themes/white/package.json index 238ee9db7..d9bb7024e 100644 --- a/themes/white/package.json +++ b/themes/white/package.json @@ -28,7 +28,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git", diff --git a/themes/xcode/package.json b/themes/xcode/package.json index ad9594802..f2174bcf7 100644 --- a/themes/xcode/package.json +++ b/themes/xcode/package.json @@ -17,7 +17,8 @@ }, "scripts": { "watch": "tsbb watch src/*.ts --use-babel", - "build": "tsbb build src/*.ts --use-babel" + "build": "tsbb build src/*.ts --use-babel && npm run setmodule", + "setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json" }, "repository": { "type": "git",