From 1b05ee86b2d39f3bc58a778b91db2d8fd15a15e2 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 6 Jan 2025 21:53:26 +0100 Subject: [PATCH] feat!: use a smaller note section --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5b02bff..37d4242 100644 --- a/index.js +++ b/index.js @@ -162,7 +162,7 @@ function runPackageLifecycle (pkg, stage, env, wd, opts, cb) { // run package lifecycle scripts in the package root, or the nearest parent. const cmd = env.npm_lifecycle_script - const note = `\n> ${pkg._id} ${stage} ${wd}\n> ${cmd}\n` + const note = `$ ${cmd}` runCmd(note, cmd, pkg, env, stage, wd, opts, cb) } @@ -339,7 +339,7 @@ function runHookLifecycle (pkg, stage, env, wd, opts, cb) { hookStat(opts.dir, stage, er => { if (er) return cb() const cmd = path.join(opts.dir, '.hooks', stage) - const note = `\n> ${pkg._id} ${stage} ${wd}\n> ${cmd}` + const note = `$ ${cmd}` runCmd(note, cmd, pkg, env, stage, wd, opts, cb) }) }