Skip to content

Commit 08add21

Browse files
committed
fix: fix @vue/cli-service initial version
1 parent 114e085 commit 08add21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/@vue/cli/lib/Creator.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const {
2929
hasGit,
3030
hasYarn,
3131
logWithSpinner,
32-
stopSpinner,
33-
isOfficialPlugin
32+
stopSpinner
3433
} = require('@vue/cli-shared-utils')
3534

3635
const isManualMode = answers => answers.preset === '__manual__'
@@ -106,7 +105,7 @@ module.exports = class Creator {
106105
const deps = Object.keys(preset.plugins)
107106
deps.forEach(dep => {
108107
pkg.devDependencies[dep] = preset.plugins[dep].version ||
109-
(isOfficialPlugin(dep) ? `^${latest}` : `latest`)
108+
(/^@vue/.test(dep) ? `^${latest}` : `latest`)
110109
})
111110
// write package.json
112111
await writeFileTree(context, {

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