Skip to content

Commit 1c41694

Browse files
author
Michael Hladky
committed
refactor: use logger to set verbose
1 parent 2fb8ecd commit 1c41694

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

packages/nx-plugin/src/executors/cli/executor.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export default async function runAutorunExecutor(
2323
normalizedContext,
2424
);
2525
const { command: cliCommand } = terminalAndExecutorOptions;
26-
const { dryRun, verbose, bin, ...restArgs } = cliArgumentObject;
26+
const { verbose = false, dryRun, bin, ...restArgs } = cliArgumentObject;
27+
logger.setVerbose(verbose);
28+
2729
const command = bin ? `node` : 'npx';
2830
const positionals = [
2931
bin ?? '@code-pushup/cli',
@@ -47,14 +49,6 @@ export default async function runAutorunExecutor(
4749
command,
4850
args,
4951
...(context.cwd ? { cwd: context.cwd } : {}),
50-
...(verbose
51-
? {
52-
env: {
53-
...process.env,
54-
...executorEnvVariables,
55-
},
56-
}
57-
: {}),
5852
});
5953
} catch (error) {
6054
logger.error(stringifyError(error));

0 commit comments

Comments
 (0)