From 457f0434b43b9e16cbbe1b54c61bfc5dcaf666a6 Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Wed, 20 Jul 2022 23:54:31 +0800 Subject: [PATCH] fix(pkg): add types field for exports (#89) --- package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 222c088..c282866 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,13 @@ "description": "A unified javascript build system", "repository": "unjs/unbuild", "license": "MIT", - "exports": "./dist/index.mjs", - "types": "dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.mjs" + } + }, + "types": "./dist/index.d.ts", "bin": { "unbuild": "./dist/cli.mjs" },