Skip to content

Commit

Permalink
fix: fix @vue/cli-service initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 6, 2018
1 parent 114e085 commit 08add21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/@vue/cli/lib/Creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ const {
hasGit,
hasYarn,
logWithSpinner,
stopSpinner,
isOfficialPlugin
stopSpinner
} = require('@vue/cli-shared-utils')

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

0 comments on commit 08add21

Please sign in to comment.