Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json: Improve Windows compatibility of scripts #423

Merged
merged 1 commit into from
Dec 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
package.json: Improve Windows compatibility of scripts
* Use `yarn` instead of `npm run`
* Explicitly run `node` for `chrome-launch`

This (hopefully) fixes #418
  • Loading branch information
josephfrazier committed Dec 28, 2017
commit e6cf0878edb3af3e13a33e5ca6b688d203090d17
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