diff --git a/scripts/build.mjs b/scripts/build.mjs index 0192d75f..3c8adc87 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -65,12 +65,15 @@ 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", + }, + "./types": { + types: "./dist-types/types.d.ts", }, }, sideEffects: false,