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