Skip to content

Commit

Permalink
Change prepublish to prepublishOnly in package.json
Browse files Browse the repository at this point in the history
Some discussion here:
yarnpkg/yarn#3209

The long-term behavior of `publish` is to eventually only run on actual publish,
but for now, it runs on publish or install, which isn't what we want.
`prepublishOnly` is a transitionary hook that unambiguously gets the behavior I
want.
  • Loading branch information
alangpierce committed Jun 18, 2018
1 parent 4cadc28 commit 17c55ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"lint": "script/sucrase-node script/lint.ts",
"profile": "node --inspect-brk script/sucrase-node ./benchmark/profile",
"profile-react": "node --inspect-brk script/sucrase-node ./benchmark/profile-react.js",
"prepublish": "yarn clean && yarn build",
"prepublishOnly": "yarn clean && yarn build",
"run-examples": "script/sucrase-node example-runner/example-runner.ts",
"test": "yarn lint && yarn test-only",
"test-only": "mocha './test/**/*.ts'"
Expand Down

0 comments on commit 17c55ae

Please sign in to comment.