From c36ba54eaa121cf6b8dc1a8dd7687fbdad0618d4 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:24:44 +0400 Subject: [PATCH 1/2] add main entry point so eslint doesn't complain with the unresolved error `Unable to resolve path to module '@octokit/core'` --- scripts/build.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.mjs b/scripts/build.mjs index 122723cc2..b36025a9b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -55,6 +55,7 @@ async function main() { { ...pkg, files: ["dist-*/**", "bin/**"], + main: "./dist-src/index.js", exports: { ".": { types: "./dist-types/index.d.ts", From 7d9a81b632b12a26887776c47b4c1a763c8be85d Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:54:53 +0400 Subject: [PATCH 2/2] add "types" --- scripts/build.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.mjs b/scripts/build.mjs index b36025a9b..5e76ea9ee 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -56,6 +56,7 @@ 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",