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