Skip to content

Commit f6afdb1

Browse files
committed
workflow: fix syncDeps for prerelease versions
1 parent 63f501a commit f6afdb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vue/cli-service/__tests__/Service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test('loading plugins from package.json', () => {
6464
mockPkg({
6565
devDependencies: {
6666
'bar': '^1.0.0',
67-
'@vue/cli-plugin-babel': '^4.0.0',
67+
'@vue/cli-plugin-babel': '^4.0.0-alpha.0',
6868
'vue-cli-plugin-foo': '^1.0.0'
6969
}
7070
})

scripts/syncDeps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ async function syncDeps ({ local, version, skipPrompt }) {
173173
return require(`../packages/${pkg}/package.json`).version
174174
}
175175

176-
if (pkg.includes('@vue/cli-plugin')) {
176+
if (!semver.prerelease(version) && pkg.includes('@vue/cli-plugin')) {
177177
return `${semver.major(version)}.${semver.minor(version)}.0`
178178
}
179179

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy