Skip to content

Commit b678490

Browse files
committed
fix(pkg): add a default fallback export
See octokit/core.js#665 octokit/core.js#667
1 parent 85bf1df commit b678490

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ async function main() {
5353
{
5454
...pkg,
5555
files: ["dist-*/**"],
56-
main: "./dist-src/index.js",
5756
types: "./dist-types/index.d.ts",
5857
exports: {
5958
".": {
6059
import: "./dist-src/index.js",
6160
types: "./dist-types/index.d.ts",
61+
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
62+
default: "./dist-types/index.js",
6263
},
6364
},
6465
sideEffects: false,

0 commit comments

Comments
 (0)