From ac7e1c9b9dede72e747c2b79dd0d91fceb845f99 Mon Sep 17 00:00:00 2001 From: Evan Ye Date: Mon, 30 Oct 2023 14:28:03 +0800 Subject: [PATCH] fix: export types in exports field --- src/commands/bundle/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/bundle/index.ts b/src/commands/bundle/index.ts index ea425f1..940d672 100644 --- a/src/commands/bundle/index.ts +++ b/src/commands/bundle/index.ts @@ -48,6 +48,7 @@ export default class BundleCommand extends BuildCommand { const pkg = super.preparePackageJson(); const exports = { + types: "./index.d.ts", require: './index.js', import: './index.mjs', };