From 42148fc96ee489c5ebeb0fb30bac62e1fa3daaf7 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:06:09 +0400 Subject: [PATCH] fix(pkg): add main entry point (#662) * add main entry point so eslint doesn't complain with the unresolved error `Unable to resolve path to module '@octokit/core'` * add "types" --- scripts/build.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.mjs b/scripts/build.mjs index 122723cc2..5e76ea9ee 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -55,6 +55,8 @@ 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",