Skip to content

Commit 4e90518

Browse files
committed
refactor: wip
1 parent 752a97e commit 4e90518

File tree

1 file changed

+1
-1
lines changed
  • packages/nx-plugin/src/executors/internal

1 file changed

+1
-1
lines changed

packages/nx-plugin/src/executors/internal/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function createCliCommandObject(options?: {
5050

5151
// If bin contains spaces, use the first part as command and rest as args
5252
// If bin is a single path, default to 'npx' and use the bin as first arg
53-
const finalCommand = binArr.length > 1 ? binArr[0] : 'npx';
53+
const finalCommand = binArr.length > 1 ? (binArr[0] ?? 'npx') : 'npx';
5454
const binArgs = binArr.length > 1 ? binArr.slice(1) : [bin];
5555

5656
return {

0 commit comments

Comments
 (0)