We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5e05a4 commit 2041093Copy full SHA for 2041093
packages/nx-plugin/src/executors/internal/cli.ts
@@ -46,10 +46,14 @@ export function createCliCommandObject(options?: {
46
bin?: string;
47
}): ProcessConfig {
48
const { bin = 'npx @code-pushup/cli', command, args } = options ?? {};
49
- const finalCommand = bin.split(' ').at(0) as string;
+ const binArr = bin.split(' ');
50
+ const finalCommand = binArr.at(0) as string;
51
return {
52
command: finalCommand,
- args: [bin.slice(1), ...objectToCliArgs({ _: command ?? [], ...args })],
53
+ args: [
54
+ ...binArr.slice(1),
55
+ ...objectToCliArgs({ _: command ?? [], ...args }),
56
+ ],
57
observer: {
58
onError: error => {
59
logger.error(error.message);
0 commit comments