Skip to content

Commit 47bc389

Browse files
committed
refactor: adjust target options
1 parent 4bba9cd commit 47bc389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export function createExecutorTarget(
1414
} = options ?? {};
1515
return {
1616
executor: `${pluginBin}:cli`,
17-
...(projectPrefix
17+
...(cliBin || projectPrefix || env
1818
? {
1919
options: {
20-
projectPrefix,
2120
...(cliBin ? { bin: cliBin } : {}),
21+
...(projectPrefix ? { projectPrefix } : {}),
2222
...(env ? { env } : {}),
2323
},
2424
}

0 commit comments

Comments
 (0)