Use postshrinkwrap instead of postinstall

`postinstall` is executed before package-lock.json is written to disk.

https://github.com/npm/npm/issues/18798
This commit is contained in:
Basti 2019-06-18 10:30:35 +02:00
parent 165ca8d3fc
commit b3dab3200f
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -8,7 +8,7 @@
},
"scripts": {
"install-all": "./scripts/every-app.sh \"npm install\"",
"postinstall": "node scripts/fix-package-lock.js &>/dev/null || true",
"postshrinkwrap": "node scripts/fix-package-lock.js &>/dev/null || true",
"build-json": "npm run compile-contracts && node ./scripts/build-json.js",
"repl": "truffle exec scripts/repl.js",
"seeds": "truffle exec scripts/seeds.js",