Skip to content

Commit 6ba2981

Browse files
author
Fatme
authored
Merge pull request #3946 from NativeScript/fatme/fix-justlaunch
chore: set options.watch to false when --justlaunch is passed to command
2 parents 571e91d + bcd6823 commit 6ba2981

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/options.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ export class Options {
223223
this.$settingsService.setSettings({ profileDir: this.argv.profileDir });
224224
this.argv.profileDir = this.argv["profile-dir"] = this.$settingsService.getProfileDir();
225225

226+
// if justlaunch is set, it takes precedence over the --watch flag and the default true value
227+
if (this.argv.justlaunch) {
228+
this.argv.watch = false;
229+
}
230+
226231
// Default to "nativescript-dev-webpack" if only `--bundle` is passed
227232
if (this.argv.bundle !== undefined || this.argv.hmr) {
228233
this.argv.bundle = this.argv.bundle || "webpack";

0 commit comments

Comments
 (0)