From 66b0e1a039168d3ce7f14c2d99b1ba19ff5396cb Mon Sep 17 00:00:00 2001 From: Patrick Cate Date: Sat, 20 Apr 2024 22:55:54 -0400 Subject: [PATCH] fix: move vue-uswds module declaration from file to module.ts --- src/global.d.ts | 2 -- src/module.ts | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 src/global.d.ts diff --git a/src/global.d.ts b/src/global.d.ts deleted file mode 100644 index 16ac8df..0000000 --- a/src/global.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare module 'vue-uswds/core'; -declare module 'vue-uswds/components'; diff --git a/src/module.ts b/src/module.ts index d047495..098a95c 100644 --- a/src/module.ts +++ b/src/module.ts @@ -111,8 +111,9 @@ export default defineNuxtModule({ } addTypeTemplate({ - src: resolver.resolve('./global.d.ts'), filename: 'types/vue-uswds.d.ts', + getContents: () => + `declare module 'vue-uswds/core';\ndeclare module 'vue-uswds/components';`, }); // Do not add the extension since the `.ts` will be transpiled to