Skip to content

Commit c15877f

Browse files
Update packages/nx-plugin/src/executors/cli/executor.ts
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
1 parent 73fdfa6 commit c15877f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ export default async function runAutorunExecutor(
4444
await executeProcess({
4545
...createCliCommandObject({ command, args: cliArgumentObject }),
4646
observer: {
47-
onError: error => {
48-
logger.error(error.message);
49-
},
50-
onStdout: data => {
51-
process.stdout.write(data);
52-
},
47+
onError: logger.error,
48+
onStdout: process.stdout.write,
5349
},
5450
...(context.cwd ? { cwd: context.cwd } : {}),
5551
});

0 commit comments

Comments
 (0)