Skip to content

Commit

Permalink
Ensure that the prepublish step only happens on a version release
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Dec 14, 2016
1 parent 292e0d9 commit 37a65c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"flow": "flow check",
"lint": "eslint ./source",
"fix": "eslint ./source --fix",
"prepublish": "npm run build; npm run export-flowtype; npm run inline-flowtype",
"prepublish": "in-publish && npm run build && npm run export-flowtype && npm run inline-flowtype || not-in-publish",
"build": "babel source --out-dir distribution --source-maps",
"buildwatch": "babel source --watch --out-dir distribution",
"link": "npm run build ; chmod +x distribution/commands/danger.js ; npm link",
Expand Down Expand Up @@ -57,6 +57,7 @@
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.0",
"flow-bin": "^0.35.0",
"in-publish": "^2.0.0",
"jest-cli": "^17.0.3"
},
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,10 @@ imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"

in-publish@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51"

inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
Expand Down

0 comments on commit 37a65c0

Please sign in to comment.