Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit ddf6c72

Browse files
authored
Update package.json
1 parent 1e782b4 commit ddf6c72

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"types": "./dist/index.d.ts"
1313
}
1414
},
15-
"scripts": {
16-
"build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && cp dist/cjs/index.js dist/index.js && cp dist/esm/index.mjs dist/index.mjs && cp dist/cjs/index.d.ts dist/index.d.ts",
17-
"start": "node dist/index.js",
18-
"test": "jest",
19-
"prepublishOnly": "npm run build",
20-
"prepare": "npm run build"
21-
},
15+
"scripts": {
16+
"build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && test -e dist/esm/index.mjs && mv dist/cjs/index.js dist/index.js && mv dist/esm/index.mjs dist/index.mjs && mv dist/cjs/index.d.ts dist/index.d.ts",
17+
"start": "node dist/index.js",
18+
"test": "jest",
19+
"prepublishOnly": "npm run build",
20+
"prepare": "npm run build"
21+
},
2222
"files": [
2323
"dist/",
2424
"README.md",

0 commit comments

Comments
 (0)