Skip to content

Commit

Permalink
Nw/pty fixes (#1353)
Browse files Browse the repository at this point in the history
* changed pty package and update references

* fixed linting issues

* added npm clean script
  • Loading branch information
nw authored and rauchg committed Jan 10, 2017
1 parent 67cefc5 commit 470d02d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions app/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 470d02d

Please sign in to comment.