Skip to content

Commit 1c9a2ff

Browse files
committed
fix prepublish
1 parent d16f75d commit 1c9a2ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ Complete your CLA here: <https://code.facebook.com/cla>
4646
git clone [email protected]:yournamehere/graphql-js.git
4747
```
4848

49-
3. Update or install all dependencies
49+
3. Install or Update all dependencies
5050

5151
```sh
52-
npm update
52+
npm install
5353
```
5454

5555
4. Get coding! If you've added code, add tests. If you've changed APIs, update

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"cover": "babel-node node_modules/.bin/isparta cover --root src --report html node_modules/.bin/_mocha -- $npm_package_options_mocha",
3535
"coveralls": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
3636
"preversion": "npm test",
37-
"prepublish": "if [ '$CI' = true ]; then babel src --ignore __tests__ --out-dir ./; else echo 'Only CI can publish. Read CONTRIBUTING.md' 1>&2; exit 1; fi;"
37+
"prepublish": "not-in-install && (if [ \"$CI\" = true ]; then babel src --ignore __tests__ --out-dir ./; else echo 'Only CI can publish. Read CONTRIBUTING.md' 1>&2; exit 1; fi) || in-install"
3838
},
3939
"dependencies": {
4040
"babel-runtime": "5.8.3"
@@ -49,6 +49,7 @@
4949
"coveralls": "2.11.2",
5050
"eslint": "0.24.0",
5151
"flow-bin": "0.13.1",
52+
"in-publish": "2.0.0",
5253
"isparta": "3.0.3",
5354
"minimist": "1.1.2",
5455
"mocha": "2.2.5",

0 commit comments

Comments
 (0)