From 3c6e9b5b265d901f524ea516b5a78eed0532c062 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Wed, 4 Oct 2023 20:04:14 +0200 Subject: [PATCH] fix: use proper entrypoint for d.ts files --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 32ce636..6ec8780 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,10 +7,11 @@ const external = (id: string) => !id.startsWith("\0") && !id.startsWith(".") && !id.startsWith("/"); export default defineConfig({ - plugins: [dts()], + plugins: [dts({ entryRoot: "./src" })], build: { lib: { entry: path.resolve(__dirname, "src/index.ts"), + name: " arg-services", fileName: "index", formats: ["es"], },