Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit a08e268

Browse files
author
Dimitar Kerezov
committed
Make bundle option string
1 parent 780c960 commit a08e268

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

options.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,14 @@ export class OptionsBase {
184184
// For backwards compatibility
185185
// Previously profileDir had a default option and calling `this.$options.profileDir` always returned valid result.
186186
// Now the profileDir should be used from $settingsService, but ensure the `this.$options.profileDir` returns the same value.
187-
this.$settingsService.setSettings({ profileDir: this.argv.profileDir});
187+
this.$settingsService.setSettings({ profileDir: this.argv.profileDir });
188188
this.argv.profileDir = this.argv["profile-dir"] = this.$settingsService.getProfileDir();
189189

190+
// Default to "nativescript-dev-webpack" if only `--bundle` is passed
191+
if (this.argv.bundle !== undefined) {
192+
this.argv.bundle = this.argv.bundle || "nativescript-dev-webpack";
193+
}
194+
190195
this.adjustDashedOptions();
191196
}
192197

0 commit comments

Comments
 (0)