Skip to content

Commit 01a9586

Browse files
committed
feat: shared dependencies through packages/examples
1 parent c01abd5 commit 01a9586

File tree

5 files changed

+218
-138
lines changed

5 files changed

+218
-138
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@
100100
"react-test-renderer": "^18.2.0",
101101
"typescript": "^5.3.3"
102102
},
103+
"resolutions": {
104+
"typescript": "5.5.3"
105+
},
103106
"jest": {
104107
"preset": "react-native",
105108
"collectCoverageFrom": [

packages/examples/package.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
"src",
1111
"!**/__tests__"
1212
],
13-
"peerDependencies": {
14-
"@maplibre-react-native/examples": "*",
15-
"@maplibre/maplibre-react-native": "*"
16-
},
1713
"dependencies": {
1814
"@mapbox/geo-viewport": "^0.5.0",
1915
"@react-native-masked-view/masked-view": "^0.3.1",
@@ -39,5 +35,22 @@
3935
"react-native-screens": "3.31.1",
4036
"react-native-svg": "15.2.0",
4137
"react-native-vector-icons": "10.0.0"
38+
},
39+
"devDependencies": {
40+
"@babel/core": "^7.24.0",
41+
"@babel/plugin-transform-private-methods": "^7.25.4",
42+
"@babel/preset-typescript": "7.22.5",
43+
"@babel/runtime": "^7.23.1",
44+
"@react-native/metro-config": "^0.75.2",
45+
"@types/react": "^18.2.61",
46+
"@types/react-native": "^0.72.2",
47+
"babel-plugin-module-resolver": "^4.1.0",
48+
"detox": "^20.17.0",
49+
"glob-to-regexp": "^0.4.0",
50+
"jest": "^29.7.0",
51+
"jest-circus": "^29.7.0",
52+
"jetifier": "^2.0.0",
53+
"metro-react-native-babel-preset": "^0.77.0",
54+
"typescript": "^5.3.3"
4255
}
4356
}

packages/react-native-app/package.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,46 @@
1313
"purge": "yarn purge:js; yarn purge:android; yarn purge:ios"
1414
},
1515
"dependencies": {
16-
"@mapbox/geo-viewport": "^0.5.0",
16+
"@mapbox/geo-viewport": "*",
1717
"@maplibre-react-native/examples": "*",
18-
"@react-native-masked-view/masked-view": "^0.3.1",
19-
"@react-navigation/native": "^6.1.8",
20-
"@react-navigation/stack": "^6.3.25",
21-
"@turf/along": "^6.5.0",
22-
"@turf/bbox-polygon": "^6.5.0",
23-
"@turf/distance": "^6.5.0",
24-
"@turf/helpers": "^6.5.0",
25-
"@turf/length": "^6.5.0",
26-
"@turf/nearest-point-on-line": "6.5.0",
27-
"@types/geojson": "7946.0.14",
28-
"debounce": "^2.0.0",
29-
"fbjs": "^3.0.5",
30-
"moment": "^2.30.1",
31-
"prop-types": "^15.7.2",
32-
"react": "^18.3.1",
33-
"react-native": "0.75.2",
34-
"react-native-elements": "^3.4.3",
35-
"react-native-gesture-handler": "^2.15.0",
36-
"react-native-safe-area-context": "^4.10.9",
37-
"react-native-screens": "^3.34.0",
38-
"react-native-svg": "^15.0.3",
39-
"react-native-vector-icons": "10.0.0"
18+
"@react-native-masked-view/masked-view": "*",
19+
"@react-navigation/native": "*",
20+
"@react-navigation/stack": "*",
21+
"@turf/along": "*",
22+
"@turf/bbox-polygon": "*",
23+
"@turf/distance": "*",
24+
"@turf/helpers": "*",
25+
"@turf/length": "*",
26+
"@turf/nearest-point-on-line": "*",
27+
"@types/geojson": "*",
28+
"debounce": "*",
29+
"fbjs": "*",
30+
"moment": "*",
31+
"prop-types": "*",
32+
"react": "*",
33+
"react-native": "*",
34+
"react-native-elements": "*",
35+
"react-native-gesture-handler": "*",
36+
"react-native-safe-area-context": "*",
37+
"react-native-screens": "*",
38+
"react-native-svg": "*",
39+
"react-native-vector-icons": "*"
4040
},
4141
"devDependencies": {
42-
"@babel/core": "^7.24.0",
43-
"@babel/plugin-transform-private-methods": "^7.25.4",
44-
"@babel/preset-typescript": "7.22.5",
45-
"@babel/runtime": "^7.23.1",
46-
"@react-native/metro-config": "^0.75.2",
47-
"@types/react": "^18.2.61",
48-
"@types/react-native": "^0.72.2",
49-
"babel-plugin-module-resolver": "^4.1.0",
50-
"detox": "^20.17.0",
51-
"glob-to-regexp": "^0.4.0",
52-
"jest": "^29.7.0",
53-
"jest-circus": "^29.7.0",
54-
"jetifier": "^2.0.0",
55-
"metro-react-native-babel-preset": "^0.77.0",
56-
"typescript": "^5.3.3"
42+
"@babel/core": "*",
43+
"@babel/plugin-transform-private-methods": "*",
44+
"@babel/preset-typescript": "*",
45+
"@babel/runtime": "*",
46+
"@react-native/metro-config": "*",
47+
"@types/react": "*",
48+
"@types/react-native": "*",
49+
"babel-plugin-module-resolver": "*",
50+
"detox": "*",
51+
"glob-to-regexp": "*",
52+
"jest": "*",
53+
"jest-circus": "*",
54+
"jetifier": "*",
55+
"metro-react-native-babel-preset": "*",
56+
"typescript": "*"
5757
}
5858
}

plugin/src/__tests__/withMapLibre-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as fixtures from "./fixtures/cocoapodFiles";
21
import { applyCocoaPodsModifications } from "../withMapLibre";
2+
import * as fixtures from "./fixtures/cocoapodFiles";
33

44
describe("applyCocoaPodsModifications", () => {
55
it("adds blocks to a react native template podfile", () => {

0 commit comments

Comments
 (0)