From 2108e56dfaff9f5c9d112ea6eaec3239e0ee9ab1 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Thu, 1 Sep 2022 14:29:31 +1000 Subject: [PATCH] fix: export wait_for_remote_peer in exports map This module will just consume a generate Waku and Waku Relay interfaces so we already we want to extract it. It is also one opinionated to handle connection management, other ways might come with https://github.com/status-im/js-waku/issues/914. --- .size-limit.cjs | 2 +- package.json | 4 ++++ rollup.config.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.size-limit.cjs b/.size-limit.cjs index 3c5d0d8261..d7b648f668 100644 --- a/.size-limit.cjs +++ b/.size-limit.cjs @@ -9,7 +9,7 @@ module.exports = [ path: ["bundle/index.js", "bundle/lib/create_waku.js"], import: { "./bundle/lib/create_waku.js": "{ createWaku }", - "./bundle/index.js": "{ waitForRemotePeer }", + "./bundle/lib/wait_for_remote_peer.js": "{ waitForRemotePeer }", }, }, { diff --git a/package.json b/package.json index 0d767ca4e8..745c08e910 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,10 @@ "./lib/predefined_bootstrap_nodes": { "types": "./dist/lib/predefined_bootstrap_nodes.d.ts", "import": "./dist/lib/predefined_bootstrap_nodes.js" + }, + "./lib/wait_for_remote_peer": { + "types": "./dist/lib/wait_for_remote_peer.d.ts", + "import": "./dist/lib/wait_for_remote_peer.js" } }, "typesVersions": { diff --git a/rollup.config.js b/rollup.config.js index 2f62f9ed77..bbb2da0822 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -9,6 +9,7 @@ export default { "lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js", "lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js", "lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js", + "lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js", }, output: { dir: "bundle",