Skip to content

Commit

Permalink
chore: update react-native and react-native-expo build system to remo…
Browse files Browse the repository at this point in the history
…ve polyfills (#863)
  • Loading branch information
jonathannorris authored May 29, 2024
1 parent 1ff7fb9 commit 97278b2
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 30 deletions.
4 changes: 2 additions & 2 deletions sdk/react-native-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"react-native-get-random-values": "^1.7.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-native": ">=0.64.0"
"react": ">=17.0.2",
"react-native": ">=0.68.0"
}
}
21 changes: 4 additions & 17 deletions sdk/react-native-expo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,14 @@
}
},
"build": {
"command": "echo Building Expo Target",
"dependsOn": ["build:expo"]
},
"build:expo": {
"executor": "@altack/nx-bundlefy:run",
"configurations": {},
"dependsOn": ["build:es5"],
"outputs": ["{options.outputFile}"]
},
"build:es5": {
"executor": "@nrwl/rollup:rollup",
"outputs": ["{options.outputPath}"],
"dependsOn": [
"shared-types:build:es5",
"shared-types:build",
"js:build:es5",
"js:build",
"react:build:es5",
"react:build",
"react:build:es5"
"react-native:build"
],
"executor": "@nrwl/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/sdk/react-native-expo",
"tsConfig": "sdk/react-native-expo/tsconfig.lib.json",
Expand All @@ -42,7 +29,7 @@
"format": ["esm", "cjs"],
"external": "all",
"rollupConfig": "@nx/react/plugins/bundle-rollup",
"compiler": "babel",
"compiler": "tsc",
"assets": [
{
"glob": "sdk/react-native-expo/README.md",
Expand Down
3 changes: 1 addition & 2 deletions sdk/react-native-expo/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"],
"jsx": "react-native"
"types": ["node"]
},
"exclude": [
"jest.config.ts",
Expand Down
4 changes: 2 additions & 2 deletions sdk/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"react-native-get-random-values": "^1.7.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-native": ">=0.64.0"
"react": ">=17.0.2",
"react-native": ">=0.68.0"
}
}
3 changes: 2 additions & 1 deletion sdk/react-native/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build": {
"executor": "@nrwl/rollup:rollup",
"outputs": ["{options.outputPath}"],
"dependsOn": ["shared-types:build", "js:build", "react:build"],
"options": {
"outputPath": "dist/sdk/react-native",
"tsConfig": "sdk/react-native/tsconfig.lib.json",
Expand All @@ -23,7 +24,7 @@
"format": ["esm", "cjs"],
"external": "all",
"rollupConfig": "@nx/react/plugins/bundle-rollup",
"compiler": "babel",
"compiler": "tsc",
"assets": [
{
"glob": "sdk/react-native/README.md",
Expand Down
3 changes: 1 addition & 2 deletions sdk/react-native/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"],
"jsx": "react-native"
"types": ["node"]
},
"exclude": [
"jest.config.ts",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4800,8 +4800,8 @@ __metadata:
react-native-device-info: ^8.7.0
react-native-get-random-values: ^1.7.2
peerDependencies:
react: ">=16.8.0"
react-native: ">=0.64.0"
react: ">=17.0.2"
react-native: ">=0.68.0"
languageName: unknown
linkType: soft

Expand All @@ -4815,8 +4815,8 @@ __metadata:
react-native-device-info: ^8.7.0
react-native-get-random-values: ^1.7.2
peerDependencies:
react: ">=16.8.0"
react-native: ">=0.64.0"
react: ">=17.0.2"
react-native: ">=0.68.0"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 97278b2

Please sign in to comment.