From e679a3fa0cd950c6287b9ce94d229c97bc1f2ce7 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:02:03 -0500 Subject: [PATCH] fix: add `main` entry point (#355) 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 64c6982..cba6f6b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -52,6 +52,8 @@ async function main() { { ...pkg, files: ["dist-*/**"], + main: "./dist-src/index.js", + types: "./dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts",