Skip to content

Commit bfcca91

Browse files
authored
fix: Set correct module type in all packages (#763)
1 parent d61fc4f commit bfcca91

File tree

46 files changed

+93
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+93
-47
lines changed

extensions/classname/package.json

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

extensions/color/package.json

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

extensions/events/package.json

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

extensions/hyper-link/package.json

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

extensions/langs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
},
1818
"scripts": {
1919
"watch": "tsbb watch src/*.ts --use-babel",
20-
"build": "npm run gen && tsbb build src/*.ts --use-babel",
21-
"gen": "node gen-langs-map.cjs ../../node_modules/@codemirror/language-data/dist/index.cjs > src/index.ts"
20+
"build": "npm run gen && tsbb build src/*.ts --use-babel && npm run setmodule",
21+
"gen": "node gen-langs-map.cjs ../../node_modules/@codemirror/language-data/dist/index.cjs > src/index.ts",
22+
"setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json"
2223
},
2324
"repository": {
2425
"type": "git",

extensions/line-numbers-relative/package.json

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

extensions/mentions/package.json

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

extensions/zebra-stripes/package.json

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

merge/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"scripts": {
1919
"watch": "tsbb watch src/*.tsx --use-babel",
20-
"build": "tsbb build src/*.tsx --use-babel",
20+
"build": "tsbb build src/*.tsx --use-babel && npm run setmodule",
21+
"setmodule": "echo '{\"type\":\"module\"}' > esm/package.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
2122
"test": "tsbb test --env=jsdom",
2223
"coverage": "tsbb test --env=jsdom --coverage --bail"
2324
},

themes/abcdef/package.json

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

0 commit comments

Comments
 (0)