diff --git a/package.json b/package.json index c19cee1..4708ca0 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,12 @@ "version": "5.0.0", "license": "MIT", "type": "module", + "types": "./dist/index.d.ts", "main": "./dist/index.cjs", "module": "./dist/index.js", "exports": { ".": { + "types": "./dist/index.d.ts", "require": "./dist/index.cjs", "import": "./dist/index.js" } diff --git a/tsup.config.ts b/tsup.config.ts index dd83af8..9f5437c 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -4,4 +4,5 @@ export default defineConfig({ entry: ['src/index.ts'], format: ['cjs', 'esm'], clean: true, + dts: true, });