Skip to content

Commit 70cbcd0

Browse files
authored
Merge pull request #28 from xconnio/use-prepare-script
use prepare script
2 parents 4ca9daa + 8de938e commit 70cbcd0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
},
1212
"types": "ts-built/index.d.ts",
1313
"scripts": {
14-
"postinstall": "npm run build",
14+
"prepare": "npm run build",
15+
"postinstall": "npm run postinstall:build",
16+
"postinstall:build": "if [ ! -f ts-built/index.js ]; then npm run build; fi",
1517
"build": "rollup -c",
1618
"test": "NODE_OPTIONS=--experimental-vm-modules jest ./lib/* ./tests/*",
1719
"lint": "eslint . --ext .ts",

0 commit comments

Comments
 (0)