File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
packages/nx-plugin/src/plugin/target Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,10 @@ export function createExecutorTarget(options?: {
88} ) : TargetConfiguration < ProjectPrefixOptions > {
99 const { bin, projectPrefix } = options ?? { } ;
1010
11- const targetConfig : TargetConfiguration < ProjectPrefixOptions > = {
12- executor : `${ PACKAGE_NAME } :cli` ,
11+ const executor = `${ PACKAGE_NAME } :cli` ;
12+ const options = ( bin || projectPrefix ) && {
13+ ...( bin && { bin } ) ,
14+ ...( projectPrefix && { projectPrefix } ) ,
1315 } ;
14-
15- if ( bin || projectPrefix ) {
16- targetConfig . options = {
17- ...( bin ? { bin } : { } ) ,
18- ...( projectPrefix ? { projectPrefix } : { } ) ,
19- } ;
20- }
21-
22- return targetConfig ;
16+ return { executor, ...( options && { options } ) } ;
2317}
You can’t perform that action at this time.
0 commit comments