This commit is contained in:
Gregory Schier 2018-07-12 17:24:48 -04:00
parent 3f17bda2d5
commit 431643ac31
2 changed files with 8 additions and 2 deletions

View File

@ -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\"",

View File

@ -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);