Skip to content

Commit b1a8f90

Browse files
Merge pull request #3936 from NativeScript/vladimirov/fix-hmr-bundle
fix: passing --hmr must always set bundle option to "webpack"
2 parents c376458 + 6c354ad commit b1a8f90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+303
-355
lines changed

lib/common/appbuilder/project/project-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export abstract class ProjectBase implements Project.IProjectBase {
2121
protected $fs: IFileSystem,
2222
protected $logger: ILogger,
2323
protected $nativeScriptProjectCapabilities: Project.ICapabilities,
24-
protected $options: ICommonOptions,
24+
protected $options: IOptions,
2525
protected $projectConstants: Project.IConstants,
2626
protected $staticConfig: Config.IStaticConfig) {
2727
this.configurationSpecificData = Object.create(null);

lib/common/appbuilder/project/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class Project extends ProjectBase {
99
protected $fs: IFileSystem,
1010
protected $logger: ILogger,
1111
protected $nativeScriptProjectCapabilities: Project.ICapabilities,
12-
protected $options: ICommonOptions,
12+
protected $options: IOptions,
1313
protected $projectConstants: Project.IConstants,
1414
protected $staticConfig: Config.IStaticConfig) {
1515
super($cordovaProjectCapabilities, $errors, $fs, $logger, $nativeScriptProjectCapabilities, $options, $projectConstants, $staticConfig);

lib/common/appbuilder/proton-bootstrap.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
require("./appbuilder-bootstrap");
22
$injector.require("messages", "./messages/messages");
33

4-
import { OptionsBase } from "../options";
54
$injector.require("staticConfig", "./appbuilder/proton-static-config");
65
$injector.register("config", {});
76
// Proton will track the features and exceptions, so no need of analyticsService here.
87
$injector.register("analyiticsService", {});
9-
$injector.register("options", $injector.resolve(OptionsBase, { options: {}, defaultProfileDir: "" }));
108
$injector.requirePublicClass("deviceEmitter", "./appbuilder/device-emitter");
119
$injector.requirePublicClass("deviceLogProvider", "./appbuilder/device-log-provider");
1210
import { installUncaughtExceptionListener } from "../errors";

lib/common/appbuilder/providers/project-files-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ProjectFilesProvider extends ProjectFilesProviderBase {
1818
private $projectConstants: Project.IConstants,
1919
private $injector: IInjector,
2020
$mobileHelper: Mobile.IMobileHelper,
21-
$options: ICommonOptions) {
21+
$options: IOptions) {
2222
super($mobileHelper, $options);
2323
}
2424

lib/common/appbuilder/services/livesync/android-livesync-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class AppBuilderAndroidLiveSyncService extends AndroidLiveSyncService imp
66
constructor(_device: Mobile.IAndroidDevice,
77
$fs: IFileSystem,
88
$mobileHelper: Mobile.IMobileHelper,
9-
private $options: ICommonOptions) {
9+
private $options: IOptions) {
1010
super(_device, $fs, $mobileHelper);
1111
}
1212

lib/common/appbuilder/services/livesync/ios-livesync-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class IOSLiveSyncService implements IDeviceLiveSyncService {
1313
private $injector: IInjector,
1414
private $logger: ILogger,
1515
private $errors: IErrors,
16-
private $options: ICommonOptions,
16+
private $options: IOptions,
1717
private $iosDeviceOperations: IIOSDeviceOperations) {
1818
// If we execute livesync with --watch we do not want to dispose the $iosDeviceOperations.
1919
this.$iosDeviceOperations.setShouldDispose(!this.$options.watch);

lib/common/commands/analytics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AnalyticsCommand implements ICommand {
1919
constructor(protected $analyticsService: IAnalyticsService,
2020
private $logger: ILogger,
2121
private $errors: IErrors,
22-
private $options: ICommonOptions,
22+
private $options: IOptions,
2323
private settingName: string,
2424
private humanReadableSettingName: string) { }
2525

@@ -51,7 +51,7 @@ export class UsageReportingCommand extends AnalyticsCommand {
5151
constructor(protected $analyticsService: IAnalyticsService,
5252
$logger: ILogger,
5353
$errors: IErrors,
54-
$options: ICommonOptions,
54+
$options: IOptions,
5555
$staticConfig: Config.IStaticConfig) {
5656
super($analyticsService, $logger, $errors, $options, $staticConfig.TRACK_FEATURE_USAGE_SETTING_NAME, "Usage reporting");
5757
}
@@ -62,7 +62,7 @@ export class ErrorReportingCommand extends AnalyticsCommand {
6262
constructor(protected $analyticsService: IAnalyticsService,
6363
$logger: ILogger,
6464
$errors: IErrors,
65-
$options: ICommonOptions,
65+
$options: IOptions,
6666
$staticConfig: Config.IStaticConfig
6767
) {
6868
super($analyticsService, $logger, $errors, $options, $staticConfig.ERROR_REPORT_SETTING_NAME, "Error reporting");

lib/common/commands/device/device-log-stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class OpenDeviceLogStreamCommand implements ICommand {
44
constructor(private $devicesService: Mobile.IDevicesService,
55
private $errors: IErrors,
66
private $commandsService: ICommandsService,
7-
private $options: ICommonOptions,
7+
private $options: IOptions,
88
private $deviceLogProvider: Mobile.IDeviceLogProvider,
99
private $loggingLevels: Mobile.ILoggingLevels,
1010
$iOSSimulatorLogProvider: Mobile.IiOSSimulatorLogProvider) {

lib/common/commands/device/get-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export class GetFileCommand implements ICommand {
33
private $stringParameter: ICommandParameter,
44
private $project: Project.IProjectBase,
55
private $errors: IErrors,
6-
private $options: ICommonOptions) { }
6+
private $options: IOptions) { }
77

88
public allowedParameters: ICommandParameter[] = [this.$stringParameter, this.$stringParameter];
99

lib/common/commands/device/list-applications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as util from "util";
44
export class ListApplicationsCommand implements ICommand {
55
constructor(private $devicesService: Mobile.IDevicesService,
66
private $logger: ILogger,
7-
private $options: ICommonOptions) { }
7+
private $options: IOptions) { }
88

99
allowedParameters: ICommandParameter[] = [];
1010

0 commit comments

Comments
 (0)