Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 3dac4f1

Browse files
committed
fix: import types with a-la-carte and typescript
fixes #43
1 parent 343449a commit 3dac4f1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import 'vuetify/types'

packages/vue-cli-plugin-vuetify/generator/tools/vuetify.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ function renderFiles (api, { opts }) {
2121
typescript: api.hasPlugin('typescript'),
2222
})
2323

24+
if (api.hasPlugin('typescript') && opts.useAlaCarte) {
25+
api.render({
26+
'./src/shims-vuetify.d.ts': '../templates/default/src/shims-vuetify.d.ts',
27+
})
28+
}
29+
2430
// Render files if we're replacing
2531
const fs = require('fs')
2632
const routerPath = api.resolve(`./src/router.${ext}`)

0 commit comments

Comments
 (0)