From f5bceba915e1b398123c1a7e06805a4f98c40c85 Mon Sep 17 00:00:00 2001 From: eng-cc <66scc66@gmail.com> Date: Wed, 29 Mar 2023 10:34:34 +0800 Subject: [PATCH] fix: add types to exports in packages.json --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index f944da51..65efb4f8 100644 --- a/package.json +++ b/package.json @@ -11,18 +11,23 @@ "types": "dist/src/index.d.ts", "exports": { ".": { + "types": "./dist/src/index.d.ts", "import": "./dist/src/index.js" }, "./metrics": { + "types": "./dist/src/metrics.d.ts", "import": "./dist/src/metrics.js" }, "./message": { + "types": "./dist/src/message/index.d.ts", "import": "./dist/src/message/index.js" }, "./score": { + "types": "./dist/src/score/index.d.ts", "import": "./dist/src/score/index.js" }, "./types": { + "types": "./dist/src/types.d.ts", "import": "./dist/src/types.js" } },