mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-21 22:57:17 +01:00
fix(env-utils): prevent react-native dependencies to be bundled in suite-desktop
- Move react-native related dependencies to optional peer dependencies so Nx can resolve affected packages but those dependencies are not bundled inside suite-desktop build nor needed in any non react-native package.
This commit is contained in:
@@ -25,14 +25,27 @@
|
||||
"prepublish": "yarn tsx ../../scripts/prepublish.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"expo-localization": "^14.1.1",
|
||||
"react-native": "0.71.8",
|
||||
"react-native-config": "^1.5.0",
|
||||
"ua-parser-js": "^1.0.35"
|
||||
},
|
||||
"devDependencies": {
|
||||
"rimraf": "^5.0.1",
|
||||
"tsx": "^3.12.7",
|
||||
"typescript": "4.9.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"expo-localization": "^14.1.1",
|
||||
"react-native": "0.71.8",
|
||||
"react-native-config": "^1.5.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"expo-localization": {
|
||||
"optional": true
|
||||
},
|
||||
"react-native": {
|
||||
"optional": true
|
||||
},
|
||||
"react-native-config": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
yarn.lock
14
yarn.lock
@@ -8201,13 +8201,21 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@trezor/env-utils@workspace:packages/env-utils"
|
||||
dependencies:
|
||||
expo-localization: ^14.1.1
|
||||
react-native: 0.71.8
|
||||
react-native-config: ^1.5.0
|
||||
rimraf: ^5.0.1
|
||||
tsx: ^3.12.7
|
||||
typescript: 4.9.5
|
||||
ua-parser-js: ^1.0.35
|
||||
peerDependencies:
|
||||
expo-localization: ^14.1.1
|
||||
react-native: 0.71.8
|
||||
react-native-config: ^1.5.0
|
||||
peerDependenciesMeta:
|
||||
expo-localization:
|
||||
optional: true
|
||||
react-native:
|
||||
optional: true
|
||||
react-native-config:
|
||||
optional: true
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
|
||||
Reference in New Issue
Block a user