Skip to content

Commit 8c169db

Browse files
authored
fix: export version from libp2p (#2279)
To allow consumers to programatically report the version of libp2p that is running, export the version file.
1 parent 97dfa80 commit 8c169db

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

packages/libp2p/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"url": "https://github.com/libp2p/js-libp2p/issues"
1313
},
1414
"publishConfig": {
15+
"access": "public",
1516
"provenance": true
1617
},
1718
"keywords": [
@@ -24,6 +25,22 @@
2425
],
2526
"type": "module",
2627
"types": "./dist/src/index.d.ts",
28+
"typesVersions": {
29+
"*": {
30+
"*": [
31+
"*",
32+
"dist/*",
33+
"dist/src/*",
34+
"dist/src/*/index"
35+
],
36+
"src/*": [
37+
"*",
38+
"dist/*",
39+
"dist/src/*",
40+
"dist/src/*/index"
41+
]
42+
}
43+
},
2744
"files": [
2845
"src",
2946
"dist",
@@ -34,6 +51,10 @@
3451
".": {
3552
"types": "./dist/src/index.d.ts",
3653
"import": "./dist/src/index.js"
54+
},
55+
"./version": {
56+
"types": "./dist/src/version.d.ts",
57+
"import": "./dist/src/version.js"
3758
}
3859
},
3960
"eslintConfig": {

0 commit comments

Comments
 (0)