Skip to content

Commit

Permalink
package.json: Improve Windows compatibility of scripts (#423)
Browse files Browse the repository at this point in the history
* Use `yarn` instead of `npm run`
* Explicitly run `node` for `chrome-launch`

This (hopefully) fixes #418
  • Loading branch information
josephfrazier authored Dec 28, 2017
1 parent 348f2b6 commit e02bfde
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"main": "lib/app.js",
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"pretest": "yarn lint",
"test": "jest",
"test:watch": "jest --watch",
"version": "json -I -f assets/manifest.json -e \"this.version='`json -f package.json version`'\" && git add assets/manifest.json",
"package": "npm run build && web-ext build --source-dir dist --artifacts-dir out --overwrite-dest",
"package": "yarn build && web-ext build --source-dir dist --artifacts-dir out --overwrite-dest",
"release": "webstore upload --source dist --auto-publish",
"build": "webpack",
"watch": "webpack --watch",
"chrome-open": "npm run build && npm run chrome-launch --",
"chrome-launch": "scripts/chrome-launch.js",
"firefox-open": "npm run build && npm run firefox-launch --",
"chrome-open": "yarn build && yarn chrome-launch --",
"chrome-launch": "node scripts/chrome-launch.js",
"firefox-open": "yarn build && yarn firefox-launch --",
"firefox-launch": "web-ext run --source-dir dist --pref startup.homepage_welcome_url=https://github.com/OctoLinker/browser-extension/blob/master/package.json"
},
"jest": {
Expand Down

0 comments on commit e02bfde

Please sign in to comment.