Skip to content

Commit bd0ccd8

Browse files
committed
Fix missing "type": "commonjs" in dist/cjs directory
1 parent c76872d commit bd0ccd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build": "yarn build-esm && yarn build-cjs",
1717
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
18-
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
18+
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
1919
"clean": "rimraf dist",
2020
"lint": "eslint .",
2121
"postinstall": "husky install",

0 commit comments

Comments
 (0)