Skip to content

Commit cec2053

Browse files
authoredFeb 27, 2024
fix(pkg): add main entry point (#523)
Some tools don't play well with only having the `exports` field present. See octokit/core.js#662
1 parent 778cece commit cec2053

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎scripts/build.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ async function main() {
6060
{
6161
...pkg,
6262
files: ["dist-*/**", "bin/**"],
63+
main: "./dist-bundle/index.js",
64+
types: "./dist-types/index.d.ts",
6365
exports: {
6466
".": {
6567
types: "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)