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", "repository": "zeit/hyper",
"scripts": { "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", "app": "electron app",
"dev": "webpack -w", "dev": "webpack -w",
"build": "cross-env NODE_ENV=production webpack", "build": "cross-env NODE_ENV=production webpack",
"lint": "xo", "lint": "xo",
"test": "npm run lint", "test": "yarn run lint",
"test:unit": "ava test/unit", "test:unit": "ava test/unit",
"test:unit:watch": "npm run test:unit -- --watch", "test:unit:watch": "yarn run test:unit -- --watch",
"prepush": "npm test", "prepush": "yarn test",
"postinstall": "electron-builder install-app-deps && npm run rebuild-node-pty", "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", "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" "clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
}, },
"xo": { "xo": {