Use prepare script instead of prepack (#7807)

Including the generated JS client library code as a git repository did not work when executing npm install. It complained about not being able to find 'babel'. Apparently when referencing a dependency from git, both prepare and prepack are executing to build the 'dist' directory, but prepack does will not include any devDependencies. Therefore we need to switch this to prepare instead.
This commit is contained in:
Phillip Verheyden
2021-03-27 00:45:11 -05:00
committed by GitHub
parent e6f56626ed
commit fa624ef38c

View File

@@ -6,7 +6,7 @@
"main": "dist{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js",
"scripts": {
"build": "babel src -d dist",
"prepack": "npm run build",
"prepare": "npm run build",
"test": "mocha --require @babel/register --recursive"
},
"browser": {