Skip to content

Commit db1ee07

Browse files
author
Lukas Holzer
committed
chore: add a package.json for cjs in dist with correct type
1 parent 001f2e2 commit db1ee07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"scripts": {
2222
"prebuild": "rm -rf dist",
2323
"build": "tsc -b tsconfig.esm.json tsconfig.cjs.json tsconfig.types.json",
24+
"postbuild": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
2425
"dev": "npm run build -- --watch",
2526
"prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/",
2627
"prepublishOnly": "npm ci && npm test",

0 commit comments

Comments
 (0)