Skip to content

Commit

Permalink
chore(CJS): conditional exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjlewis committed Jun 17, 2023
1 parent 76e95f5 commit 95c9599
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@
"import": "./node.js",
"require": "./node.cjs"
},
".": "./dist/index.js",
"./*": "./dist/*/index.js"
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"import": "./dist/*/index.js",
"require": "./dist/*/index.cjs"
}
},
"scripts": {
"dev": "tsmodule dev",
Expand Down Expand Up @@ -66,4 +72,4 @@
"releaseName": "v${version}"
}
}
}
}

1 comment on commit 95c9599

@vercel
Copy link

@vercel vercel bot commented on 95c9599 Jun 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.