Skip to content

Commit

Permalink
fix: vue-class-component and vue-property-decorators should be depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
yyx990803 committed Feb 7, 2018
1 parent e261718 commit c26559d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ test('classComponent', async () => {
}
])

expect(pkg.devDependencies).toHaveProperty('vue-class-component')
expect(pkg.devDependencies).toHaveProperty('vue-property-decorator')
expect(pkg.dependencies).toHaveProperty('vue-class-component')
expect(pkg.dependencies).toHaveProperty('vue-property-decorator')

expect(files['tsconfig.json']).toMatch(`"experimentalDecorators": true`)
expect(files['tsconfig.json']).toMatch(`"emitDecoratorMetadata": true`)
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-typescript/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (api, {

if (classComponent) {
api.extendPackage({
devDependencies: {
dependencies: {
'vue-class-component': '^6.0.0',
'vue-property-decorator': '^6.0.0'
}
Expand Down

0 comments on commit c26559d

Please sign in to comment.