Use yarn instead of npm for scripts. (#2083)

This commit is contained in:
Harrison Heck 2017-08-15 10:08:45 -04:00 committed by CHaBou
parent 66b9eebe9b
commit 2ce66662e1

View file

@ -1,18 +1,18 @@
{
"repository": "zeit/hyper",
"scripts": {
"start": "echo 'please run `npm run dev` in one tab and then `npm run app` in another one'",
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
"app": "electron app",
"dev": "webpack -w",
"build": "cross-env NODE_ENV=production webpack",
"lint": "xo",
"test": "npm run lint",
"test": "yarn run lint",
"test:unit": "ava test/unit",
"test:unit:watch": "npm run test:unit -- --watch",
"prepush": "npm test",
"postinstall": "electron-builder install-app-deps && npm run rebuild-node-pty",
"test:unit:watch": "yarn run test:unit -- --watch",
"prepush": "yarn test",
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
"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/renderer/bundle.js --no-comments --minified app/renderer/bundle.js && build",
"dist": "yarn run build && cross-env BABEL_ENV=production babel --out-file app/renderer/bundle.js --no-comments --minified app/renderer/bundle.js && build",
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
},
"xo": {