Skip to content

Commit 77c70c7

Browse files
author
Zolboobayar Gantumur
committed
1 parent cc58674 commit 77c70c7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

fixup.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
cat >lib/cjs/package.json <<!EOF
3+
{
4+
"type": "commonjs"
5+
}
6+
!EOF
7+
8+
cat >lib/esm/package.json <<!EOF
9+
{
10+
"type": "module"
11+
}
12+
!EOF

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"build:esm": "tsc -p tsconfig.build.json",
2626
"build:cjs": "tsc -p tsconfig.cjs.json",
27-
"build": "npm run build:cjs && npm run build:esm",
27+
"build": "npm run build:cjs && npm run build:esm && ./fixup.sh",
2828
"test": "jest",
2929
"test-e2e": "jest --config ./e2e/jest.config.js",
3030
"lint": "eslint src/**/*.ts"

0 commit comments

Comments
 (0)