From 1b6e5829faaaefb9e4133685f719a56234a304b1 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Tue, 16 Apr 2024 15:05:50 -0400 Subject: [PATCH] fix(pkg): add a default fallback export --- scripts/build.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 396130d3..6fc2c1be 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -53,12 +53,13 @@ async function main() { { ...pkg, files: ["dist-*/**"], - main: "dist-src/index.js", types: "dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-src/index.js", + // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint + default: "./dist-src/index.js", } }, sideEffects: false,