diff --git a/packages/wb/src/scripts/run.ts b/packages/wb/src/scripts/run.ts index f202aadc..8e7491fc 100644 --- a/packages/wb/src/scripts/run.ts +++ b/packages/wb/src/scripts/run.ts @@ -27,7 +27,7 @@ export async function runWithSpawn( const [printableScript, runnableScript] = normalizeScript(script); printStart(printableScript); if (argv.verbose) { - printStart(printableScript, 'Start (detailed)', true); + printStart(runnableScript, 'Start (raw)', true); } if (argv.dryRun) { printFinishedAndExitIfNeeded(printableScript, 0, opts); @@ -79,7 +79,10 @@ export function runWithSpawnInParallel( const [printableScript, runnableScript] = normalizeScript(script); printStart(printableScript, 'Start (parallel)', true); if (argv.dryRun) { - printStart(printableScript, 'Start (log)'); + printStart(printableScript, 'Started (log)'); + if (argv.verbose) { + printStart(runnableScript, 'Started (raw)', true); + } printFinishedAndExitIfNeeded(printableScript, 0, opts); return; } @@ -93,7 +96,10 @@ export function runWithSpawnInParallel( killOnExit: true, verbose: argv.verbose, }); - printStart(printableScript, 'Start (log)'); + printStart(printableScript, 'Started (log)'); + if (argv.verbose) { + printStart(runnableScript, 'Started (raw)', true); + } const out = ret.stdout.trim(); if (out) console.info(out); printFinishedAndExitIfNeeded(printableScript, ret.status, opts); diff --git a/packages/wb/src/utils.ts b/packages/wb/src/utils.ts index f1abf6ca..c5c0f6da 100644 --- a/packages/wb/src/utils.ts +++ b/packages/wb/src/utils.ts @@ -33,7 +33,7 @@ export function spawnSyncOnExit(command: string): void { if (killed.has(command)) return; killed.add(command); - printStart(command, 'Start', true); + printStart(command); const { status } = spawnSync(command, { cwd: project.dirPath, shell: true, stdio: 'inherit' }); printFinishedAndExitIfNeeded(command, status, {}); };