Skip to content

Commit

Permalink
feat: shared dependencies through packages/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrauber committed Sep 13, 2024
1 parent 1064881 commit 3256dfa
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 138 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
"react-test-renderer": "^18.2.0",
"typescript": "^5.3.3"
},
"resolutions": {
"typescript": "5.5.3"
},
"jest": {
"preset": "react-native",
"collectCoverageFrom": [
Expand Down
21 changes: 17 additions & 4 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"src",
"!**/__tests__"
],
"peerDependencies": {
"@maplibre-react-native/examples": "*",
"@maplibre/maplibre-react-native": "*"
},
"dependencies": {
"@mapbox/geo-viewport": "^0.5.0",
"@react-native-masked-view/masked-view": "^0.3.1",
Expand All @@ -39,5 +35,22 @@
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-vector-icons": "10.0.0"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/plugin-transform-private-methods": "^7.25.4",
"@babel/preset-typescript": "7.22.5",
"@babel/runtime": "^7.23.1",
"@react-native/metro-config": "^0.75.2",
"@types/react": "^18.2.61",
"@types/react-native": "^0.72.2",
"babel-plugin-module-resolver": "^4.1.0",
"detox": "^20.17.0",
"glob-to-regexp": "^0.4.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jetifier": "^2.0.0",
"metro-react-native-babel-preset": "^0.77.0",
"typescript": "^5.3.3"
}
}
76 changes: 38 additions & 38 deletions packages/react-native-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,46 @@
"purge": "yarn purge:js; yarn purge:android; yarn purge:ios"
},
"dependencies": {
"@mapbox/geo-viewport": "^0.5.0",
"@mapbox/geo-viewport": "*",
"@maplibre-react-native/examples": "*",
"@react-native-masked-view/masked-view": "^0.3.1",
"@react-navigation/native": "^6.1.8",
"@react-navigation/stack": "^6.3.25",
"@turf/along": "^6.5.0",
"@turf/bbox-polygon": "^6.5.0",
"@turf/distance": "^6.5.0",
"@turf/helpers": "^6.5.0",
"@turf/length": "^6.5.0",
"@turf/nearest-point-on-line": "6.5.0",
"@types/geojson": "7946.0.14",
"debounce": "^2.0.0",
"fbjs": "^3.0.5",
"moment": "^2.30.1",
"prop-types": "^15.7.2",
"react": "^18.3.1",
"react-native": "0.75.2",
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "^2.15.0",
"react-native-safe-area-context": "^4.10.9",
"react-native-screens": "^3.34.0",
"react-native-svg": "^15.0.3",
"react-native-vector-icons": "10.0.0"
"@react-native-masked-view/masked-view": "*",
"@react-navigation/native": "*",
"@react-navigation/stack": "*",
"@turf/along": "*",
"@turf/bbox-polygon": "*",
"@turf/distance": "*",
"@turf/helpers": "*",
"@turf/length": "*",
"@turf/nearest-point-on-line": "*",
"@types/geojson": "*",
"debounce": "*",
"fbjs": "*",
"moment": "*",
"prop-types": "*",
"react": "*",
"react-native": "*",
"react-native-elements": "*",
"react-native-gesture-handler": "*",
"react-native-safe-area-context": "*",
"react-native-screens": "*",
"react-native-svg": "*",
"react-native-vector-icons": "*"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/plugin-transform-private-methods": "^7.25.4",
"@babel/preset-typescript": "7.22.5",
"@babel/runtime": "^7.23.1",
"@react-native/metro-config": "^0.75.2",
"@types/react": "^18.2.61",
"@types/react-native": "^0.72.2",
"babel-plugin-module-resolver": "^4.1.0",
"detox": "^20.17.0",
"glob-to-regexp": "^0.4.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jetifier": "^2.0.0",
"metro-react-native-babel-preset": "^0.77.0",
"typescript": "^5.3.3"
"@babel/core": "*",
"@babel/plugin-transform-private-methods": "*",
"@babel/preset-typescript": "*",
"@babel/runtime": "*",
"@react-native/metro-config": "*",
"@types/react": "*",
"@types/react-native": "*",
"babel-plugin-module-resolver": "*",
"detox": "*",
"glob-to-regexp": "*",
"jest": "*",
"jest-circus": "*",
"jetifier": "*",
"metro-react-native-babel-preset": "*",
"typescript": "*"
}
}
2 changes: 1 addition & 1 deletion plugin/src/__tests__/withMapLibre-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fixtures from "./fixtures/cocoapodFiles";
import { applyCocoaPodsModifications } from "../withMapLibre";
import * as fixtures from "./fixtures/cocoapodFiles";

describe("applyCocoaPodsModifications", () => {
it("adds blocks to a react native template podfile", () => {
Expand Down
Loading

0 comments on commit 3256dfa

Please sign in to comment.