diff --git a/scripts/build.mjs b/scripts/build.mjs index 3363b684..e8f962df 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -61,10 +61,13 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], + types: "./dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-bundle/index.js", + // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint + default: "./dist-bundle/index.js", }, }, sideEffects: false,