From 952b053e9c65bd7635407a63631ec031e8d4e028 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Thu, 20 Feb 2025 14:07:01 +1100 Subject: [PATCH] fix: update TypeScript definition path in package.json and configure dts plugin with tsconfig path --- package.json | 2 +- vite.config.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c6432d5..62d9cd4 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ }, "main": "dist/index.cjs.js", "module": "dist/datenel.es.js", - "types": "dist/index.d.ts", + "types": "dist/src/index.d.ts", "files": [ "dist" ] diff --git a/vite.config.ts b/vite.config.ts index 36217fc..85f0cdc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -20,8 +20,7 @@ export default defineConfig(({mode}) => ({ }, }, plugins: [react(), dts({ - insertTypesEntry: true, - logLevel: "info" + tsconfigPath: "./tsconfig.app.json" })], resolve: { alias: {