Skip to content

Commit

Permalink
fix(pkg): add a default fallback export
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 16, 2024
1 parent 5ad3ed4 commit 1b6e582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ async function main() {
{
...pkg,
files: ["dist-*/**"],
main: "dist-src/index.js",
types: "dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-src/index.js",
// Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint
default: "./dist-src/index.js",
}
},
sideEffects: false,
Expand Down

0 comments on commit 1b6e582

Please sign in to comment.