Skip to content

Commit

Permalink
fix(verbose): fix verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 30, 2023
1 parent d994f89 commit 4afd125
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cli.ts
Expand Up @@ -122,8 +122,13 @@ async function main(args: string[]): Promise<void> {
if (opts.pm?.some((pm) => pm.startsWith('pnpm'))) {
throw new NotImplementedError('pnpm is currently unsupported');
}
verbose = Boolean(
opts.verbose || createDebug.enabled('midnight-smoker'),
);
if (verbose) {
createDebug.enable('midnight-smoker');
}
debug('Final options: %O', opts);
verbose = Boolean(opts.verbose);

const smoker = await Smoker.init(opts);

Expand Down

0 comments on commit 4afd125

Please sign in to comment.