From cec2053b710908aacdfc8e69c08ecc4ce0b291eb Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:02:06 -0500 Subject: [PATCH] fix(pkg): add `main` entry point (#523) Some tools don't play well with only having the `exports` field present. See octokit/core.js#662 --- scripts/build.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.mjs b/scripts/build.mjs index 4199406..74b256e 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -60,6 +60,8 @@ 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",