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.
2 parents 5954aa1 + f8f6a34 commit 9005798Copy full SHA for 9005798
package.json
@@ -34,7 +34,7 @@
34
"prebuild": "npm run clean && npm run lint && mkdir dist",
35
"build": "npm run build:esm && npm run build:cjs",
36
"build:esm": "tsc",
37
- "build:cjs": "tsc --module commonjs --outDir dist/cjs",
+ "build:cjs": "tsc --module commonjs --outDir dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
38
"clean": "rm -rf dist",
39
"lint": "eslint --report-unused-disable-directives . --color --ext .js,.ts,.tsx && tsc --noEmit",
40
"prepublishOnly": "npm run build",
0 commit comments