diff --git a/scripts/build.mjs b/scripts/build.mjs index 3363b684..aba1ded2 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -61,6 +61,11 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], + // Tooling currently are having issues with the "exports" field, ex: TypeScript, eslint + // We add a `main` and `types` field to the package.json for the time being + // See https://github.com/octokit/core.js/pulls/662 + main: "dist-bundle/index.js", + types: "dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts",