@nx/react-native 23.0.0-beta.8 → 23.0.0-beta.9

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.
Files changed (37) hide show
  1. package/package.json +8 -8
  2. package/src/executors/build-android/build-android.impl.d.ts.map +1 -1
  3. package/src/executors/build-android/build-android.impl.js +2 -0
  4. package/src/executors/build-android/schema.json +1 -0
  5. package/src/executors/build-ios/build-ios.impl.d.ts.map +1 -1
  6. package/src/executors/build-ios/build-ios.impl.js +2 -0
  7. package/src/executors/build-ios/schema.json +1 -0
  8. package/src/executors/bundle/bundle.impl.d.ts.map +1 -1
  9. package/src/executors/bundle/bundle.impl.js +2 -0
  10. package/src/executors/bundle/schema.json +1 -0
  11. package/src/executors/pod-install/pod-install.impl.d.ts.map +1 -1
  12. package/src/executors/pod-install/pod-install.impl.js +2 -0
  13. package/src/executors/pod-install/schema.json +1 -0
  14. package/src/executors/run-android/run-android.impl.d.ts.map +1 -1
  15. package/src/executors/run-android/run-android.impl.js +2 -0
  16. package/src/executors/run-android/schema.json +1 -0
  17. package/src/executors/run-ios/run-ios.impl.d.ts.map +1 -1
  18. package/src/executors/run-ios/run-ios.impl.js +2 -0
  19. package/src/executors/run-ios/schema.json +1 -0
  20. package/src/executors/start/schema.json +1 -0
  21. package/src/executors/start/start.impl.d.ts.map +1 -1
  22. package/src/executors/start/start.impl.js +2 -0
  23. package/src/executors/storybook/storybook.impl.d.ts +0 -4
  24. package/src/executors/storybook/storybook.impl.d.ts.map +1 -1
  25. package/src/executors/storybook/storybook.impl.js +0 -4
  26. package/src/executors/upgrade/schema.json +1 -0
  27. package/src/executors/upgrade/upgrade.impl.d.ts.map +1 -1
  28. package/src/executors/upgrade/upgrade.impl.js +2 -0
  29. package/src/generators/application/lib/add-project.d.ts.map +1 -1
  30. package/src/generators/application/lib/add-project.js +4 -0
  31. package/src/generators/web-configuration/web-configuration.d.ts.map +1 -1
  32. package/src/generators/web-configuration/web-configuration.js +4 -0
  33. package/src/utils/deprecation.d.ts +3 -0
  34. package/src/utils/deprecation.d.ts.map +1 -0
  35. package/src/utils/deprecation.js +19 -0
  36. package/src/utils/versions.d.ts +1 -1
  37. package/src/utils/versions.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react-native",
3
- "version": "23.0.0-beta.8",
3
+ "version": "23.0.0-beta.9",
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": [
@@ -27,10 +27,10 @@
27
27
  "type": "commonjs",
28
28
  "types": "index.d.ts",
29
29
  "dependencies": {
30
- "@nx/devkit": "23.0.0-beta.8",
31
- "@nx/js": "23.0.0-beta.8",
32
- "@nx/eslint": "23.0.0-beta.8",
33
- "@nx/react": "23.0.0-beta.8",
30
+ "@nx/devkit": "23.0.0-beta.9",
31
+ "@nx/js": "23.0.0-beta.9",
32
+ "@nx/eslint": "23.0.0-beta.9",
33
+ "@nx/react": "23.0.0-beta.9",
34
34
  "ajv": "^8.12.0",
35
35
  "enhanced-resolve": "^5.8.3",
36
36
  "ignore": "^7.0.5",
@@ -44,11 +44,11 @@
44
44
  "metro-resolver": ">= 0.82.0"
45
45
  },
46
46
  "devDependencies": {
47
- "nx": "23.0.0-beta.8"
47
+ "nx": "23.0.0-beta.9"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-beta.8",
51
- "@nx/rollup": "23.0.0-beta.8"
50
+ "@nx/detox": "23.0.0-beta.9",
51
+ "@nx/rollup": "23.0.0-beta.9"
52
52
  },
53
53
  "executors": "./executors.json",
54
54
  "ng-update": {
@@ -1 +1 @@
1
- {"version":3,"file":"build-android.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/build-android/build-android.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAI1D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,oBAAoB,CACjD,OAAO,EAAE,8BAA8B,EACvC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CAOxC"}
1
+ {"version":3,"file":"build-android.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/build-android/build-android.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AAK1D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,oBAAoB,CACjD,OAAO,EAAE,8BAA8B,EACvC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CASxC"}
@@ -6,7 +6,9 @@ const path_1 = require("path");
6
6
  const child_process_1 = require("child_process");
7
7
  const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
8
8
  const get_cli_options_1 = require("../../utils/get-cli-options");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  async function* buildAndroidExecutor(options, context) {
11
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('build-android');
10
12
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
11
13
  (0, chmod_android_gradle_files_1.chmodAndroidGradlewFiles)((0, path_1.join)(context.root, projectRoot, 'android'));
12
14
  await runCliBuild(context.root, projectRoot, options);
@@ -7,6 +7,7 @@
7
7
  "title": "Release Build for Android",
8
8
  "description": "Build target options for Android.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/react-native:build-android` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "presets": [
11
12
  {
12
13
  "name": "Build Android for current device architecture",
@@ -1 +1 @@
1
- {"version":3,"file":"build-ios.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/build-ios/build-ios.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAGtD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,gBAAgB,CAC7C,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,yBAAyB,CAAC,CAS3C"}
1
+ {"version":3,"file":"build-ios.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/build-ios/build-ios.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAItD,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,gBAAgB,CAC7C,OAAO,EAAE,0BAA0B,EACnC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,yBAAyB,CAAC,CAW3C"}
@@ -6,7 +6,9 @@ const path_1 = require("path");
6
6
  const child_process_1 = require("child_process");
7
7
  const os_1 = require("os");
8
8
  const get_cli_options_1 = require("../../utils/get-cli-options");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  async function* buildIosExecutor(options, context) {
11
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('build-ios');
10
12
  if ((0, os_1.platform)() !== 'darwin') {
11
13
  throw new Error(`The run-ios build requires Mac to run`);
12
14
  }
@@ -5,6 +5,7 @@
5
5
  "title": "React Native Build iOS executor",
6
6
  "description": "Build iOS app.",
7
7
  "type": "object",
8
+ "x-deprecated": "The `@nx/react-native:build-ios` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
8
9
  "presets": [
9
10
  {
10
11
  "name": "Build iOS for a simulator",
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/bundle/bundle.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,MAAM,YAAY,CAAC;AAKpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,cAAc,CAC3C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAUzC"}
1
+ {"version":3,"file":"bundle.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/bundle/bundle.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,eAAe,EAAE,MAAM,YAAY,CAAC;AAKpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,cAAc,CAC3C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAYzC"}
@@ -6,7 +6,9 @@ const internal_1 = require("@nx/devkit/internal");
6
6
  const path_1 = require("path");
7
7
  const child_process_1 = require("child_process");
8
8
  const fs_1 = require("fs");
9
+ const deprecation_1 = require("../../utils/deprecation");
9
10
  async function* bundleExecutor(options, context) {
11
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('bundle');
10
12
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
11
13
  options.bundleOutput = (0, path_1.join)(context.root, options.bundleOutput);
12
14
  (0, fs_1.mkdirSync)((0, path_1.dirname)(options.bundleOutput));
@@ -7,6 +7,7 @@
7
7
  "title": "Offline JS Bundle for React Native",
8
8
  "description": "JS Bundle target options.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/react-native:bundle` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "presets": [
11
12
  {
12
13
  "name": "Bundle for a specific platform",
@@ -1 +1 @@
1
- {"version":3,"file":"pod-install.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/pod-install/pod-install.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,UAAU,CACvC,OAAO,EAAE,4BAA4B,EACrC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,2BAA2B,CAAC,CAO7C"}
1
+ {"version":3,"file":"pod-install.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/pod-install/pod-install.impl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAGxD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,UAAU,CACvC,OAAO,EAAE,4BAA4B,EACrC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,2BAA2B,CAAC,CAS7C"}
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = podInstall;
4
4
  const path_1 = require("path");
5
5
  const pod_install_task_1 = require("../../utils/pod-install-task");
6
+ const deprecation_1 = require("../../utils/deprecation");
6
7
  async function* podInstall(options, context) {
8
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('pod-install');
7
9
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
8
10
  const iosDirectory = (0, path_1.join)(context.root, projectRoot, 'ios');
9
11
  await (0, pod_install_task_1.runPodInstall)(iosDirectory, true, options)();
@@ -7,6 +7,7 @@
7
7
  "title": "Run Pod Install for React Native iOS Project",
8
8
  "description": "Run `pod install` for React Native iOS Project.",
9
9
  "type": "object",
10
+ "x-deprecated": "The `@nx/react-native:pod-install` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
10
11
  "properties": {
11
12
  "buildFolder": {
12
13
  "description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\". Relative to ios directory.",
@@ -1 +1 @@
1
- {"version":3,"file":"run-android.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-android/run-android.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAKxD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,4BAA4B,EACrC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,2BAA2B,CAAC,CAoB7C"}
1
+ {"version":3,"file":"run-android.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-android/run-android.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAMxD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAID,wBAA+B,kBAAkB,CAC/C,OAAO,EAAE,4BAA4B,EACrC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,2BAA2B,CAAC,CAsB7C"}
@@ -7,8 +7,10 @@ const child_process_1 = require("child_process");
7
7
  const start_impl_1 = require("../start/start.impl");
8
8
  const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
9
9
  const get_cli_options_1 = require("../../utils/get-cli-options");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  let childProcess;
11
12
  async function* runAndroidExecutor(options, context) {
13
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('run-android');
12
14
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
13
15
  (0, chmod_android_gradle_files_1.chmodAndroidGradlewFiles)((0, path_1.join)(context.root, projectRoot, 'android'));
14
16
  const tasks = [runCliRunAndroid(context.root, projectRoot, options)];
@@ -8,6 +8,7 @@
8
8
  "title": "Run Android application",
9
9
  "description": "Run Android target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/react-native:run-android` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "presets": [
12
13
  {
13
14
  "name": "Run Android for the current device architecture",
@@ -1 +1 @@
1
- {"version":3,"file":"run-ios.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-ios/run-ios.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoC,MAAM,YAAY,CAAC;AAS/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,cAAc,CAC3C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAsBzC"}
1
+ {"version":3,"file":"run-ios.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/run-ios/run-ios.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoC,MAAM,YAAY,CAAC;AAU/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,cAAc,CAC3C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,uBAAuB,CAAC,CAwBzC"}
@@ -7,7 +7,9 @@ const child_process_1 = require("child_process");
7
7
  const os_1 = require("os");
8
8
  const start_impl_1 = require("../start/start.impl");
9
9
  const get_cli_options_1 = require("../../utils/get-cli-options");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  async function* runIosExecutor(options, context) {
12
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('run-ios');
11
13
  if ((0, os_1.platform)() !== 'darwin') {
12
14
  throw new Error(`The run-ios build requires Mac to run`);
13
15
  }
@@ -8,6 +8,7 @@
8
8
  "title": "Run iOS application",
9
9
  "description": "Run iOS target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/react-native:run-ios` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "presets": [
12
13
  {
13
14
  "name": "Run iOS on a simulator",
@@ -8,6 +8,7 @@
8
8
  "title": "Packager Server for React Native",
9
9
  "description": "Packager Server target options.",
10
10
  "type": "object",
11
+ "x-deprecated": "The `@nx/react-native:start` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
11
12
  "properties": {
12
13
  "port": {
13
14
  "type": "number",
@@ -1 +1 @@
1
- {"version":3,"file":"start.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/start/start.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,aAAa,CAC1C,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CAUxC;AAMD,wBAAsB,WAAW,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAqBvB"}
1
+ {"version":3,"file":"start.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/start/start.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAErD,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAA+B,aAAa,CAC1C,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,sBAAsB,CAAC,CAYxC;AAMD,wBAAsB,WAAW,CAC/B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAqBvB"}
@@ -7,7 +7,9 @@ const internal_1 = require("@nx/devkit/internal");
7
7
  const child_process_1 = require("child_process");
8
8
  const path_1 = require("path");
9
9
  const is_packager_running_1 = require("./lib/is-packager-running");
10
+ const deprecation_1 = require("../../utils/deprecation");
10
11
  async function* startExecutor(options, context) {
12
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('start');
11
13
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
12
14
  await runCliStart(context.root, projectRoot, options);
13
15
  yield {
@@ -1,9 +1,5 @@
1
1
  import { ExecutorContext } from '@nx/devkit';
2
2
  import { ReactNativeStorybookOptions } from './schema';
3
- /**
4
- * TODO (@xiongemi): remove this function in v20.
5
- * @deprecated Going to use the default react storybook target. Use @nx/react:storybook executor instead.
6
- */
7
3
  export default function reactNativeStorybookExecutor(options: ReactNativeStorybookOptions, context: ExecutorContext): AsyncGenerator<{
8
4
  success: boolean;
9
5
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"storybook.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/storybook/storybook.impl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAwB,MAAM,YAAY,CAAC;AAInE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAOvD;;;GAGG;AACH,wBAA+B,4BAA4B,CACzD,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CA2CtC;AAED,wBAAgB,eAAe,CAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,2BAA2B,QAwBrC"}
1
+ {"version":3,"file":"storybook.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/storybook/storybook.impl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAwB,MAAM,YAAY,CAAC;AAInE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAOvD,wBAA+B,4BAA4B,CACzD,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CA2CtC;AAED,wBAAgB,eAAe,CAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,2BAA2B,QAwBrC"}
@@ -9,10 +9,6 @@ const devkit_1 = require("@nx/devkit");
9
9
  const pc = tslib_1.__importStar(require("picocolors"));
10
10
  const tinyglobby_1 = require("tinyglobby");
11
11
  const sync_deps_impl_1 = require("../sync-deps/sync-deps.impl");
12
- /**
13
- * TODO (@xiongemi): remove this function in v20.
14
- * @deprecated Going to use the default react storybook target. Use @nx/react:storybook executor instead.
15
- */
16
12
  async function* reactNativeStorybookExecutor(options, context) {
17
13
  const { syncDeps: isSyncDepsEnabled = true } = options;
18
14
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
@@ -6,6 +6,7 @@
6
6
  "title": "React Native Upgrade Executor",
7
7
  "description": "Upgrade React Native code for project.",
8
8
  "type": "object",
9
+ "x-deprecated": "The `@nx/react-native:upgrade` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` to migrate to the `@nx/react-native/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
9
10
  "properties": {},
10
11
  "required": []
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/upgrade/upgrade.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAA+B,eAAe,CAC5C,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,wBAAwB,CAAC,CAM1C;AAED,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,YAAY,CAAC,CAoCvB"}
1
+ {"version":3,"file":"upgrade.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/executors/upgrade/upgrade.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAQ,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAA+B,eAAe,CAC5C,OAAO,EAAE,qBAAqB,EAC9B,OAAO,EAAE,eAAe,GACvB,cAAc,CAAC,wBAAwB,CAAC,CAQ1C;AAED,wBAAgB,aAAa,CAC3B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,YAAY,CAAC,CAoCvB"}
@@ -5,11 +5,13 @@ exports.runCliUpgrade = runCliUpgrade;
5
5
  const internal_1 = require("@nx/devkit/internal");
6
6
  const path_1 = require("path");
7
7
  const child_process_1 = require("child_process");
8
+ const deprecation_1 = require("../../utils/deprecation");
8
9
  /**
9
10
  * This executor is equivalent to `npx react-native upgrade`.
10
11
  * https://github.com/react-native-community/cli/blob/main/packages/cli/src/commands/upgrade/upgrade.ts
11
12
  */
12
13
  async function* upgradeExecutor(options, context) {
14
+ (0, deprecation_1.warnReactNativeExecutorDeprecation)('upgrade');
13
15
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
14
16
  await runCliUpgrade(context.root, projectRoot);
15
17
  yield { success: true };
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAEL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAqD/D"}
1
+ {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/application/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,IAAI,EAEL,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAyD/D"}
@@ -2,11 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addProject = addProject;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const deprecation_1 = require("../../../utils/deprecation");
5
6
  function addProject(host, options) {
6
7
  const nxJson = (0, devkit_1.readNxJson)(host);
7
8
  const hasPlugin = nxJson.plugins?.some((p) => typeof p === 'string'
8
9
  ? p === '@nx/react-native/plugin'
9
10
  : p.plugin === '@nx/react-native/plugin');
11
+ if (!hasPlugin) {
12
+ (0, deprecation_1.warnReactNativeExecutorGenerating)();
13
+ }
10
14
  const project = {
11
15
  root: options.appProjectRoot,
12
16
  sourceRoot: `${options.appProjectRoot}/src`,
@@ -1 +1 @@
1
- {"version":3,"file":"web-configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/web-configuration/web-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAgBpB,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,8BA+DzC;AAiED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"web-configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/web-configuration/web-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,iBAAiB,EAKjB,IAAI,EACL,MAAM,YAAY,CAAC;AAgBpB,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,8BA+DzC;AAuED,eAAe,yBAAyB,CAAC"}
@@ -118,6 +118,10 @@ async function addBundlerConfiguration(tree, normalizedSchema) {
118
118
  tasks.push(ensureDependencies(tree, { uiFramework: 'react' }));
119
119
  }
120
120
  if (!(0, has_webpack_plugin_1.hasWebpackPlugin)(tree)) {
121
+ // Mirrors warnWebpackExecutorGenerating from @nx/webpack/src/utils/deprecation.
122
+ // Inlined to avoid a cross-package import where react-native does not
123
+ // declare a TypeScript project reference to webpack.
124
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/webpack:webpack` and `@nx/webpack:dev-server` executors. These executors will be removed in Nx v24. Run `nx g @nx/webpack:convert-to-inferred` next to migrate these targets to the `@nx/webpack/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
121
125
  const projectConfiguration = (0, devkit_1.readProjectConfiguration)(tree, normalizedSchema.project);
122
126
  projectConfiguration.targets = {
123
127
  ...projectConfiguration.targets,
@@ -0,0 +1,3 @@
1
+ export declare function warnReactNativeExecutorDeprecation(executorName: string): void;
2
+ export declare function warnReactNativeExecutorGenerating(): void;
3
+ //# sourceMappingURL=deprecation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecation.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/deprecation.ts"],"names":[],"mappings":"AAYA,wBAAgB,kCAAkC,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAE7E;AAED,wBAAgB,iCAAiC,IAAI,IAAI,CAIxD"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.warnReactNativeExecutorDeprecation = warnReactNativeExecutorDeprecation;
4
+ exports.warnReactNativeExecutorGenerating = warnReactNativeExecutorGenerating;
5
+ const devkit_1 = require("@nx/devkit");
6
+ // TODO(v24): Remove the @nx/react-native:build-android, :build-ios, :bundle,
7
+ // :pod-install, :run-android, :run-ios, :start, and :upgrade executors. The
8
+ // inferred plugin (@nx/react-native/plugin) and the convert-to-inferred
9
+ // generator stay supported. (`:storybook`, `:sync-deps`, and `:ensure-symlink`
10
+ // are Nx-specific glue with no inferred replacement and stay as-is.)
11
+ function buildMessage(executorName) {
12
+ return `The \`@nx/react-native:${executorName}\` executor is deprecated and will be removed in Nx v24. Run \`nx g @nx/react-native:convert-to-inferred\` to migrate to the \`@nx/react-native/plugin\` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.`;
13
+ }
14
+ function warnReactNativeExecutorDeprecation(executorName) {
15
+ devkit_1.logger.warn(buildMessage(executorName));
16
+ }
17
+ function warnReactNativeExecutorGenerating() {
18
+ devkit_1.logger.warn('Generating targets that use the deprecated `@nx/react-native:build-android`, `@nx/react-native:build-ios`, `@nx/react-native:bundle`, `@nx/react-native:pod-install`, `@nx/react-native:run-android`, `@nx/react-native:run-ios`, `@nx/react-native:start`, and `@nx/react-native:upgrade` executors. These executors will be removed in Nx v24. Run `nx g @nx/react-native:convert-to-inferred` next to migrate these targets to the `@nx/react-native/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.');
19
+ }
@@ -1,6 +1,6 @@
1
1
  export declare const nxVersion: any;
2
2
  export declare const reactNativeVersion = "~0.79.3";
3
- export declare const typesNodeVersion = "20.19.9";
3
+ export declare const typesNodeVersion = "^22.0.0";
4
4
  export declare const reactNativeCommunityCliVersion = "~18.0.0";
5
5
  export declare const reactNativeCommunityCliPlatformAndroidVersion = "~18.0.0";
6
6
  export declare const reactNativeCommunityCliPlatformIosVersion = "~18.0.0";
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.babelRuntimeVersion = exports.reactNativeSvgWebVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactTestRendererVersion = exports.testingLibraryReactNativeVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactDomVersion = exports.reactVersion = exports.metroVersion = exports.reactNativeWebVersion = exports.reactNativeMetroConfigVersion = exports.reactNativeBabelPresetVersion = exports.reactNativeCommunityCliPlatformIosVersion = exports.reactNativeCommunityCliPlatformAndroidVersion = exports.reactNativeCommunityCliVersion = exports.typesNodeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = require('../../package.json').version;
5
5
  exports.reactNativeVersion = '~0.79.3';
6
- exports.typesNodeVersion = '20.19.9';
6
+ exports.typesNodeVersion = '^22.0.0';
7
7
  exports.reactNativeCommunityCliVersion = '~18.0.0';
8
8
  exports.reactNativeCommunityCliPlatformAndroidVersion = '~18.0.0';
9
9
  exports.reactNativeCommunityCliPlatformIosVersion = '~18.0.0';