Add electron-rebuild to prevent node-pty from failing to load – closes #1027

This commit is contained in:
Matheus Fernandes 2017-01-15 13:23:02 -02:00
parent 3cb09e0480
commit 2958f4444f
No known key found for this signature in database
GPG key ID: DD07CA4EA7B65C4F

View file

@ -9,6 +9,7 @@
"test": "npm run lint",
"prepush": "npm test",
"postinstall": "install-app-deps",
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
"dist": "npm run build && cross-env BABEL_ENV=production babel --out-file app/dist/bundle.js --no-comments --minified app/dist/bundle.js && build",
"clean": "npm cache clear && rm -rf node_modules && rm -rf app/node_modules && rm -rf app/dist"
},
@ -112,6 +113,7 @@
"electron": "1.4.7",
"electron-builder": "8.6.0",
"electron-devtools-installer": "^2.0.0",
"electron-rebuild": "1.5.6",
"eslint-config-xo-react": "^0.10.0",
"eslint-plugin-react": "^6.7.1",
"husky": "^0.11.6",