Skip to content

Commit ea3a4d1

Browse files
authored
Add prepack script to package scripts
prepack is needed to be compatible with `yarn` when installing from github or local source. See yarn documentation: https://yarnpkg.com/advanced/lifecycle-scripts prepack is also defined in npm: https://docs.npmjs.com/cli/v6/using-npm/scripts#life-cycle-scripts
1 parent a6b0d4b commit ea3a4d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"watch": "tsc --watch",
2727
"test": "nyc mocha",
2828
"prepare": "npm run build",
29+
"prepack": "npm run build",
2930
"docs": "typedoc src/gen/api"
3031
},
3132
"nyc": {

0 commit comments

Comments
 (0)