From baa876da5b82117c1326a42151016761ebae6fae Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 26 Feb 2024 20:11:56 -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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 1451e7ca..0192d75f 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -65,7 +65,9 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], - exports: { + main: "./dist-bundle/index.js", + types: "./dist-types/index.d.ts", + exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-bundle/index.js",