build(unplugin): enable dts for global component def. generation (#650)

This commit is contained in:
pataar 2022-02-16 19:56:03 +01:00 committed by GitHub
parent 027422b3a5
commit dfa3abc35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

2
components.d.ts vendored
View File

@ -47,6 +47,7 @@ declare module 'vue' {
MoonrakerStatePanel: typeof import('./src/components/panels/MoonrakerStatePanel.vue')['default']
MotionSettings: typeof import('./src/components/panels/MachineSettings/MotionSettings.vue')['default']
MotionSettingsInput: typeof import('./src/components/inputs/MotionSettingsInput.vue')['default']
NumberInput: typeof import('./src/components/inputs/NumberInput.vue')['default']
Panel: typeof import('./src/components/ui/Panel.vue')['default']
PowerControlPanel: typeof import('./src/components/panels/PowerControlPanel.vue')['default']
PressureAdvanceSettings: typeof import('./src/components/panels/MachineSettings/PressureAdvanceSettings.vue')['default']
@ -140,6 +141,7 @@ declare module 'vue' {
VProgressLinear: typeof import('vuetify/lib')['VProgressLinear']
VRow: typeof import('vuetify/lib')['VRow']
VSelect: typeof import('vuetify/lib')['VSelect']
VSimpleCheckbox: typeof import('vuetify/lib')['VSimpleCheckbox']
VSimpleTable: typeof import('vuetify/lib')['VSimpleTable']
VSlider: typeof import('vuetify/lib')['VSlider']
VSnackbar: typeof import('vuetify/lib')['VSnackbar']

View File

@ -33,6 +33,7 @@
]
},
"include": [
"components.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",

View File

@ -16,6 +16,7 @@ export default defineConfig({
loadVersion(),
checker({ typescript: true }),
Components({
dts: true, // enabled by default if `typescript` is installed
resolvers: [VuetifyResolver()],
}),
],