File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const { getDefaultConfig } = require ( '@react-native/metro-config' ) ;
3- const { getConfig } = require ( 'react-native-builder-bob/metro-config' ) ;
4- const pkg = require ( '../package.json' ) ;
5-
6- const root = path . resolve ( __dirname , '..' ) ;
3+ const { withMetroConfig } = require ( 'react-native-monorepo-config' ) ;
74
85/**
96 * Metro configuration
107 * https://facebook.github.io/metro/docs/configuration
118 *
129 * @type {import('@react-native/metro-config').MetroConfig }
1310 */
14- module . exports = getConfig ( getDefaultConfig ( __dirname ) , {
15- root,
16- pkg ,
17- project : __dirname ,
11+ module . exports = withMetroConfig ( getDefaultConfig ( __dirname ) , {
12+ root : path . resolve ( __dirname , '..' ) ,
13+ dirname : __dirname ,
14+ conditions : [ 'iterable-react-native-sdk-source' ] ,
1815} ) ;
Original file line number Diff line number Diff line change 3636 "@types/jest" : " ^29.5.13" ,
3737 "@types/react" : " ^19.2.0" ,
3838 "@types/react-test-renderer" : " ^19.1.0" ,
39- "react-native-builder-bob" : " ^0.30.2 " ,
39+ "react-native-builder-bob" : " ^0.43.0 " ,
4040 "react-native-dotenv" : " ^3.4.11" ,
41+ "react-native-monorepo-config" : " ^0.4.0" ,
4142 "react-test-renderer" : " 19.2.3"
4243 },
4344 "engines" : {
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ pre-commit:
99 run : npx tsc
1010 circular :
1111 glob : " src/**/*.{ts,tsx}"
12+ env :
13+ CI : " true"
1214 run : yarn check:circular
1315 # version-check:
1416 # glob: "package.json"
Original file line number Diff line number Diff line change 22 "name" : " @iterable/react-native-sdk" ,
33 "version" : " 3.0.1" ,
44 "description" : " Iterable SDK for React Native." ,
5- "source" : " ./src/index.tsx" ,
65 "main" : " ./lib/module/index.js" ,
76 "types" : " ./lib/typescript/src/index.d.ts" ,
87 "exports" : {
98 "." : {
9+ "iterable-react-native-sdk-source" : " ./src/index.tsx" ,
1010 "types" : " ./lib/typescript/src/index.d.ts" ,
1111 "default" : " ./lib/module/index.js"
1212 },
9999 "prettier-eslint" : " ^16.4.2" ,
100100 "react" : " 19.2.3" ,
101101 "react-native" : " 0.85.3" ,
102- "react-native-builder-bob" : " ^0.40.4 " ,
102+ "react-native-builder-bob" : " ^0.43.0 " ,
103103 "react-native-gesture-handler" : " ^2.30.0" ,
104104 "react-native-safe-area-context" : " ^5.6.0" ,
105105 "react-native-screens" : " >=4.19.0 <4.25.0" ,
Original file line number Diff line number Diff line change 44 "paths" : {
55 "@iterable/react-native-sdk" : [" ./src/index" ]
66 },
7+ "customConditions" : [" iterable-react-native-sdk-source" ],
78 "allowUnreachableCode" : false ,
89 "allowUnusedLabels" : false ,
910 "esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments