Skip to content

Commit

Permalink
fix: import types with a-la-carte and typescript
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
KaelWD committed Dec 3, 2020
1 parent 343449a commit 3dac4f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'vuetify/types'
6 changes: 6 additions & 0 deletions packages/vue-cli-plugin-vuetify/generator/tools/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ function renderFiles (api, { opts }) {
typescript: api.hasPlugin('typescript'),
})

if (api.hasPlugin('typescript') && opts.useAlaCarte) {
api.render({
'./src/shims-vuetify.d.ts': '../templates/default/src/shims-vuetify.d.ts',
})
}

// Render files if we're replacing
const fs = require('fs')
const routerPath = api.resolve(`./src/router.${ext}`)
Expand Down

0 comments on commit 3dac4f1

Please sign in to comment.