From 01c084bf88d90c9e95df6ad09b43bb0759815b6e Mon Sep 17 00:00:00 2001 From: Yurii Brusentsov Date: Sat, 3 Feb 2024 19:43:41 +0200 Subject: [PATCH] fix: remove unreachable d.ts references --- package.json | 5 +++-- tsup.config.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7c6c043..7d2423b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "exports": { ".": { "import": { - "types": "./build/index.d.ts", + "types": "./build/index.d.mts", "default": "./build/index.mjs" }, "require": { @@ -34,12 +34,13 @@ }, "types": "./build/index.d.ts", "main": "./build/index.js", + "module": "./build/index.mjs", "files": [ "build/**/*" ], "scripts": { "cm": "cz", - "build": "tsup && tsc --emitDeclarationOnly", + "build": "tsup", "test": "jest", "test-storybook": "test-storybook", "test:coverage": "jest --coverage", diff --git a/tsup.config.ts b/tsup.config.ts index dfe12f9..bb51857 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -8,4 +8,5 @@ export default defineConfig({ minify: true, format: ['esm', 'cjs'], outDir: 'build', + dts: true, });