Skip to content

Commit d50c3a4

Browse files
authored
Fix watch incorrectly being overrided by justlaunch always (#2665)
* Fix watch incorrectly being overrided by justlaunch always * Fix lint error
1 parent ff1fece commit d50c3a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/options.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export class Options extends commonOptionsLibPath.OptionsBase {
6161
}
6262

6363
let that = (<any>this);
64-
that.watch = !that.justlaunch;
64+
// if justlaunch is set, it takes precedence over the --watch flag and the default true value
65+
if (that.justlaunch) {
66+
that.watch = false;
67+
}
6568
}
6669
}
6770
$injector.register("options", Options);

0 commit comments

Comments
 (0)