Skip to content

Commit

Permalink
refactor: use dep versions from plugin package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Feb 5, 2020
1 parent 1b64ff8 commit 82bd074
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/@vue/cli-plugin-typescript/generator/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const pluginDevDeps = require('../package.json').devDependencies

module.exports = (api, {
classComponent,
tsLint,
Expand All @@ -11,15 +13,15 @@ module.exports = (api, {

api.extendPackage({
devDependencies: {
typescript: '~3.7.5'
typescript: pluginDevDeps.typescript
}
})

if (classComponent) {
api.extendPackage({
dependencies: {
'vue-class-component': '^7.2.2',
'vue-property-decorator': '^8.3.0'
'vue-class-component': pluginDevDeps['vue-class-component'],
'vue-property-decorator': pluginDevDeps['vue-property-decorator']
}
})
}
Expand Down

0 comments on commit 82bd074

Please sign in to comment.