Skip to content

Commit 89cfa0b

Browse files
committed
[eslint config] [*] use in-publish because coffeescript screwed up the prepublish script for everyone
1 parent eb76ede commit 89cfa0b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/eslint-config-airbnb-base/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"scripts": {
77
"lint": "eslint .",
88
"tests-only": "babel-tape-runner ./test/test-*.js",
9-
"prepublish": "eslint-find-rules --unused && npm test",
10-
"pretest": "npm run --silent lint",
9+
"prepublish": "not-in-install && (eslint-find-rules --unused && npm test) || in-install",
10+
"pretest": "npm run --silent lint",
1111
"test": "npm run --silent tests-only",
1212
"travis": "npm run --silent test"
1313
},
@@ -49,7 +49,8 @@
4949
"eslint": "^2.10.2",
5050
"eslint-find-rules": "^1.9.2",
5151
"eslint-plugin-import": "^1.8.0",
52-
"tape": "^4.5.1"
52+
"tape": "^4.5.1",
53+
"in-publish": "^2.0.0"
5354
},
5455
"peerDependencies": {
5556
"eslint": "^2.10.2",

packages/eslint-config-airbnb/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"scripts": {
77
"lint": "eslint .",
88
"tests-only": "babel-tape-runner ./test/test-*.js",
9-
"prepublish": "eslint-find-rules --unused && npm test",
10-
"pretest": "npm run --silent lint",
9+
"prepublish": "not-in-install && (eslint-find-rules --unused && npm test) || in-install",
10+
"pretest": "npm run --silent lint",
1111
"test": "npm run --silent tests-only",
1212
"travis": "cd ../eslint-config-airbnb-base && npm link && cd - && npm link eslint-config-airbnb-base && npm run --silent test ; npm unlink eslint-config-airbnb-base >/dev/null &"
1313
},
@@ -55,7 +55,8 @@
5555
"eslint-plugin-jsx-a11y": "^1.2.2",
5656
"eslint-plugin-react": "^5.1.1",
5757
"react": ">= 0.13.0",
58-
"tape": "^4.5.1"
58+
"tape": "^4.5.1",
59+
"in-publish": "^2.0.0"
5960
},
6061
"peerDependencies": {
6162
"eslint": "^2.10.2",

0 commit comments

Comments
 (0)