mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
try
This commit is contained in:
parent
3f17bda2d5
commit
431643ac31
@ -23,7 +23,7 @@
|
||||
"test": "flow check && npm run lint && npm run test:jest",
|
||||
"test:jest": "cross-env NODE_ENV=test jest --silent",
|
||||
"test-appveyor": "npm run test -- --maxWorkers 1",
|
||||
"pre-bootstrap": "npm install && electron-rebuild -f -w insomnia-libcurl",
|
||||
"pre-bootstrap": "npm install --build-from-source && electron-rebuild -f -w insomnia-libcurl",
|
||||
"start:electron": "cross-env NODE_ENV=development webpack --config ./webpack/webpack.config.electron.babel.js && electron .",
|
||||
"start:dev-server": "webpack-dev-server --config ./webpack/webpack.config.development.babel.js",
|
||||
"start": "concurrently --kill-others \"npm run start:dev-server\" \"npm run start:electron\"",
|
||||
|
@ -85,7 +85,13 @@ async function install(relDir) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const prefix = path.resolve(__dirname, relDir);
|
||||
npm.load(
|
||||
{ prefix, production: true, optional: false, 'package-lock': false },
|
||||
{
|
||||
prefix,
|
||||
buildFromSource: true,
|
||||
production: true,
|
||||
optional: false,
|
||||
'package-lock': false
|
||||
},
|
||||
err => {
|
||||
if (err) {
|
||||
return reject(err);
|
||||
|
Loading…
Reference in New Issue
Block a user