Skip to content

Commit

Permalink
fix(pkg): add default fallback and types export (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 15, 2024
1 parent 944b52f commit 9de1ef8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@ async function main() {
{
...pkg,
files: ["dist-*/**", "bin/**"],
main: "./dist-bundle/index.js",
types: "./dist-types/index.d.ts",
exports: {
".": {
types: "./dist-types/index.d.ts",
import: "./dist-bundle/index.js",
default: "./dist-bundle/index.js",
},
"./types": {
types: "./dist-types/types.d.ts",
},
},
sideEffects: false,
Expand Down

0 comments on commit 9de1ef8

Please sign in to comment.