We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
type: commonjs
1 parent 5954aa1 commit f8f6a34Copy full SHA for f8f6a34
1 file changed
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