mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Nw/pty fixes (#1353)
* changed pty package and update references * fixed linting issues * added npm clean script
This commit is contained in:
parent
67cefc50a8
commit
470d02dbfd
3 changed files with 5 additions and 4 deletions
|
|
@ -23,7 +23,7 @@
|
|||
"mkdirp": "0.5.1",
|
||||
"ms": "0.7.1",
|
||||
"node-fetch": "1.6.3",
|
||||
"pty.js": "https://github.com/Tyriar/pty.js/tarball/c75c2dcb6dcad83b0cb3ef2ae42d0448fb912642",
|
||||
"node-pty": "0.4.1",
|
||||
"semver": "5.3.0",
|
||||
"shell-env": "0.2.0",
|
||||
"uuid": "3.0.0",
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ const {getDecoratedEnv} = require('./plugins');
|
|||
const {productName, version} = require('./package');
|
||||
const config = require('./config');
|
||||
|
||||
const createPtyJsError = () => new Error('`pty.js` failed to load. Typically this means that it was built incorrectly. Please check the `README.me` to more info.');
|
||||
const createPtyJsError = () => new Error('`node-pty` failed to load. Typically this means that it was built incorrectly. Please check the `README.me` to more info.');
|
||||
|
||||
let spawn;
|
||||
try {
|
||||
spawn = require('pty.js').spawn;
|
||||
spawn = require('node-pty').spawn;
|
||||
} catch (err) {
|
||||
throw createPtyJsError();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
"prepush": "npm test",
|
||||
"postinstall": "install-app-deps",
|
||||
"pack": "npm run build && build --dir && cross-env BABEL_ENV=production babel --out-file app/dist/bundle.js --no-comments --minified app/dist/bundle.js",
|
||||
"dist": "npm run build && build"
|
||||
"dist": "npm run build && build",
|
||||
"clean": "npm cache clear && rm -rf node_modules && rm -rf app/node_modules && rm -rf app/dist"
|
||||
},
|
||||
"xo": {
|
||||
"extends": "xo-react",
|
||||
|
|
|
|||
Loading…
Reference in a new issue