diff --git a/src/commands.ts b/src/commands.ts index ef267a7..929f545 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -44,10 +44,10 @@ export function commandPath(cmd: string): string | undefined { ] if (projectName() !== "sys") - paths.concat([ + paths = paths.concat( join(projectBin(), cmd + ".ts"), join(projectBin(), cmd + ".tsx"), - ]) + ) return paths.find((path: string) => isFile(path)) }