From 3922854f826a8c55912e4a91712470fae5c7934b Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Sun, 18 Aug 2019 12:39:58 +0200 Subject: [PATCH] fix: add missing message on dry-mode (#178) --- packages/shipjs/src/step/prepare/commitChanges.js | 4 +++- packages/shipjs/src/step/runStep.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shipjs/src/step/prepare/commitChanges.js b/packages/shipjs/src/step/prepare/commitChanges.js index 7c42c764..c581e0bb 100644 --- a/packages/shipjs/src/step/prepare/commitChanges.js +++ b/packages/shipjs/src/step/prepare/commitChanges.js @@ -11,7 +11,9 @@ export default async ({ nextVersion, dir, config, dryRun }) => if (dryRun) { print('$', info('git add .')); print('$', info('git commit')); - print(` git commit message: ${message}`); + print(' |'); + print(` | ${message}`); + print(' |'); return; } await beforeCommitChanges({ exec: wrapExecWithDir(dir) }); diff --git a/packages/shipjs/src/step/runStep.js b/packages/shipjs/src/step/runStep.js index 0e02bcb2..34a224ff 100644 --- a/packages/shipjs/src/step/runStep.js +++ b/packages/shipjs/src/step/runStep.js @@ -5,7 +5,7 @@ import wrapRun from '../util/wrapRun'; import { info, warning, error, bold, underline, slateblue } from '../color'; const makeSpaces = num => ' '.repeat(num); -const indentPrint = indent => text => print(`${makeSpaces(indent)}${text}`); +const indentPrint = indent => (...args) => print(makeSpaces(indent), ...args); export default function runStep({ title }, stepFn) { if (title) {