Skip to content

Commit 1b6e582

Browse files
committed
fix(pkg): add a default fallback export
1 parent 5ad3ed4 commit 1b6e582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.mjs

+2-1
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
types: "./dist-types/index.d.ts",
6160
import: "./dist-src/index.js",
61+
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
62+
default: "./dist-src/index.js",
6263
}
6364
},
6465
sideEffects: false,

0 commit comments

Comments
 (0)