From a6fcd43838cf88de38d5469171ec88dbc95e9f7c Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sun, 8 Dec 2024 16:04:50 -0500 Subject: [PATCH] fix(vue): use dts w/Rollup to fix types & pass "are the types wrong" --- frameworks/slickgrid-vue/package.json | 1 + frameworks/slickgrid-vue/vite.config.mts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/slickgrid-vue/package.json b/frameworks/slickgrid-vue/package.json index f30a976b6..6c9b0f8b3 100644 --- a/frameworks/slickgrid-vue/package.json +++ b/frameworks/slickgrid-vue/package.json @@ -4,6 +4,7 @@ "description": "Slickgrid-Vue", "type": "module", "main": "./dist/index.cjs", + "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { diff --git a/frameworks/slickgrid-vue/vite.config.mts b/frameworks/slickgrid-vue/vite.config.mts index 459cf2cd3..dc34c8954 100644 --- a/frameworks/slickgrid-vue/vite.config.mts +++ b/frameworks/slickgrid-vue/vite.config.mts @@ -9,7 +9,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url)); // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue(), dts({ insertTypesEntry: true, rollupTypes: false, tsconfigPath: './tsconfig.app.json' })], + plugins: [vue(), dts({ insertTypesEntry: true, rollupTypes: true, tsconfigPath: './tsconfig.app.json' })], build: { lib: { entry: resolve(__dirname, 'src/index.ts'),