Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix(scripts): use itself for "release" script
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Feb 12, 2018
1 parent 4ecea95 commit 4c41299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "NODE_ENV=test yarn hela test",
"precommit": "yarn hela precommit",
"commit": "yarn hela commit",
"prepublishOnly": "yarn hela protect"
"prepublishOnly": "yarn hela protect",
"release": "./src/cli.js --ci"
},
"license": "Apache-2.0",
"licenseStart": 2017,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function prepublish (dir) {
* @param {string} cwd
*/
async function getNextVersion (increment, cwd) {
const { name } = await readCwdPackage(cwd).then(JSON.parse)
const { name } = await (readCwdPackage(cwd).then(JSON.parse))
const currentVersion = await latestVersion(name)
const nextVersion = semver.inc(currentVersion, increment)

Expand Down

0 comments on commit 4c41299

Please sign in to comment.