-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add patch for js-waku not found
When running the test with `jest`, it errored with ``` Cannot find module 'js-waku' from 'node_modules/@xmtp/xmtp-js/dist/cjs/src/utils.js' ``` The problem seems to be this issue waku-org/js-waku#770. Until this is resolved, we use a local patch as this only occurs when running tests.
- Loading branch information
Showing
3 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/node_modules/js-waku/package.json b/node_modules/js-waku/package.json | ||
index c5ade17..dfb4652 100644 | ||
--- a/node_modules/js-waku/package.json | ||
+++ b/node_modules/js-waku/package.json | ||
@@ -8,7 +8,8 @@ | ||
"exports": { | ||
"node": { | ||
"module": "./build/esm/index.js", | ||
- "import": "./build/main/index.js" | ||
+ "import": "./build/main/index.js", | ||
+ "require": "./build/main/index.js" | ||
}, | ||
"default": "./build/main/index.js" | ||
}, |