Skip to content

Commit

Permalink
fix: properly export types, build more complete pack
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 12, 2022
1 parent 11294af commit 8172ea8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ node_modules
yarn.lock
types
test/ts-use/tsconfig.tsbuildinfo
test/tsconfig.tsbuildinfo
types/tsconfig.tsbuildinfo
*.log
77 changes: 40 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,125 +22,131 @@
"npm": ">=7.0.0"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"types": "./types/src/index.d.ts",
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
"types/*",
"types/src/*",
"types/src/*/index"
],
"src/*": [
"*",
"dist/*",
"dist/src/*",
"dist/src/*/index"
"types/*",
"types/src/*",
"types/src/*/index"
]
}
},
"files": [
"CHANGELOG.md",
"examples",
"LICENSE*",
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
"test",
"tsconfig.json",
"types",
"vendor",
"!**/*.tsbuildinfo",
"!test/ts-use/node_modules"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"types": "./types/src/index.d.ts",
"import": "./src/index.js"
},
"./bases/base10": {
"types": "./src/bases/base10.d.ts",
"types": "./types/src/bases/base10.d.ts",
"import": "./src/bases/base10.js"
},
"./bases/base16": {
"types": "./src/bases/base16.d.ts",
"types": "./types/src/bases/base16.d.ts",
"import": "./src/bases/base16.js"
},
"./bases/base2": {
"types": "./src/bases/base2.d.ts",
"types": "./types/src/bases/base2.d.ts",
"import": "./src/bases/base2.js"
},
"./bases/base256emoji": {
"types": "./src/bases/base256emoji.d.ts",
"types": "./types/src/bases/base256emoji.d.ts",
"import": "./src/bases/base256emoji.js"
},
"./bases/base32": {
"types": "./src/bases/base32.d.ts",
"types": "./types/src/bases/base32.d.ts",
"import": "./src/bases/base32.js"
},
"./bases/base36": {
"types": "./src/bases/base36.d.ts",
"types": "./types/src/bases/base36.d.ts",
"import": "./src/bases/base36.js"
},
"./bases/base58": {
"types": "./src/bases/base58.d.ts",
"types": "./types/src/bases/base58.d.ts",
"import": "./src/bases/base58.js"
},
"./bases/base64": {
"types": "./src/bases/base64.d.ts",
"types": "./types/src/bases/base64.d.ts",
"import": "./src/bases/base64.js"
},
"./bases/base8": {
"types": "./src/bases/base8.d.ts",
"types": "./types/src/bases/base8.d.ts",
"import": "./src/bases/base8.js"
},
"./bases/identity": {
"types": "./src/bases/identity.d.ts",
"types": "./types/src/bases/identity.d.ts",
"import": "./src/bases/identity.js"
},
"./basics": {
"types": "./src/basics.d.ts",
"types": "./types/src/basics.d.ts",
"import": "./src/basics.js"
},
"./block": {
"types": "./src/block.d.ts",
"types": "./types/src/block.d.ts",
"import": "./src/block.js"
},
"./bytes": {
"types": "./src/bytes.d.ts",
"types": "./types/src/bytes.d.ts",
"import": "./src/bytes.js"
},
"./cid": {
"types": "./src/cid.d.ts",
"types": "./types/src/cid.d.ts",
"import": "./src/cid.js"
},
"./codecs/json": {
"types": "./src/codecs/json.d.ts",
"types": "./types/src/codecs/json.d.ts",
"import": "./src/codecs/json.js"
},
"./codecs/raw": {
"types": "./src/codecs/raw.d.ts",
"types": "./types/src/codecs/raw.d.ts",
"import": "./src/codecs/raw.js"
},
"./hashes/digest": {
"types": "./src/hashes/digest.d.ts",
"types": "./types/src/hashes/digest.d.ts",
"import": "./src/hashes/digest.js"
},
"./hashes/hasher": {
"types": "./src/hashes/hasher.d.ts",
"types": "./types/src/hashes/hasher.d.ts",
"import": "./src/hashes/hasher.js"
},
"./hashes/identity": {
"types": "./src/hashes/identity.d.ts",
"types": "./types/src/hashes/identity.d.ts",
"import": "./src/hashes/identity.js"
},
"./hashes/sha2": {
"types": "./src/hashes/sha2.d.ts",
"types": "./types/src/hashes/sha2.d.ts",
"browser": "./src/hashes/sha2-browser.js",
"import": "./src/hashes/sha2.js"
},
"./interface": {
"types": "./src/interface.d.ts",
"types": "./types/src/interface.d.ts",
"import": "./src/interface.js"
},
"./link": {
"types": "./src/link.d.ts",
"types": "./types/src/link.d.ts",
"import": "./src/link.js"
},
"./traversal": {
"types": "./src/traversal.d.ts",
"types": "./types/src/traversal.d.ts",
"import": "./src/traversal.js"
}
},
Expand Down Expand Up @@ -278,8 +284,5 @@
]
}
},
"directories": {
"test": "test"
},
"main": "./src/index.js"
}

0 comments on commit 8172ea8

Please sign in to comment.