From e05d100f96abdaa9a64d456a552008773ac672e5 Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 26 Feb 2024 20:31:43 -0500 Subject: [PATCH] fix(pkg): add `main` entry point 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 5d937709..1431e301 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -74,6 +74,8 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], + main: "./dist-node/index.js", + types: "./dist-types/index.d.ts", exports: { ".": { node: {