Skip to content

Commit

Permalink
feat: add react-native exports
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Mar 13, 2024
1 parent 5296bfb commit bdddcdd
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 19 deletions.
13 changes: 9 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"description": "TypeScript implementation of the Waku v2 protocol",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
},
"./lib/predefined_bootstrap_nodes": {
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
"import": "./dist/lib/predefined_bootstrap_nodes.js"
"import": "./dist/lib/predefined_bootstrap_nodes.js",
"react-native": "./dist/lib/predefined_bootstrap_nodes.js"
},
"./lib/message/version_0": {
"types": "./dist/lib/message/version_0.d.ts",
"import": "./dist/lib/message/version_0.js"
"import": "./dist/lib/message/version_0.js",
"react-native": "./dist/lib/message/version_0.js"
},
"./lib/base_protocol": {
"types": "./dist/lib/base_protocol.d.ts",
"import": "./dist/lib/base_protocol.js"
"import": "./dist/lib/base_protocol.js",
"react-native": "./dist/lib/base_protocol.js"
}
},
"typesVersions": {
Expand Down
4 changes: 3 additions & 1 deletion packages/discovery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Contains various discovery mechanisms: DNS Discovery (EIP-1459, Peer Exchange, Local Peer Cache Discovery.",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion packages/enr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "ENR (EIP-778) for Waku",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion packages/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Definition of Waku interfaces",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
13 changes: 9 additions & 4 deletions packages/message-encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@
"description": "Waku Message Payload Encryption",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
},
"./ecies": {
"types": "./dist/ecies.d.ts",
"import": "./dist/ecies.js"
"import": "./dist/symmetric.js",
"react-native": "./dist/symmetric.js"
},
"./symmetric": {
"types": "./dist/symmetric.d.ts",
"import": "./dist/symmetric.js"
"import": "./dist/symmetric.js",
"react-native": "./dist/symmetric.js"
},
"./crypto": {
"types": "./dist/crypto/index.d.ts",
"import": "./dist/crypto/index.js"
"import": "./dist/crypto/index.js",
"react-native": "./dist/crypto/index.js"
}
},
"typesVersions": {
Expand Down
4 changes: 3 additions & 1 deletion packages/message-hash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "TypeScript implementation of the Deterministic Message Hashing as specified in 14/WAKU2-MESSAGE",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion packages/proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Protobuf definitions for Waku",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion packages/relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"description": "Relay Protocol for Waku",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
}
},
"type": "module",
Expand Down
7 changes: 5 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
"description": "A unified SDK for easy creation and management of js-waku nodes.",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
},
"./relay": {
"types": "./dist/relay-node/index.d.ts",
"import": "./dist/relay-node/index.js"
"import": "./dist/relay-node/index.js",
"react-native": "./dist/relay-node/index.js"
}
},
"typesVersions": {
Expand Down
10 changes: 7 additions & 3 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
"description": "Different utilities for Waku",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"react-native": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"import": "./dist/index.js",
"react-native": "./dist/index.js"
},
"./libp2p": {
"types": "./dist/libp2p/index.d.ts",
"import": "./dist/libp2p/index.js"
"import": "./dist/libp2p/index.js",
"react-native": "./dist/libp2p/index.js"
},
"./bytes": {
"types": "./dist/bytes/index.d.ts",
"import": "./dist/bytes/index.js"
"import": "./dist/bytes/index.js",
"react-native": "./dist/bytes/index.js"
}
},
"typesVersions": {
Expand Down

0 comments on commit bdddcdd

Please sign in to comment.