Skip to content

Commit

Permalink
chore: address comments from David
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Guirado Navarro committed Jan 16, 2019
1 parent 1feb523 commit c0a2b69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/steps/execute-prepare-hook-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ function executePrepareHookCommand(cwd, pkg, options) {
const prepareHook = options.hooks && options.hooks.prepare;
if (!prepareHook) return;
console.log(`
[nlm] Executing 'prepare' hook command: ${options.hooks.prepare}`);
[nlm] Executing 'prepare' hook command: ${prepareHook}`);
const env = Object.assign({}, process.env, {
NLM_NEXT_VERSION: options.nextVersion,
});
childprocess.execSync(`${options.hooks['prepare']}`, {
childprocess.execSync(prepareHook, {
cwd,
stdio: 'inherit',
env,
Expand Down
2 changes: 1 addition & 1 deletion test/steps/execute-prepare-hook-command.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('executePrepareHookCommand', () => {
hooks: { prepare: `printf $NLM_NEXT_VERSION >> ${tmpFilename}` },
});
const version = fs.readFileSync(`${dirname}/${tmpFilename}`, 'utf8');
assert.equal(version, expectedVersion);
assert.equal(expectedVersion, version);
});
});
});

0 comments on commit c0a2b69

Please sign in to comment.