forked from loafle/openapi-generator-original
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:
committed by
GitHub
parent
e6f56626ed
commit
fa624ef38c
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user