We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76872d commit bd0ccd8Copy full SHA for bd0ccd8
package.json
@@ -15,7 +15,7 @@
15
"scripts": {
16
"build": "yarn build-esm && yarn build-cjs",
17
"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",
+ "build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
19
"clean": "rimraf dist",
20
"lint": "eslint .",
21
"postinstall": "husky install",
0 commit comments