From d9a4d30b16b625860c4567c233f4f5ed870200be Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Thu, 10 Oct 2024 11:41:21 +0200 Subject: [PATCH] fix: cleanup yarn setup (#463) * fix: remove duplicate enableGlobalCache in .yarnrc.yml * fix: add @maplibre/maplibre-react-native dependencies to all packages * fix: use example also with workspace:* * fix: remove @maplibre/maplibre-react-native from react-native-app --- .yarnrc.yml | 1 - packages/examples/package.json | 1 + packages/expo-app/package.json | 2 +- packages/react-native-app/package.json | 2 +- yarn.lock | 7 ++++--- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index b90610417..5f9619a69 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,5 +1,4 @@ compressionLevel: mixed -enableGlobalCache: false nodeLinker: node-modules nmMode: hardlinks-local enableGlobalCache: true diff --git a/packages/examples/package.json b/packages/examples/package.json index ceeb29ecb..40caa82ed 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -12,6 +12,7 @@ ], "dependencies": { "@mapbox/geo-viewport": "^0.5.0", + "@maplibre/maplibre-react-native": "workspace:*", "@react-native-masked-view/masked-view": "^0.3.1", "@react-navigation/native": "^6.1.8", "@react-navigation/stack": "^6.3.25", diff --git a/packages/expo-app/package.json b/packages/expo-app/package.json index 50dfcc7da..79667f5f9 100644 --- a/packages/expo-app/package.json +++ b/packages/expo-app/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@mapbox/geo-viewport": "*", - "@maplibre-react-native/examples": "*", + "@maplibre-react-native/examples": "workspace:*", "@maplibre/maplibre-react-native": "workspace:*", "@react-native-masked-view/masked-view": "*", "@react-navigation/native": "*", diff --git a/packages/react-native-app/package.json b/packages/react-native-app/package.json index 419275eaf..e7507c18d 100644 --- a/packages/react-native-app/package.json +++ b/packages/react-native-app/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@mapbox/geo-viewport": "*", - "@maplibre-react-native/examples": "*", + "@maplibre-react-native/examples": "workspace:*", "@react-native-masked-view/masked-view": "*", "@react-navigation/native": "*", "@react-navigation/stack": "*", diff --git a/yarn.lock b/yarn.lock index f84199dfe..a11d58861 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2706,7 +2706,7 @@ __metadata: languageName: node linkType: hard -"@maplibre-react-native/examples@npm:*, @maplibre-react-native/examples@workspace:packages/examples": +"@maplibre-react-native/examples@workspace:*, @maplibre-react-native/examples@workspace:packages/examples": version: 0.0.0-use.local resolution: "@maplibre-react-native/examples@workspace:packages/examples" dependencies: @@ -2715,6 +2715,7 @@ __metadata: "@babel/preset-typescript": "npm:7.22.5" "@babel/runtime": "npm:^7.23.1" "@mapbox/geo-viewport": "npm:^0.5.0" + "@maplibre/maplibre-react-native": "workspace:*" "@react-native-masked-view/masked-view": "npm:^0.3.1" "@react-native/metro-config": "npm:^0.75.2" "@react-navigation/native": "npm:^6.1.8" @@ -2761,7 +2762,7 @@ __metadata: "@babel/preset-typescript": "npm:*" "@babel/runtime": "npm:*" "@mapbox/geo-viewport": "npm:*" - "@maplibre-react-native/examples": "npm:*" + "@maplibre-react-native/examples": "workspace:*" "@react-native-masked-view/masked-view": "npm:*" "@react-native/metro-config": "npm:*" "@react-navigation/native": "npm:*" @@ -8707,7 +8708,7 @@ __metadata: dependencies: "@babel/core": "npm:^7.20.0" "@mapbox/geo-viewport": "npm:*" - "@maplibre-react-native/examples": "npm:*" + "@maplibre-react-native/examples": "workspace:*" "@maplibre/maplibre-react-native": "workspace:*" "@react-native-masked-view/masked-view": "npm:*" "@react-navigation/native": "npm:*"