From f8e329d859aacace6921e0af5577ab308e783841 Mon Sep 17 00:00:00 2001 From: Gustaf Dalemar Date: Thu, 17 Mar 2016 16:23:07 +0100 Subject: [PATCH] Fixed a problem with reading the version number --- commands/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/release.js b/commands/release.js index edf1c94..5a24a73 100644 --- a/commands/release.js +++ b/commands/release.js @@ -25,7 +25,7 @@ module.exports = (name) => () => { execSync(`cd packages/${name}-dev && npm version ${nextVersion} --no-git-tag-version`); // 4) Read the version from main package - const newVersion = require(`../packages/${name}/package.json`).version; + const newVersion = require(resolvePath(process.cwd(), `packages/${name}/package.json`)).version; // 5) Create a new commit // 6) Create a v* tag that points to that commit