Skip to content

Commit

Permalink
fix: add interface files to the exports map (#246)
Browse files Browse the repository at this point in the history
Interfaces from the interface files in this module are
[imported](https://github.com/ipld/js-dag-cbor/blob/master/src/index.js#L9)
in other modules, so they need to be in the exports map otherwise
tsc can fail to build dependant modules.
  • Loading branch information
achingbrain authored Mar 9, 2023
1 parent c8e64e5 commit a58a398
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
"types": "./dist/types/src/bases/identity.d.ts",
"import": "./src/bases/identity.js"
},
"./bases/interface": {
"types": "./dist/types/src/bases/interface.d.ts",
"import": "./src/bases/interface.js"
},
"./basics": {
"types": "./dist/types/src/basics.d.ts",
"import": "./src/basics.js"
Expand All @@ -104,6 +108,10 @@
"types": "./dist/types/src/block.d.ts",
"import": "./src/block.js"
},
"./block/interface": {
"types": "./dist/types/src/block/interface.d.ts",
"import": "./src/block/interface.js"
},
"./bytes": {
"types": "./dist/types/src/bytes.d.ts",
"import": "./src/bytes.js"
Expand All @@ -112,6 +120,10 @@
"types": "./dist/types/src/cid.d.ts",
"import": "./src/cid.js"
},
"./codecs/interface": {
"types": "./dist/types/src/codecs/interface.d.ts",
"import": "./src/codecs/interface.js"
},
"./codecs/json": {
"types": "./dist/types/src/codecs/json.d.ts",
"import": "./src/codecs/json.js"
Expand All @@ -132,6 +144,10 @@
"types": "./dist/types/src/hashes/identity.d.ts",
"import": "./src/hashes/identity.js"
},
"./hashes/interface": {
"types": "./dist/types/src/hashes/interface.d.ts",
"import": "./src/hashes/interface.js"
},
"./hashes/sha2": {
"types": "./dist/types/src/hashes/sha2.d.ts",
"browser": "./src/hashes/sha2-browser.js",
Expand All @@ -145,6 +161,10 @@
"types": "./dist/types/src/link.d.ts",
"import": "./src/link.js"
},
"./link/interface": {
"types": "./dist/types/src/interface.d.ts",
"import": "./src/interface.js"
},
"./traversal": {
"types": "./dist/types/src/traversal.d.ts",
"import": "./src/traversal.js"
Expand Down

0 comments on commit a58a398

Please sign in to comment.