We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc58674 commit 77c70c7Copy full SHA for 77c70c7
fixup.sh
@@ -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
package.json
@@ -24,7 +24,7 @@
24
"scripts": {
25
"build:esm": "tsc -p tsconfig.build.json",
26
"build:cjs": "tsc -p tsconfig.cjs.json",
27
- "build": "npm run build:cjs && npm run build:esm",
+ "build": "npm run build:cjs && npm run build:esm && ./fixup.sh",
28
"test": "jest",
29
"test-e2e": "jest --config ./e2e/jest.config.js",
30
"lint": "eslint src/**/*.ts"
0 commit comments