File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class PluginAPI {
33
33
throw new Error ( 'Expected string or integer value.' )
34
34
}
35
35
36
- if ( semver . satisfies ( this . version , range ) ) return
36
+ if ( semver . satisfies ( this . version , range , { includePrerelease : true } ) ) return
37
37
38
38
throw new Error (
39
39
`Require @vue/cli-service "${ range } ", but was loaded with "${ this . version } ".`
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class GeneratorAPI {
90
90
throw new Error ( 'Expected string or integer value.' )
91
91
}
92
92
93
- if ( semver . satisfies ( this . cliVersion , range ) ) return
93
+ if ( semver . satisfies ( this . cliVersion , range , { includePrerelease : true } ) ) return
94
94
95
95
throw new Error (
96
96
`Require global @vue/cli "${ range } ", but was invoked by "${ this . cliVersion } ".`
@@ -124,7 +124,7 @@ class GeneratorAPI {
124
124
throw new Error ( 'Expected string or integer value.' )
125
125
}
126
126
127
- if ( semver . satisfies ( this . cliServiceVersion , range ) ) return
127
+ if ( semver . satisfies ( this . cliServiceVersion , range , { includePrerelease : true } ) ) return
128
128
129
129
throw new Error (
130
130
`Require @vue/cli-service "${ range } ", but was loaded with "${ this . cliServiceVersion } ".`
You can’t perform that action at this time.
0 commit comments