From 9866c4106ebf5593a62645cd3818d6e135564e8b Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:40:59 -0400 Subject: [PATCH] fix(pkg): add `default` fallback to exports (#688) --- scripts/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index bdd56c9a4..f07914c65 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -61,12 +61,12 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], - main: "dist-bundle/index.js", types: "dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-bundle/index.js", + default: "./dist-bundle/index.js", }, }, sideEffects: false,