diff --git a/package.json b/package.json index eea3dbd..89bdc31 100644 --- a/package.json +++ b/package.json @@ -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, diff --git a/src/index.js b/src/index.js index b5d5c97..d677d64 100644 --- a/src/index.js +++ b/src/index.js @@ -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)