Skip to content

Commit

Permalink
build: manual exports until endojs/endo#2265
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 2, 2024
1 parent 3c59ca0 commit 231416e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cosmic-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@
"types": "./dist/codegen/cosmos/*.d.ts",
"default": "./dist/codegen/cosmos/*.js"
},
"./cosmos/tx/v1beta1/tx.js": {
"types": "./dist/codegen/cosmos/tx/v1beta1/tx.d.ts",
"default": "./dist/codegen/cosmos/tx/v1beta1/tx.js"
},
"./google/*.js": {
"types": "./dist/codegen/google/*.d.ts",
"default": "./dist/codegen/google/*.js"
},
"./google/protobuf/any.js": {
"types": "./dist/codegen/google/protobuf/any.d.ts",
"default": "./dist/codegen/google/protobuf/any.js"
},
"./ibc/*.js": {
"types": "./dist/codegen/ibc/*.d.ts",
"default": "./dist/codegen/ibc/*.js"
Expand Down
5 changes: 5 additions & 0 deletions packages/cosmic-proto/package.json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Notes about this package.json

The `exports` field uses [subpath patterns](https://nodejs.org/docs/latest-v18.x/api/packages.html#subpath-patterns) but Endo's bundler doesn't yet support those: https://github.com/endojs/endo/issues/2265

Meanwhile, we explicitly export whatever paths are needed by modules that end up in Endo bundles.

0 comments on commit 231416e

Please sign in to comment.