From 40dda9a74174438b7862934f87e1a27b52901bda Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 15 Dec 2022 20:33:08 +0800 Subject: [PATCH] Ship types --- package.json | 2 ++ tsup.config.ts | 1 + 2 files changed, 3 insertions(+) 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, });