Skip to content

Commit d3de676

Browse files
committed
build: Generate package.json type only for esm
1 parent 509aa8a commit d3de676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"node": ">=18"
4747
},
4848
"scripts": {
49-
"build": "npm run clean && tsc && rollup -c && npm run build-lib-packages",
50-
"build-lib-packages": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
49+
"build": "npm run clean && tsc && rollup -c && npm run build-esm-packages",
50+
"build-esm-packages": "echo '{\"type\":\"module\"}' > lib/esm/package.json",
5151
"clean": "rimraf ./lib",
5252
"lint": "eslint .",
5353
"format": "prettier --write .",

0 commit comments

Comments
 (0)