Skip to content

Commit

Permalink
fix: hashgraph-sdk with new metro resolver to use NativeClient
Browse files Browse the repository at this point in the history
  • Loading branch information
KVNLS committed Jun 6, 2024
1 parent 6701d2f commit f66564f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-spoons-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Patch hashgraph-sdk to support Metro resolver exports
1 change: 1 addition & 0 deletions apps/ledger-live-mobile/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const transformIncludePatterns = [
"react-native-modal",
"react-native-animatable",
"@sentry/react-native",
"@hashgraph/sdk",
"react-native-startup-time",
"@segment/analytics-react-native",
"uuid",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.0.3",
"nyc": "^15.1.0",
"prettier": "^3.0.3",
"rimraf": "^4.4.1",
"turbo": "1.10.1",
"typescript": "^5.4.3",
Expand All @@ -192,7 +192,8 @@
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"@hashgraph/[email protected]": "patches/@[email protected]"
},
"packageExtensions": {
"eslint-config-next@*": {
Expand Down
12 changes: 12 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/package.json b/package.json
index af44c5f5b98e37b06817c31523b6d0c080a8bf89..9f565924451a0502cec7979424aa631f7838f74d 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"./package.json": "./package.json",
".": {
"import": "./src/index.js",
+ "react-native": "./src/native.js",
"require": "./lib/index.cjs"
}
},
8 changes: 6 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f66564f

Please sign in to comment.