Skip to content

Commit

Permalink
fix: --watch option
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed May 13, 2024
1 parent 6dd7a03 commit 8de0825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const run: CommandModule<unknown, InferredOptionTypes<typeof builder>> =
const file = argv.file?.toString() || '';

const args: string[] = [];
args.push('--import', 'tsx', file);
if (argv.watch) {
args.push('--watch');
}
args.push('--import', 'tsx', file);
const [, ...additionalArguments] = argv._;
if (argv.verbose) {
console.info(`Running 'node ${[...args, ...additionalArguments.map((arg) => arg.toString())].join(' ')}'`);
Expand Down

0 comments on commit 8de0825

Please sign in to comment.