Skip to content

Commit 1c73c8f

Browse files
committed
feat: validate the version of nativescript-dev-webpack on each command
1 parent 5faf40d commit 1c73c8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/common/services/commands-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export class CommandsService implements ICommandsService {
2828
private $helpService: IHelpService,
2929
private $extensibilityService: IExtensibilityService,
3030
private $optionsTracker: IOptionsTracker,
31-
private $projectDataService: IProjectDataService) {
31+
private $projectDataService: IProjectDataService,
32+
private $bundleValidatorHelper: IBundleValidatorHelper) {
3233
}
3334

3435
public allCommands(opts: { includeDevCommands: boolean }): string[] {
@@ -115,6 +116,8 @@ export class CommandsService implements ICommandsService {
115116

116117
const dashedOptions = command ? command.dashedOptions : null;
117118
this.$options.validateOptions(dashedOptions, projectData);
119+
120+
this.$bundleValidatorHelper.validate(projectData, "1.0.0");
118121
}
119122

120123
return this.canExecuteCommand(commandName, commandArguments);

0 commit comments

Comments
 (0)