From d3ada54e13e059bc14d58febb383965daf715366 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:01:04 -0500 Subject: [PATCH] fix(pkg): add `main` entry point (#551) 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",