Skip to content

Commit e02bfde

Browse files
package.json: Improve Windows compatibility of scripts (OctoLinker#423)
* Use `yarn` instead of `npm run` * Explicitly run `node` for `chrome-launch` This (hopefully) fixes OctoLinker#418
1 parent 348f2b6 commit e02bfde

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
"main": "lib/app.js",
88
"scripts": {
99
"lint": "eslint .",
10-
"pretest": "npm run lint",
10+
"pretest": "yarn lint",
1111
"test": "jest",
1212
"test:watch": "jest --watch",
1313
"version": "json -I -f assets/manifest.json -e \"this.version='`json -f package.json version`'\" && git add assets/manifest.json",
14-
"package": "npm run build && web-ext build --source-dir dist --artifacts-dir out --overwrite-dest",
14+
"package": "yarn build && web-ext build --source-dir dist --artifacts-dir out --overwrite-dest",
1515
"release": "webstore upload --source dist --auto-publish",
1616
"build": "webpack",
1717
"watch": "webpack --watch",
18-
"chrome-open": "npm run build && npm run chrome-launch --",
19-
"chrome-launch": "scripts/chrome-launch.js",
20-
"firefox-open": "npm run build && npm run firefox-launch --",
18+
"chrome-open": "yarn build && yarn chrome-launch --",
19+
"chrome-launch": "node scripts/chrome-launch.js",
20+
"firefox-open": "yarn build && yarn firefox-launch --",
2121
"firefox-launch": "web-ext run --source-dir dist --pref startup.homepage_welcome_url=https://github.com/OctoLinker/browser-extension/blob/master/package.json"
2222
},
2323
"jest": {

0 commit comments

Comments
 (0)