From ed83ba5104b393430a5e65c05b99d66f00d21d8c Mon Sep 17 00:00:00 2001 From: wolfy1339 Date: Mon, 15 Apr 2024 19:37:13 -0400 Subject: [PATCH] fix(pkg): add a default fallback See octokit/core.js#665 octokit/core.js#667 --- scripts/build.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 8c0cea3..2e6f4e0 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -50,12 +50,13 @@ 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", import: "./dist-src/index.js", + // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint + default: "./dist-src/index.js", } }, sideEffects: false,