Skip to content

Commit

Permalink
Add explicit exports for Node (#83)
Browse files Browse the repository at this point in the history
This adds explicit exports for node into the package.json for all
published packages in Connect-ES. In addition, it modifies the path for
the top-level import statement to use ESM instead of the proxy.

For additional context, see
connectrpc/connect-es#921
  • Loading branch information
smaye81 authored Dec 5, 2023
1 parent 5d64d3d commit 17a5f2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/connect-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
"main": "./dist/cjs/index.js",
"exports": {
".": {
"node": {
"import": "./dist/proxy/index.js",
"require": "./dist/cjs/index.js"
},
"module": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"import": "./dist/proxy/index.js"
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"peerDependencies": {
Expand Down

0 comments on commit 17a5f2e

Please sign in to comment.