Skip to content

Commit 4e88923

Browse files
committed
refactor: fix tests
1 parent 849aeab commit 4e88923

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/nx-plugin/src/plugin/target/configuration-target.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export function createConfigurationTarget(options?: {
88
bin?: string;
99
}): TargetConfiguration<RunCommandsOptions> {
1010
const { projectName, bin = PACKAGE_NAME } = options ?? {};
11+
const args = objectToCliArgs({
12+
...(projectName ? { project: projectName } : {}),
13+
});
1114
return {
12-
command: `nx g ${bin}:configuration ${objectToCliArgs({
13-
skipTarget: true,
14-
...(projectName ? { project: projectName } : {}),
15-
}).join(' ')}`,
15+
command: `nx g ${bin}:configuration${args.length > 0 ? ` ${args.join(' ')}` : ''}`,
1616
};
1717
}

0 commit comments

Comments
 (0)