We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 849aeab commit 4e88923Copy full SHA for 4e88923
1 file changed
packages/nx-plugin/src/plugin/target/configuration-target.ts
@@ -8,10 +8,10 @@ export function createConfigurationTarget(options?: {
8
bin?: string;
9
}): TargetConfiguration<RunCommandsOptions> {
10
const { projectName, bin = PACKAGE_NAME } = options ?? {};
11
+ const args = objectToCliArgs({
12
+ ...(projectName ? { project: projectName } : {}),
13
+ });
14
return {
- command: `nx g ${bin}:configuration ${objectToCliArgs({
- skipTarget: true,
- ...(projectName ? { project: projectName } : {}),
15
- }).join(' ')}`,
+ command: `nx g ${bin}:configuration${args.length > 0 ? ` ${args.join(' ')}` : ''}`,
16
};
17
}
0 commit comments