From 29ffeca731b2731588d09dc488e29b516ca26dfd Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 8 Apr 2024 12:48:25 -0400 Subject: [PATCH] fix(pkg): add a default fallback See #665 #667 --- scripts/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 5e76ea9ee..ff1743e07 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -55,12 +55,12 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], - main: "./dist-src/index.js", types: "./dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-src/index.js", + default: "./dist-src/index.js" }, }, sideEffects: false,