Skip to content

Commit 9bf9d43

Browse files
committed
fix: args passing in cli wrapper
1 parent fb9400c commit 9bf9d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/rewatch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const firstPositionalArgIndex = args.findIndex((arg) => !arg.startsWith("-"));
1212
try {
1313
if (firstPositionalArgIndex !== -1) {
1414
const subcommand = args[firstPositionalArgIndex];
15-
const subcommandArgs = args.slice(firstPositionalArgIndex + 1);
15+
const subcommandWithArgs = args.slice(firstPositionalArgIndex);
1616

1717
if (
1818
subcommand === "build" ||
@@ -22,7 +22,7 @@ try {
2222
) {
2323
child_process.execFileSync(
2424
rewatch_exe,
25-
[...subcommandArgs, "--bsc-path", bsc_exe],
25+
[...subcommandWithArgs, "--bsc-path", bsc_exe],
2626
{
2727
stdio: "inherit",
2828
}

0 commit comments

Comments
 (0)