feat: validate the version of nativescript-dev-webpack plugin on every command #4796
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NativeScript CLI 6.0 cannot work with
nativescript-dev-webpackwith version lower than 1.0.0. So we need a validation to check the version ofnativescript-dev-webpackplugin on every command. This PR validates the version ofnativescript-dev-webpackplugin and throws the following error when the version ofnativescript-dev-webpackis lower than1.0.0(for example,"~0.24.0"):The error is NOT thrown in the following situations:
nativescript-dev-webpackis not a valid semver version (for example:next,rc)nativescript-dev-webpackplugin is referenced from local .tgz or directorynativescript-dev-webpackis for example1.0.0-rc-2019-07-02-164330-03Rel to: #4798
PR Checklist
What is the current behavior?
What is the new behavior?
Fixes/Implements/Closes #[Issue Number].