Skip to content

Commit 42148fc

Browse files
authored
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"
1 parent 88d3536 commit 42148fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ async function main() {
5555
{
5656
...pkg,
5757
files: ["dist-*/**", "bin/**"],
58+
main: "./dist-src/index.js",
59+
types: "./dist-types/index.d.ts",
5860
exports: {
5961
".": {
6062
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)