diff --git a/scripts/build.mjs b/scripts/build.mjs index d7d9614c6..6b72228a9 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: { ".": { import: "./dist-src/index.js", types: "./dist-types/index.d.ts", + // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint + default: "./dist-types/index.js", }, }, sideEffects: false,