@nx/react-native 16.9.0-beta.3 → 16.9.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/migrations.json CHANGED
@@ -101,6 +101,12 @@
101
101
  "version": "16.6.0-beta.0",
102
102
  "description": "Update metro.config.js to use the new metro config format",
103
103
  "implementation": "./src/migrations/update-16-6-0/update-metro-config"
104
+ },
105
+ "update-16-9-0-remove-types-react-native": {
106
+ "cli": "nx",
107
+ "version": "16.9.0-beta.1",
108
+ "description": "Remove @types/react-native from package.json",
109
+ "implementation": "./src/migrations/update-16-9-0/remove-types-react-native"
104
110
  }
105
111
  },
106
112
  "packageJsonUpdates": {
@@ -1426,6 +1432,47 @@
1426
1432
  "alwaysAddToPackageJson": false
1427
1433
  }
1428
1434
  }
1435
+ },
1436
+ "16.9.0": {
1437
+ "version": "16.9.0-beta.1",
1438
+ "packages": {
1439
+ "react-native": {
1440
+ "version": "0.72.4",
1441
+ "alwaysAddToPackageJson": false
1442
+ },
1443
+ "@react-native/metro-config": {
1444
+ "version": "^0.72.11",
1445
+ "alwaysAddToPackageJson": false
1446
+ },
1447
+ "@react-native-community/cli": {
1448
+ "version": "11.3.6",
1449
+ "alwaysAddToPackageJson": false
1450
+ },
1451
+ "@react-native-community/cli-platform-android": {
1452
+ "version": "11.3.6",
1453
+ "alwaysAddToPackageJson": false
1454
+ },
1455
+ "@react-native-community/cli-platform-ios": {
1456
+ "version": "11.3.6",
1457
+ "alwaysAddToPackageJson": false
1458
+ },
1459
+ "@testing-library/react-native": {
1460
+ "version": "~12.3.0",
1461
+ "alwaysAddToPackageJson": false
1462
+ },
1463
+ "@testing-library/jest-native": {
1464
+ "version": "~5.4.3",
1465
+ "alwaysAddToPackageJson": false
1466
+ },
1467
+ "@react-native-async-storage/async-storage": {
1468
+ "version": "~1.19.3",
1469
+ "alwaysAddToPackageJson": false
1470
+ },
1471
+ "react-native-safe-area-context": {
1472
+ "version": "~4.7.2",
1473
+ "alwaysAddToPackageJson": false
1474
+ }
1475
+ }
1429
1476
  }
1430
1477
  }
1431
1478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react-native",
3
- "version": "16.9.0-beta.3",
3
+ "version": "16.9.0-rc.0",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
6
6
  "keywords": [
@@ -25,14 +25,6 @@
25
25
  "main": "./index.js",
26
26
  "types": "index.d.ts",
27
27
  "dependencies": {
28
- "@nrwl/react-native": "16.9.0-beta.3",
29
- "@nx/detox": "16.9.0-beta.3",
30
- "@nx/devkit": "16.9.0-beta.3",
31
- "@nx/jest": "16.9.0-beta.3",
32
- "@nx/js": "16.9.0-beta.3",
33
- "@nx/linter": "16.9.0-beta.3",
34
- "@nx/react": "16.9.0-beta.3",
35
- "@nx/workspace": "16.9.0-beta.3",
36
28
  "chalk": "^4.1.0",
37
29
  "enhanced-resolve": "^5.8.3",
38
30
  "fs-extra": "^11.1.0",
@@ -43,7 +35,15 @@
43
35
  "minimatch": "3.0.5",
44
36
  "node-fetch": "^2.6.7",
45
37
  "tsconfig-paths": "^4.1.2",
46
- "tslib": "^2.3.0"
38
+ "tslib": "^2.3.0",
39
+ "@nx/detox": "16.9.0-rc.0",
40
+ "@nx/devkit": "16.9.0-rc.0",
41
+ "@nx/jest": "16.9.0-rc.0",
42
+ "@nx/js": "16.9.0-rc.0",
43
+ "@nx/linter": "16.9.0-rc.0",
44
+ "@nx/react": "16.9.0-rc.0",
45
+ "@nx/workspace": "16.9.0-rc.0",
46
+ "@nrwl/react-native": "*"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react-native": ">= 0.72.0 < 0.73.0"
@@ -57,6 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "type": "commonjs",
61
- "gitHead": "d5692528c089a75c76b21d2d1235d8cc5dbb1d26"
60
+ "type": "commonjs"
62
61
  }
@@ -47,7 +47,6 @@ function updateDependencies(host) {
47
47
  '@nx/react-native': versions_2.nxVersion,
48
48
  '@types/node': versions_2.typesNodeVersion,
49
49
  '@types/react': versions_2.typesReactVersion,
50
- '@types/react-native': versions_2.typesReactNativeVersion,
51
50
  '@react-native/metro-config': versions_2.reactNativeMetroConfigVersion,
52
51
  '@react-native-community/cli': versions_2.reactNativeCommunityCli,
53
52
  '@react-native-community/cli-platform-android': versions_2.reactNativeCommunityCliAndroid,
@@ -18,7 +18,6 @@ describe('init', () => {
18
18
  expect(packageJson.dependencies['react-native']).toBeDefined();
19
19
  expect(packageJson.devDependencies['@types/node']).toBeDefined();
20
20
  expect(packageJson.devDependencies['@types/react']).toBeDefined();
21
- expect(packageJson.devDependencies['@types/react-native']).toBeDefined();
22
21
  });
23
22
 
24
23
  it('should add .gitignore entries for React native files and directories', async () => {
@@ -14,24 +14,48 @@ async function update(tree) {
14
14
  'sync-deps',
15
15
  'pod-install',
16
16
  ];
17
- config.targets['run-ios'].dependsOn = [
18
- 'ensure-symlink',
19
- 'sync-deps',
20
- 'pod-install',
21
- ];
22
- config.targets['bundle-ios'].dependsOn = ['ensure-symlink'];
23
- config.targets['run-android'].dependsOn = ['ensure-symlink', 'sync-deps'];
24
- config.targets['build-android'].dependsOn = [
25
- 'ensure-symlink',
26
- 'sync-deps',
27
- ];
28
- config.targets['build-ios'].dependsOn = [
29
- 'ensure-symlink',
30
- 'sync-deps',
31
- 'pod-install',
32
- ];
33
- config.targets['pod-install'].dependsOn = ['ensure-symlink', 'sync-deps'];
34
- config.targets['bundle-android'].dependsOn = ['ensure-symlink'];
17
+ if (config.targets?.['run-ios']?.executor === '@nx/react-native:run-ios') {
18
+ config.targets['run-ios'].dependsOn = [
19
+ 'ensure-symlink',
20
+ 'sync-deps',
21
+ 'pod-install',
22
+ ];
23
+ }
24
+ if (config.targets?.['bundle-ios']?.executor === '@nx/react-native:bundle') {
25
+ config.targets['bundle-ios'].dependsOn = ['ensure-symlink'];
26
+ }
27
+ if (config.targets?.['run-android']?.executor ===
28
+ '@nx/react-native:run-android') {
29
+ config.targets['run-android'].dependsOn ??= [
30
+ 'ensure-symlink',
31
+ 'sync-deps',
32
+ ];
33
+ }
34
+ if (config.targets?.['build-android']?.executor ===
35
+ '@nx/react-native:build-android') {
36
+ config.targets['build-android'].dependsOn = [
37
+ 'ensure-symlink',
38
+ 'sync-deps',
39
+ ];
40
+ }
41
+ if (config.targets?.['build-ios']?.executor === '@nx/react-native:build-ios') {
42
+ config.targets['build-ios'].dependsOn ??= [
43
+ 'ensure-symlink',
44
+ 'sync-deps',
45
+ 'pod-install',
46
+ ];
47
+ }
48
+ if (config.targets?.['pod-instal']?.executor ===
49
+ '@nx/react-native:pod-install') {
50
+ config.targets['pod-install'].dependsOn ??= [
51
+ 'ensure-symlink',
52
+ 'sync-deps',
53
+ ];
54
+ }
55
+ if (config.targets?.['bundle-android']?.executor ===
56
+ '@nx/react-native:bundle') {
57
+ config.targets['bundle-android'].dependsOn ??= ['ensure-symlink'];
58
+ }
35
59
  (0, devkit_1.updateProjectConfiguration)(tree, name, config);
36
60
  }
37
61
  }
@@ -0,0 +1,7 @@
1
+ import { Tree } from '@nx/devkit';
2
+ /**
3
+ * Remove @types/react-native package since it is no longer required. It would be a part of react native package.
4
+ * @param tree
5
+ * @returns
6
+ */
7
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nx/devkit");
4
+ /**
5
+ * Remove @types/react-native package since it is no longer required. It would be a part of react native package.
6
+ * @param tree
7
+ * @returns
8
+ */
9
+ async function update(tree) {
10
+ const packageJson = (0, devkit_1.readJson)(tree, 'package.json');
11
+ if (!packageJson.devDependencies['@types/react-native'] ||
12
+ !packageJson.dependencies['react-native']) {
13
+ return;
14
+ }
15
+ (0, devkit_1.updateJson)(tree, 'package.json', (packageJson) => {
16
+ delete packageJson.devDependencies['@types/react-native'];
17
+ return packageJson;
18
+ });
19
+ }
20
+ exports.default = update;
@@ -1,21 +1,20 @@
1
1
  export declare const nxVersion: any;
2
- export declare const reactNativeVersion = "0.72.3";
3
- export declare const typesReactNativeVersion = "0.72.2";
2
+ export declare const reactNativeVersion = "0.72.4";
4
3
  export declare const typesNodeVersion = "18.14.4";
5
4
  export declare const metroVersion = "0.76.7";
6
- export declare const reactNativeMetroConfigVersion = "^0.72.9";
7
- export declare const reactNativeCommunityCli = "11.3.5";
8
- export declare const reactNativeCommunityCliIos = "11.3.5";
9
- export declare const reactNativeCommunityCliAndroid = "11.3.5";
5
+ export declare const reactNativeMetroConfigVersion = "^0.72.11";
6
+ export declare const reactNativeCommunityCli = "11.3.6";
7
+ export declare const reactNativeCommunityCliIos = "11.3.6";
8
+ export declare const reactNativeCommunityCliAndroid = "11.3.6";
10
9
  export declare const reactVersion = "18.2.0";
11
10
  export declare const reactDomVersion = "18.2.0";
12
11
  export declare const reactTestRendererVersion = "18.2.0";
13
12
  export declare const typesReactVersion = "18.0.28";
14
- export declare const testingLibraryReactNativeVersion = "12.1.2";
15
- export declare const testingLibraryJestNativeVersion = "5.4.2";
13
+ export declare const testingLibraryReactNativeVersion = "~12.3.0";
14
+ export declare const testingLibraryJestNativeVersion = "~5.4.3";
16
15
  export declare const jestReactNativeVersion = "18.0.0";
17
16
  export declare const reactNativeSvgTransformerVersion = "1.0.0";
18
17
  export declare const reactNativeSvgVersion = "13.9.0";
19
18
  export declare const babelRuntimeVersion = "7.22.6";
20
- export declare const reactNativeAsyncStorageVersion = "1.19.0";
21
- export declare const reactNativeSafeAreaContextVersion = "4.7.1";
19
+ export declare const reactNativeAsyncStorageVersion = "~1.19.3";
20
+ export declare const reactNativeSafeAreaContextVersion = "~4.7.2";
@@ -1,24 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reactNativeSafeAreaContextVersion = exports.reactNativeAsyncStorageVersion = exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.reactNativeMetroConfigVersion = exports.metroVersion = exports.typesNodeVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
3
+ exports.reactNativeSafeAreaContextVersion = exports.reactNativeAsyncStorageVersion = exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.reactNativeMetroConfigVersion = exports.metroVersion = exports.typesNodeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
- exports.reactNativeVersion = '0.72.3';
6
- exports.typesReactNativeVersion = '0.72.2';
5
+ exports.reactNativeVersion = '0.72.4';
7
6
  exports.typesNodeVersion = '18.14.4';
8
7
  exports.metroVersion = '0.76.7';
9
- exports.reactNativeMetroConfigVersion = '^0.72.9';
10
- exports.reactNativeCommunityCli = '11.3.5';
11
- exports.reactNativeCommunityCliIos = '11.3.5';
12
- exports.reactNativeCommunityCliAndroid = '11.3.5';
8
+ exports.reactNativeMetroConfigVersion = '^0.72.11';
9
+ exports.reactNativeCommunityCli = '11.3.6';
10
+ exports.reactNativeCommunityCliIos = '11.3.6';
11
+ exports.reactNativeCommunityCliAndroid = '11.3.6';
13
12
  exports.reactVersion = '18.2.0';
14
13
  exports.reactDomVersion = '18.2.0';
15
14
  exports.reactTestRendererVersion = '18.2.0';
16
15
  exports.typesReactVersion = '18.0.28';
17
- exports.testingLibraryReactNativeVersion = '12.1.2';
18
- exports.testingLibraryJestNativeVersion = '5.4.2';
16
+ exports.testingLibraryReactNativeVersion = '~12.3.0';
17
+ exports.testingLibraryJestNativeVersion = '~5.4.3';
19
18
  exports.jestReactNativeVersion = '18.0.0';
20
19
  exports.reactNativeSvgTransformerVersion = '1.0.0';
21
20
  exports.reactNativeSvgVersion = '13.9.0';
22
21
  exports.babelRuntimeVersion = '7.22.6';
23
- exports.reactNativeAsyncStorageVersion = '1.19.0';
24
- exports.reactNativeSafeAreaContextVersion = '4.7.1';
22
+ exports.reactNativeAsyncStorageVersion = '~1.19.3';
23
+ exports.reactNativeSafeAreaContextVersion = '~4.7.2';
package/CHANGELOG.md DELETED
@@ -1,8 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
-
7
-
8
- **Note:** Version bump only for package @nx/react-native