@nx/react-native 23.0.0-beta.2 → 23.0.0-beta.21

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 (66) hide show
  1. package/package.json +10 -10
  2. package/plugins/metro-resolver.js +2 -2
  3. package/plugins/plugin.d.ts.map +1 -1
  4. package/plugins/plugin.js +62 -36
  5. package/src/executors/build-android/build-android.impl.d.ts.map +1 -1
  6. package/src/executors/build-android/build-android.impl.js +2 -0
  7. package/src/executors/build-android/schema.json +1 -0
  8. package/src/executors/build-ios/build-ios.impl.d.ts.map +1 -1
  9. package/src/executors/build-ios/build-ios.impl.js +2 -0
  10. package/src/executors/build-ios/schema.json +1 -0
  11. package/src/executors/bundle/bundle.impl.d.ts.map +1 -1
  12. package/src/executors/bundle/bundle.impl.js +2 -0
  13. package/src/executors/bundle/schema.json +1 -0
  14. package/src/executors/pod-install/pod-install.impl.d.ts.map +1 -1
  15. package/src/executors/pod-install/pod-install.impl.js +2 -0
  16. package/src/executors/pod-install/schema.json +1 -0
  17. package/src/executors/run-android/run-android.impl.d.ts.map +1 -1
  18. package/src/executors/run-android/run-android.impl.js +2 -0
  19. package/src/executors/run-android/schema.json +1 -0
  20. package/src/executors/run-ios/run-ios.impl.d.ts.map +1 -1
  21. package/src/executors/run-ios/run-ios.impl.js +2 -0
  22. package/src/executors/run-ios/schema.json +1 -0
  23. package/src/executors/start/schema.json +1 -0
  24. package/src/executors/start/start.impl.d.ts.map +1 -1
  25. package/src/executors/start/start.impl.js +2 -0
  26. package/src/executors/storybook/storybook.impl.d.ts +0 -4
  27. package/src/executors/storybook/storybook.impl.d.ts.map +1 -1
  28. package/src/executors/storybook/storybook.impl.js +0 -4
  29. package/src/executors/upgrade/schema.json +1 -0
  30. package/src/executors/upgrade/upgrade.impl.d.ts.map +1 -1
  31. package/src/executors/upgrade/upgrade.impl.js +2 -0
  32. package/src/generators/application/application.d.ts.map +1 -1
  33. package/src/generators/application/application.js +7 -8
  34. package/src/generators/application/lib/add-project.d.ts.map +1 -1
  35. package/src/generators/application/lib/add-project.js +4 -0
  36. package/src/generators/application/lib/normalize-options.js +5 -5
  37. package/src/generators/component/component.d.ts.map +1 -1
  38. package/src/generators/component/component.js +3 -4
  39. package/src/generators/component/lib/add-import.js +2 -2
  40. package/src/generators/component/lib/normalize-options.d.ts +2 -2
  41. package/src/generators/component/lib/normalize-options.d.ts.map +1 -1
  42. package/src/generators/component/lib/normalize-options.js +5 -6
  43. package/src/generators/component/schema.d.ts +0 -5
  44. package/src/generators/component/schema.json +0 -5
  45. package/src/generators/convert-to-inferred/convert-to-inferred.js +4 -5
  46. package/src/generators/convert-to-inferred/lib/create-process-options.d.ts +1 -1
  47. package/src/generators/convert-to-inferred/lib/create-process-options.d.ts.map +1 -1
  48. package/src/generators/convert-to-inferred/lib/post-target-transformer.d.ts +1 -1
  49. package/src/generators/convert-to-inferred/lib/post-target-transformer.d.ts.map +1 -1
  50. package/src/generators/convert-to-inferred/lib/post-target-transformer.js +2 -2
  51. package/src/generators/convert-to-inferred/lib/process-start-options.d.ts +1 -1
  52. package/src/generators/convert-to-inferred/lib/process-start-options.d.ts.map +1 -1
  53. package/src/generators/init/init.d.ts.map +1 -1
  54. package/src/generators/init/init.js +2 -2
  55. package/src/generators/library/lib/normalize-options.js +5 -5
  56. package/src/generators/library/library.d.ts.map +1 -1
  57. package/src/generators/library/library.js +12 -16
  58. package/src/generators/web-configuration/web-configuration.d.ts.map +1 -1
  59. package/src/generators/web-configuration/web-configuration.js +4 -0
  60. package/src/utils/add-linting.js +9 -10
  61. package/src/utils/deprecation.d.ts +3 -0
  62. package/src/utils/deprecation.d.ts.map +1 -0
  63. package/src/utils/deprecation.js +19 -0
  64. package/src/utils/react-native-project-detection.js +2 -2
  65. package/src/utils/versions.d.ts +1 -1
  66. 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.2",
3
+ "version": "23.0.0-beta.21",
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,13 +27,13 @@
27
27
  "type": "commonjs",
28
28
  "types": "index.d.ts",
29
29
  "dependencies": {
30
- "@nx/devkit": "23.0.0-beta.2",
31
- "@nx/js": "23.0.0-beta.2",
32
- "@nx/eslint": "23.0.0-beta.2",
33
- "@nx/react": "23.0.0-beta.2",
34
- "ajv": "^8.12.0",
30
+ "@nx/devkit": "23.0.0-beta.21",
31
+ "@nx/js": "23.0.0-beta.21",
32
+ "@nx/eslint": "23.0.0-beta.21",
33
+ "@nx/react": "23.0.0-beta.21",
34
+ "ajv": "^8.0.0",
35
35
  "enhanced-resolve": "^5.8.3",
36
- "ignore": "^5.0.4",
36
+ "ignore": "^7.0.5",
37
37
  "picocolors": "^1.1.0",
38
38
  "tinyglobby": "^0.2.12",
39
39
  "tsconfig-paths": "^4.1.2",
@@ -44,11 +44,11 @@
44
44
  "metro-resolver": ">= 0.82.0"
45
45
  },
46
46
  "devDependencies": {
47
- "nx": "23.0.0-beta.2"
47
+ "nx": "23.0.0-beta.21"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-beta.2",
51
- "@nx/rollup": "23.0.0-beta.2"
50
+ "@nx/detox": "23.0.0-beta.21",
51
+ "@nx/rollup": "23.0.0-beta.21"
52
52
  },
53
53
  "executors": "./executors.json",
54
54
  "ng-update": {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getResolveRequest = getResolveRequest;
4
4
  const tslib_1 = require("tslib");
5
5
  const tsconfig_paths_1 = require("tsconfig-paths");
6
- const ts_config_1 = require("@nx/js/src/utils/typescript/ts-config");
6
+ const js_1 = require("@nx/js");
7
7
  const pc = tslib_1.__importStar(require("picocolors"));
8
8
  const enhanced_resolve_1 = require("enhanced-resolve");
9
9
  const path_1 = require("path");
@@ -115,7 +115,7 @@ function getMatcher(debug) {
115
115
  if (!matcher) {
116
116
  const result = (0, tsconfig_paths_1.loadConfig)();
117
117
  if (result.resultType === 'success') {
118
- absoluteBaseUrl = (0, ts_config_1.resolvePathsBaseUrl)(result.configFileAbsolutePath);
118
+ absoluteBaseUrl = (0, js_1.resolvePathsBaseUrl)(result.configFileAbsolutePath);
119
119
  paths = result.paths;
120
120
  if (debug) {
121
121
  console.log(pc.cyan(`[Nx] Located tsconfig at ${pc.bold(absoluteBaseUrl)}`));
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../packages/react-native/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAOd,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,wBAAwB;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAyBD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,wBAAwB,CAsB/D,CAAC;AAEF,eAAO,MAAM,aAAa,yCAAc,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../packages/react-native/plugins/plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAML,aAAa,EAMd,MAAM,YAAY,CAAC;AAOpB,MAAM,WAAW,wBAAwB;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAOD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,wBAAwB,CA6D/D,CAAC;AAEF,eAAO,MAAM,aAAa,yCAAc,CAAC"}
package/plugins/plugin.js CHANGED
@@ -1,69 +1,65 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createNodesV2 = exports.createNodes = void 0;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const devkit_1 = require("@nx/devkit");
5
6
  const path_1 = require("path");
6
7
  const js_1 = require("@nx/js");
7
- const get_named_inputs_1 = require("@nx/devkit/src/utils/get-named-inputs");
8
8
  const fs_1 = require("fs");
9
- const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
10
9
  const cache_directory_1 = require("nx/src/utils/cache-directory");
11
- const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
12
10
  const devkit_internals_1 = require("nx/src/devkit-internals");
13
- function readTargetsCache(cachePath) {
14
- return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
15
- }
16
- function writeTargetsToCache(cachePath, targetsCache) {
17
- const oldCache = readTargetsCache(cachePath);
18
- (0, devkit_1.writeJsonFile)(cachePath, {
19
- ...oldCache,
20
- targetsCache,
21
- });
22
- }
23
11
  exports.createNodes = [
24
12
  '**/app.{json,config.js,config.ts}',
25
13
  async (configFiles, options, context) => {
26
14
  const optionsHash = (0, devkit_internals_1.hashObject)(options);
27
15
  const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `react-native-${optionsHash}.hash`);
28
- const targetsCache = readTargetsCache(cachePath);
16
+ const targetsCache = new internal_1.PluginCache(cachePath);
17
+ const lockFileName = (0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
18
+ const normalizedOptions = normalizeOptions(options);
29
19
  try {
30
- return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache), configFiles, options, context);
20
+ const { entries, preErrors } = await filterReactNativeConfigs(configFiles, context);
21
+ const projectHashes = await (0, internal_1.calculateHashesForCreateNodes)(entries.map((e) => e.projectRoot), normalizedOptions, context, entries.map(() => [lockFileName]));
22
+ let results = [];
23
+ let nodeErrors = [];
24
+ try {
25
+ results = await (0, devkit_1.createNodesFromFiles)((configFile, _, ctx, idx) => createNodesInternal(configFile, normalizedOptions, ctx, targetsCache, projectHashes[idx]), entries.map((e) => e.configFile), options, context);
26
+ }
27
+ catch (e) {
28
+ if (e instanceof devkit_1.AggregateCreateNodesError) {
29
+ results = e.partialResults ?? [];
30
+ nodeErrors = e.errors;
31
+ }
32
+ else {
33
+ throw e;
34
+ }
35
+ }
36
+ const allErrors = [...preErrors, ...nodeErrors];
37
+ if (allErrors.length > 0) {
38
+ throw new devkit_1.AggregateCreateNodesError(allErrors, results);
39
+ }
40
+ return results;
31
41
  }
32
42
  finally {
33
- writeTargetsToCache(cachePath, targetsCache);
43
+ targetsCache.writeToDisk();
34
44
  }
35
45
  },
36
46
  ];
37
47
  exports.createNodesV2 = exports.createNodes;
38
- async function createNodesInternal(configFile, options, context, targetsCache) {
39
- options = normalizeOptions(options);
48
+ async function createNodesInternal(configFile, options, context, targetsCache, hash) {
40
49
  const projectRoot = (0, path_1.dirname)(configFile);
41
- // Do not create a project if package.json or project.json or metro.config.js isn't there.
42
- const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
43
- if (!siblingFiles.includes('package.json') ||
44
- !siblingFiles.includes('metro.config.js')) {
45
- return {};
46
- }
47
- // Check if it's an Expo project
48
- const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, projectRoot, 'package.json'));
49
- const appConfig = await getAppConfig(configFile, context);
50
- if (appConfig.expo ||
51
- packageJson.dependencies?.['expo'] ||
52
- packageJson.devDependencies?.['expo']) {
53
- return {};
50
+ if (!targetsCache.has(hash)) {
51
+ targetsCache.set(hash, buildReactNativeTargets(projectRoot, options, context));
54
52
  }
55
- const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
56
- targetsCache[hash] ??= buildReactNativeTargets(projectRoot, options, context);
57
53
  return {
58
54
  projects: {
59
55
  [projectRoot]: {
60
- targets: targetsCache[hash],
56
+ targets: targetsCache.get(hash),
61
57
  },
62
58
  },
63
59
  };
64
60
  }
65
61
  function buildReactNativeTargets(projectRoot, options, context) {
66
- const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
62
+ const namedInputs = (0, internal_1.getNamedInputs)(projectRoot, context);
67
63
  const targets = {
68
64
  [options.startTargetName]: {
69
65
  command: `react-native start`,
@@ -119,7 +115,37 @@ function buildReactNativeTargets(projectRoot, options, context) {
119
115
  }
120
116
  function getAppConfig(configFilePath, context) {
121
117
  const resolvedPath = (0, path_1.join)(context.workspaceRoot, configFilePath);
122
- return (0, config_utils_1.loadConfigFile)(resolvedPath);
118
+ return (0, internal_1.loadConfigFile)(resolvedPath);
119
+ }
120
+ async function filterReactNativeConfigs(configFiles, context) {
121
+ const preErrors = [];
122
+ const candidates = await Promise.all(configFiles.map(async (configFile) => {
123
+ try {
124
+ const projectRoot = (0, path_1.dirname)(configFile);
125
+ const siblingFiles = (0, fs_1.readdirSync)((0, path_1.join)(context.workspaceRoot, projectRoot));
126
+ if (!siblingFiles.includes('package.json') ||
127
+ !siblingFiles.includes('metro.config.js')) {
128
+ return null;
129
+ }
130
+ // Skip Expo projects; the @nx/expo plugin handles them.
131
+ const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, projectRoot, 'package.json'));
132
+ const appConfig = await getAppConfig(configFile, context);
133
+ if (appConfig.expo ||
134
+ packageJson.dependencies?.['expo'] ||
135
+ packageJson.devDependencies?.['expo']) {
136
+ return null;
137
+ }
138
+ return { configFile, projectRoot };
139
+ }
140
+ catch (e) {
141
+ preErrors.push([configFile, e]);
142
+ return null;
143
+ }
144
+ }));
145
+ return {
146
+ entries: candidates.filter((c) => c !== null),
147
+ preErrors,
148
+ };
123
149
  }
124
150
  function getInputs(namedInputs) {
125
151
  return [
@@ -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":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAKjB,IAAI,EACL,MAAM,YAAY,CAAC;AAepB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAWlC,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,uCAAuC,CAC3D,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAkG5B;AA4CD,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/application/application.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAKjB,IAAI,EACL,MAAM,YAAY,CAAC;AAcpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAUlC,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,uCAAuC,CAC3D,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAkG5B;AA4CD,eAAe,+BAA+B,CAAC"}
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reactNativeApplicationGenerator = reactNativeApplicationGenerator;
4
4
  exports.reactNativeApplicationGeneratorInternal = reactNativeApplicationGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
7
8
  const js_1 = require("@nx/js");
8
- const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
9
9
  const add_linting_1 = require("../../utils/add-linting");
10
10
  const add_jest_1 = require("../../utils/add-jest");
11
11
  const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
@@ -18,8 +18,7 @@ const create_application_files_1 = require("./lib/create-application-files");
18
18
  const add_e2e_1 = require("./lib/add-e2e");
19
19
  const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
20
20
  const sync_deps_impl_1 = require("../../executors/sync-deps/sync-deps.impl");
21
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
22
- const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
21
+ const internal_2 = require("@nx/js/internal");
23
22
  async function reactNativeApplicationGenerator(host, schema) {
24
23
  return await reactNativeApplicationGeneratorInternal(host, {
25
24
  addPlugin: false,
@@ -29,7 +28,7 @@ async function reactNativeApplicationGenerator(host, schema) {
29
28
  }
30
29
  async function reactNativeApplicationGeneratorInternal(host, schema) {
31
30
  const tasks = [];
32
- const addTsPlugin = (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin, schema.useTsSolution);
31
+ const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(host, schema.addPlugin, schema.useTsSolution);
33
32
  const jsInitTask = await (0, js_1.initGenerator)(host, {
34
33
  ...schema,
35
34
  skipFormat: true,
@@ -49,7 +48,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
49
48
  // If we are using the new TS solution
50
49
  // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
51
50
  if (options.isTsSolutionSetup) {
52
- await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
51
+ await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.appProjectRoot);
53
52
  }
54
53
  const lintTask = await (0, add_linting_1.addLinting)(host, {
55
54
  ...options,
@@ -73,7 +72,7 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
73
72
  tasks.push(chmodTaskGradlewTask);
74
73
  tasks.push(addSyncDepsTask(host, options));
75
74
  tasks.push(addPodInstallTask(host, options));
76
- (0, ts_solution_setup_1.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.app.json', {
75
+ (0, internal_2.updateTsconfigFiles)(host, options.appProjectRoot, 'tsconfig.app.json', {
77
76
  jsx: 'react-jsx',
78
77
  module: 'esnext',
79
78
  moduleResolution: 'bundler',
@@ -82,12 +81,12 @@ async function reactNativeApplicationGeneratorInternal(host, schema) {
82
81
  }, options.linter === 'eslint'
83
82
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
84
83
  : undefined);
85
- (0, sort_fields_1.sortPackageJsonFields)(host, options.appProjectRoot);
84
+ (0, internal_2.sortPackageJsonFields)(host, options.appProjectRoot);
86
85
  if (!options.skipFormat) {
87
86
  await (0, devkit_1.formatFiles)(host);
88
87
  }
89
88
  tasks.push(() => {
90
- (0, log_show_project_command_1.logShowProjectCommand)(options.projectName);
89
+ (0, internal_1.logShowProjectCommand)(options.projectName);
91
90
  });
92
91
  return (0, devkit_1.runTasksInSerial)(...tasks);
93
92
  }
@@ -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`,
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
7
7
  async function normalizeOptions(host, options) {
8
- await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
9
- const { projectName, names: projectNames, projectRoot: appProjectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
8
+ await (0, internal_1.ensureRootProjectName)(options, 'application');
9
+ const { projectName, names: projectNames, projectRoot: appProjectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
10
10
  name: options.name,
11
11
  projectType: 'application',
12
12
  directory: options.directory,
@@ -19,7 +19,7 @@ async function normalizeOptions(host, options) {
19
19
  const iosProjectRoot = (0, devkit_1.joinPathFragments)(appProjectRoot, 'ios');
20
20
  const androidProjectRoot = (0, devkit_1.joinPathFragments)(appProjectRoot, 'android');
21
21
  const rootProject = appProjectRoot === '.';
22
- const isTsSolutionSetup = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
22
+ const isTsSolutionSetup = (0, internal_2.isUsingTsSolutionSetup)(host);
23
23
  const appProjectName = !isTsSolutionSetup || options.name ? projectName : importPath;
24
24
  const e2eProjectName = rootProject ? 'e2e' : `${appProjectName}-e2e`;
25
25
  const e2eProjectRoot = rootProject ? 'e2e' : `${appProjectRoot}-e2e`;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAML,IAAI,EACL,MAAM,YAAY,CAAC;AAOpB,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,iBAUf;AAwED,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/component/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAML,IAAI,EACL,MAAM,YAAY,CAAC;AAKpB,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,iBAUf;AAwED,eAAe,6BAA6B,CAAC"}
@@ -4,9 +4,8 @@ exports.reactNativeComponentGenerator = reactNativeComponentGenerator;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const normalize_options_1 = require("./lib/normalize-options");
6
6
  const add_import_1 = require("./lib/add-import");
7
- const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
7
+ const internal_1 = require("@nx/js/internal");
8
8
  const path_1 = require("path");
9
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
10
9
  async function reactNativeComponentGenerator(host, schema) {
11
10
  const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
12
11
  createComponentFiles(host, options);
@@ -27,11 +26,11 @@ function createComponentFiles(host, options) {
27
26
  let tsModule;
28
27
  function addExportsToBarrel(host, options) {
29
28
  if (!tsModule) {
30
- tsModule = (0, ensure_typescript_1.ensureTypescript)();
29
+ tsModule = (0, internal_1.ensureTypescript)();
31
30
  }
32
31
  const workspace = (0, devkit_1.getProjects)(host);
33
32
  const proj = workspace.get(options.projectName);
34
- const isApp = (0, ts_solution_setup_1.getProjectType)(host, proj.root, proj.projectType) === 'application';
33
+ const isApp = (0, internal_1.getProjectType)(host, proj.root, proj.projectType) === 'application';
35
34
  if (options.export && !isApp) {
36
35
  const indexFilePath = (0, devkit_1.joinPathFragments)(...(options.projectSourceRoot
37
36
  ? [options.projectSourceRoot]
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addImport = addImport;
4
4
  const js_1 = require("@nx/js");
5
5
  const devkit_1 = require("@nx/devkit");
6
- const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
6
+ const internal_1 = require("@nx/js/internal");
7
7
  let tsModule;
8
8
  function addImport(source, statement) {
9
9
  if (!tsModule) {
10
- tsModule = (0, ensure_typescript_1.ensureTypescript)();
10
+ tsModule = (0, internal_1.ensureTypescript)();
11
11
  }
12
12
  const allImports = (0, js_1.findNodes)(source, tsModule.SyntaxKind.ImportDeclaration);
13
13
  if (allImports.length > 0) {
@@ -1,7 +1,7 @@
1
1
  import { Tree } from '@nx/devkit';
2
- import { type FileExtensionType } from '@nx/devkit/src/generators/artifact-name-and-directory-utils';
2
+ import { type FileExtensionType } from '@nx/devkit/internal';
3
3
  import { Schema } from '../schema';
4
- export interface NormalizedSchema extends Omit<Schema, 'js'> {
4
+ export interface NormalizedSchema extends Schema {
5
5
  directory: string;
6
6
  projectSourceRoot: string;
7
7
  fileName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CA+C3B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/component/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,CAAC,CA8C3B"}
@@ -2,21 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
7
7
  async function normalizeOptions(host, options) {
8
- const { artifactName: name, directory, fileName, filePath, fileExtension, fileExtensionType, project: projectName, } = await (0, artifact_name_and_directory_utils_1.determineArtifactNameAndDirectoryOptions)(host, {
8
+ const { artifactName: name, directory, fileName, filePath, fileExtension, fileExtensionType, project: projectName, } = await (0, internal_1.determineArtifactNameAndDirectoryOptions)(host, {
9
9
  path: options.path,
10
10
  name: options.name,
11
11
  allowedFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
12
- fileExtension: options.js ? 'js' : 'tsx',
13
- js: options.js,
12
+ fileExtension: 'tsx',
14
13
  });
15
14
  const project = (0, devkit_1.getProjects)(host).get(projectName);
16
15
  const { className } = (0, devkit_1.names)(name);
17
16
  const { root, sourceRoot: projectSourceRoot, projectType } = project;
18
17
  if (options.export &&
19
- (0, ts_solution_setup_1.getProjectType)(host, root, projectType) === 'application') {
18
+ (0, internal_2.getProjectType)(host, root, projectType) === 'application') {
20
19
  devkit_1.logger.warn(`The "--export" option should not be used with applications and will do nothing.`);
21
20
  }
22
21
  options.classComponent = options.classComponent ?? false;
@@ -8,9 +8,4 @@ export interface Schema {
8
8
  export?: boolean;
9
9
  classComponent?: boolean;
10
10
  skipFormat?: boolean;
11
-
12
- /**
13
- * @deprecated Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21.
14
- */
15
- js?: boolean;
16
11
  }
@@ -37,11 +37,6 @@
37
37
  "type": "string",
38
38
  "description": "The component symbol name. Defaults to the last segment of the file path."
39
39
  },
40
- "js": {
41
- "type": "boolean",
42
- "description": "Generate JavaScript files rather than TypeScript files.",
43
- "x-deprecated": "Provide the full file path including the file extension in the `path` option. This option will be removed in Nx v21."
44
- },
45
40
  "skipTests": {
46
41
  "type": "boolean",
47
42
  "description": "When true, does not create `spec.ts` test files for the new component.",
@@ -2,16 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.convertToInferred = convertToInferred;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const aggregate_log_util_1 = require("@nx/devkit/src/generators/plugin-migrations/aggregate-log-util");
6
- const executor_to_plugin_migrator_1 = require("@nx/devkit/src/generators/plugin-migrations/executor-to-plugin-migrator");
5
+ const internal_1 = require("@nx/devkit/internal");
7
6
  const plugin_1 = require("../../../plugins/plugin");
8
7
  const post_target_transformer_1 = require("./lib/post-target-transformer");
9
8
  const process_start_options_1 = require("./lib/process-start-options");
10
9
  const create_process_options_1 = require("./lib/create-process-options");
11
10
  async function convertToInferred(tree, options) {
12
11
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
13
- const migrationLogs = new aggregate_log_util_1.AggregatedLog();
14
- const migratedProjects = await (0, executor_to_plugin_migrator_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/react-native/plugin', plugin_1.createNodesV2, {
12
+ const migrationLogs = new internal_1.AggregatedLog();
13
+ const migratedProjects = await (0, internal_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/react-native/plugin', plugin_1.createNodesV2, {
15
14
  buildAndroidTargetName: 'build-android',
16
15
  buildIosTargetName: 'build-ios',
17
16
  bundleTargetName: 'bundle',
@@ -80,7 +79,7 @@ async function convertToInferred(tree, options) {
80
79
  },
81
80
  ], options.project);
82
81
  if (migratedProjects.size === 0) {
83
- throw new executor_to_plugin_migrator_1.NoTargetsToMigrateError();
82
+ throw new internal_1.NoTargetsToMigrateError();
84
83
  }
85
84
  if (!options.skipFormat) {
86
85
  await (0, devkit_1.formatFiles)(tree);
@@ -1,4 +1,4 @@
1
- import type { AggregatedLog } from '@nx/devkit/src/generators/plugin-migrations/aggregate-log-util';
1
+ import type { AggregatedLog } from '@nx/devkit/internal';
2
2
  /**
3
3
  * Logic copied from `packages/react-native/src/utils/get-cli-options.ts`,
4
4
  * which was used by most executors to map their options to CLI options.
@@ -1 +1 @@
1
- {"version":3,"file":"create-process-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/create-process-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gEAAgE,CAAC;AAEpG;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,qBAAqB,EAAE,MAAM,EAAE,IAEvB,aAAa,MAAM,EAAE,SAAS,GAAG,EAAE,eAAe,aAAa,UA8BxE"}
1
+ {"version":3,"file":"create-process-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/create-process-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,qBAAqB,EAAE,MAAM,EAAE,IAEvB,aAAa,MAAM,EAAE,SAAS,GAAG,EAAE,eAAe,aAAa,UA8BxE"}
@@ -1,5 +1,5 @@
1
1
  import type { TargetConfiguration, Tree } from '@nx/devkit';
2
- import type { AggregatedLog } from '@nx/devkit/src/generators/plugin-migrations/aggregate-log-util';
2
+ import { type AggregatedLog } from '@nx/devkit/internal';
3
3
  export declare function postTargetTransformer(migrationLogs: AggregatedLog, processOptions?: (projectName: string, options: any, migrationLogs: AggregatedLog) => void): (target: TargetConfiguration, _tree: Tree, projectDetails: {
4
4
  projectName: string;
5
5
  root: string;
@@ -1 +1 @@
1
- {"version":3,"file":"post-target-transformer.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/post-target-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gEAAgE,CAAC;AAGpG,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,CACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,GAAG,EACZ,aAAa,EAAE,aAAa,KACzB,IAAI,IAGP,QAAQ,mBAAmB,EAC3B,OAAO,IAAI,EACX,gBAAgB;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACrD,6BAA6B,mBAAmB,8BAwCnD"}
1
+ {"version":3,"file":"post-target-transformer.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/post-target-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE/E,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,aAAa,EAC5B,cAAc,CAAC,EAAE,CACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,GAAG,EACZ,aAAa,EAAE,aAAa,KACzB,IAAI,IAGP,QAAQ,mBAAmB,EAC3B,OAAO,IAAI,EACX,gBAAgB;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACrD,6BAA6B,mBAAmB,8BAwCnD"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.postTargetTransformer = postTargetTransformer;
4
- const plugin_migration_utils_1 = require("@nx/devkit/src/generators/plugin-migrations/plugin-migration-utils");
4
+ const internal_1 = require("@nx/devkit/internal");
5
5
  function postTargetTransformer(migrationLogs, processOptions) {
6
6
  return (target, _tree, projectDetails, inferredTargetConfiguration) => {
7
7
  if (target.options && processOptions) {
@@ -24,7 +24,7 @@ function postTargetTransformer(migrationLogs, processOptions) {
24
24
  }
25
25
  }
26
26
  if (target.outputs) {
27
- (0, plugin_migration_utils_1.processTargetOutputs)(target, [], inferredTargetConfiguration, {
27
+ (0, internal_1.processTargetOutputs)(target, [], inferredTargetConfiguration, {
28
28
  projectName: projectDetails.projectName,
29
29
  projectRoot: projectDetails.root,
30
30
  });
@@ -1,3 +1,3 @@
1
- import type { AggregatedLog } from '@nx/devkit/src/generators/plugin-migrations/aggregate-log-util';
1
+ import type { AggregatedLog } from '@nx/devkit/internal';
2
2
  export declare function processStartOptions(_projectName: string, options: any, _migrationLogs: AggregatedLog): void;
3
3
  //# sourceMappingURL=process-start-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-start-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/process-start-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gEAAgE,CAAC;AAEpG,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,aAAa,QAkB9B"}
1
+ {"version":3,"file":"process-start-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react-native/src/generators/convert-to-inferred/lib/process-start-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,aAAa,QAkB9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAWpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKlE;AAED,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,8BA2Ef;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qBAgB5D;AAMD,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/init/init.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EAIjB,IAAI,EACL,MAAM,YAAY,CAAC;AAUpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAKlE;AAED,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,8BA2Ef;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qBAgB5D;AAMD,eAAe,wBAAwB,CAAC"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reactNativeInitGenerator = reactNativeInitGenerator;
4
4
  exports.reactNativeInitGeneratorInternal = reactNativeInitGeneratorInternal;
5
5
  exports.updateDependencies = updateDependencies;
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
7
- const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
8
8
  const plugin_1 = require("../../../plugins/plugin");
9
9
  const versions_1 = require("../../utils/versions");
10
10
  const add_git_ignore_entry_1 = require("./lib/add-git-ignore-entry");
@@ -21,7 +21,7 @@ async function reactNativeInitGeneratorInternal(host, schema) {
21
21
  nxJson.useInferencePlugins !== false;
22
22
  schema.addPlugin ??= addPluginDefault;
23
23
  if (schema.addPlugin) {
24
- await (0, add_plugin_1.addPlugin)(host, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react-native/plugin', plugin_1.createNodesV2, {
24
+ await (0, internal_1.addPlugin)(host, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react-native/plugin', plugin_1.createNodesV2, {
25
25
  startTargetName: ['start', 'react-native:start', 'react-native-start'],
26
26
  upgradeTargetName: [
27
27
  'update',
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = normalizeOptions;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
6
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
5
+ const internal_1 = require("@nx/devkit/internal");
6
+ const internal_2 = require("@nx/js/internal");
7
7
  async function normalizeOptions(host, options) {
8
- await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'library');
9
- const { projectName, names: projectNames, projectRoot, importPath, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
8
+ await (0, internal_1.ensureRootProjectName)(options, 'library');
9
+ const { projectName, names: projectNames, projectRoot, importPath, } = await (0, internal_1.determineProjectNameAndRootOptions)(host, {
10
10
  name: options.name,
11
11
  projectType: 'library',
12
12
  directory: options.directory,
@@ -19,7 +19,7 @@ async function normalizeOptions(host, options) {
19
19
  const parsedTags = options.tags
20
20
  ? options.tags.split(',').map((s) => s.trim())
21
21
  : [];
22
- const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
22
+ const isUsingTsSolutionConfig = (0, internal_2.isUsingTsSolutionSetup)(host);
23
23
  const normalized = {
24
24
  ...options,
25
25
  fileName: projectName,
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EASjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAYpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAoBlC,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,mCAAmC,CACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAmH5B;AAyKD,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/generators/library/library.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,iBAAiB,EASjB,IAAI,EAIL,MAAM,YAAY,CAAC;AAYpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAelC,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,mCAAmC,CACvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iBAAiB,CAAC,CAkH5B;AAyKD,eAAe,2BAA2B,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reactNativeLibraryGenerator = reactNativeLibraryGenerator;
4
4
  exports.reactNativeLibraryGeneratorInternal = reactNativeLibraryGeneratorInternal;
5
5
  const tslib_1 = require("tslib");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const devkit_1 = require("@nx/devkit");
7
8
  const js_1 = require("@nx/js");
8
9
  const init_1 = tslib_1.__importDefault(require("../init/init"));
@@ -11,14 +12,10 @@ const add_jest_1 = require("../../utils/add-jest");
11
12
  const component_1 = tslib_1.__importDefault(require("../component/component"));
12
13
  const normalize_options_1 = require("./lib/normalize-options");
13
14
  const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
14
- const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
15
- const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
16
- const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
15
+ const internal_2 = require("@nx/js/internal");
17
16
  const add_rollup_build_target_1 = require("@nx/react/src/generators/library/lib/add-rollup-build-target");
18
- const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
19
17
  const path_1 = require("path");
20
18
  const versions_1 = require("../../utils/versions");
21
- const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
22
19
  async function reactNativeLibraryGenerator(host, schema) {
23
20
  return await reactNativeLibraryGeneratorInternal(host, {
24
21
  addPlugin: false,
@@ -28,7 +25,7 @@ async function reactNativeLibraryGenerator(host, schema) {
28
25
  }
29
26
  async function reactNativeLibraryGeneratorInternal(host, schema) {
30
27
  const tasks = [];
31
- const addTsPlugin = (0, ts_solution_setup_1.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
28
+ const addTsPlugin = (0, internal_2.shouldConfigureTsSolutionSetup)(host, schema.addPlugin);
32
29
  const jsInitTask = await (0, js_1.initGenerator)(host, {
33
30
  ...schema,
34
31
  addTsPlugin,
@@ -46,7 +43,7 @@ async function reactNativeLibraryGeneratorInternal(host, schema) {
46
43
  }
47
44
  createFiles(host, options);
48
45
  if (options.isUsingTsSolutionConfig) {
49
- await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
46
+ await (0, internal_2.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
50
47
  }
51
48
  const addProjectTask = await addProject(host, options);
52
49
  if (addProjectTask) {
@@ -62,32 +59,31 @@ async function reactNativeLibraryGeneratorInternal(host, schema) {
62
59
  tasks.push(lintTask);
63
60
  const jestTask = await (0, add_jest_1.addJest)(host, options.unitTestRunner, options.name, options.projectRoot, options.js, options.skipPackageJson, options.addPlugin, 'tsconfig.lib.json');
64
61
  tasks.push(jestTask);
65
- const relativeCwd = (0, artifact_name_and_directory_utils_1.getRelativeCwd)();
66
- const path = (0, devkit_1.joinPathFragments)(options.projectRoot, 'src/lib', options.fileName);
62
+ const relativeCwd = (0, internal_1.getRelativeCwd)();
63
+ const path = (0, devkit_1.joinPathFragments)(options.projectRoot, 'src/lib', options.js ? `${options.fileName}.js` : options.fileName);
67
64
  const componentTask = await (0, component_1.default)(host, {
68
65
  path: relativeCwd ? (0, path_1.relative)(relativeCwd, path) : path,
69
66
  skipTests: options.unitTestRunner === 'none',
70
67
  export: true,
71
68
  skipFormat: true,
72
- js: options.js,
73
69
  });
74
70
  tasks.push(() => componentTask);
75
71
  if (options.publishable) {
76
- tasks.push(await (0, add_release_config_1.releaseTasks)(host));
72
+ tasks.push(await (0, internal_2.releaseTasks)(host));
77
73
  }
78
74
  if (!options.skipTsConfig && !options.isUsingTsSolutionConfig) {
79
75
  (0, js_1.addTsConfigPath)(host, options.importPath, [
80
76
  (0, devkit_1.joinPathFragments)(options.projectRoot, './src', 'index.' + (options.js ? 'js' : 'ts')),
81
77
  ]);
82
78
  }
83
- (0, ts_solution_setup_1.updateTsconfigFiles)(host, options.projectRoot, 'tsconfig.lib.json', {
79
+ (0, internal_2.updateTsconfigFiles)(host, options.projectRoot, 'tsconfig.lib.json', {
84
80
  jsx: 'react-jsx',
85
81
  module: 'esnext',
86
82
  moduleResolution: 'bundler',
87
83
  }, options.linter === 'eslint'
88
84
  ? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
89
85
  : undefined);
90
- (0, sort_fields_1.sortPackageJsonFields)(host, options.projectRoot);
86
+ (0, internal_2.sortPackageJsonFields)(host, options.projectRoot);
91
87
  if (!options.skipFormat) {
92
88
  await (0, devkit_1.formatFiles)(host);
93
89
  }
@@ -96,7 +92,7 @@ async function reactNativeLibraryGeneratorInternal(host, schema) {
96
92
  tasks.push(() => (0, devkit_1.installPackagesTask)(host, true));
97
93
  }
98
94
  tasks.push(() => {
99
- (0, log_show_project_command_1.logShowProjectCommand)(options.name);
95
+ (0, internal_1.logShowProjectCommand)(options.name);
100
96
  });
101
97
  return (0, devkit_1.runTasksInSerial)(...tasks);
102
98
  }
@@ -135,7 +131,7 @@ async function addProject(host, options) {
135
131
  else {
136
132
  if (options.publishable) {
137
133
  const nxJson = (0, devkit_1.readJson)(host, 'nx.json');
138
- await (0, add_release_config_1.addReleaseConfigForNonTsSolution)(host, options.name, project);
134
+ await (0, internal_2.addReleaseConfigForNonTsSolution)(host, options.name, project);
139
135
  }
140
136
  (0, devkit_1.addProjectConfiguration)(host, options.name, project);
141
137
  }
@@ -145,7 +141,7 @@ async function addProject(host, options) {
145
141
  options.buildable) {
146
142
  (0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(options.projectRoot, 'package.json'), packageJson);
147
143
  if (options.publishable) {
148
- await (0, add_release_config_1.addReleaseConfigForTsSolution)(host, options.name, project);
144
+ await (0, internal_2.addReleaseConfigForTsSolution)(host, options.name, project);
149
145
  (0, devkit_1.updateProjectConfiguration)(host, options.name, project);
150
146
  }
151
147
  }
@@ -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,
@@ -4,8 +4,7 @@ exports.addLinting = addLinting;
4
4
  const eslint_1 = require("@nx/eslint");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const lint_1 = require("@nx/react/src/utils/lint");
7
- const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
8
- const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
7
+ const internal_1 = require("@nx/eslint/internal");
9
8
  async function addLinting(host, options) {
10
9
  if (options.linter === 'none') {
11
10
  return () => { };
@@ -23,8 +22,8 @@ async function addLinting(host, options) {
23
22
  });
24
23
  tasks.push(lintTask);
25
24
  // Add ignored dependencies and files to dependency-checks rule
26
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
27
- (0, eslint_file_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
25
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
26
+ (0, internal_1.updateOverrideInLintConfig)(host, options.projectRoot, (override) => Boolean(override.rules?.['@nx/dependency-checks']), (override) => {
28
27
  const rule = override.rules['@nx/dependency-checks'];
29
28
  if (Array.isArray(rule) && rule.length > 1) {
30
29
  // Ensure ignoredDependencies array exists
@@ -47,23 +46,23 @@ async function addLinting(host, options) {
47
46
  return override;
48
47
  });
49
48
  }
50
- if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
51
- if ((0, flat_config_1.useFlatConfig)(host)) {
52
- (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
49
+ if ((0, internal_1.isEslintConfigSupported)(host)) {
50
+ if ((0, internal_1.useFlatConfig)(host)) {
51
+ (0, internal_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
53
52
  // Add an empty rules object to users know how to add/override rules
54
- (0, eslint_file_1.addOverrideToLintConfig)(host, options.projectRoot, {
53
+ (0, internal_1.addOverrideToLintConfig)(host, options.projectRoot, {
55
54
  files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
56
55
  rules: {},
57
56
  });
58
57
  }
59
58
  else {
60
- const addExtendsTask = (0, eslint_file_1.addExtendsToLintConfig)(host, options.projectRoot, {
59
+ const addExtendsTask = (0, internal_1.addExtendsToLintConfig)(host, options.projectRoot, {
61
60
  name: 'plugin:@nx/react',
62
61
  needCompatFixup: true,
63
62
  });
64
63
  tasks.push(addExtendsTask);
65
64
  }
66
- (0, eslint_file_1.addIgnoresToLintConfig)(host, options.projectRoot, [
65
+ (0, internal_1.addIgnoresToLintConfig)(host, options.projectRoot, [
67
66
  'public',
68
67
  '.cache',
69
68
  'node_modules',
@@ -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
+ }
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isReactNativeProject = isReactNativeProject;
4
4
  exports.getAllReactNativeProjects = getAllReactNativeProjects;
5
5
  const devkit_1 = require("@nx/devkit");
6
- const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
6
+ const internal_1 = require("@nx/devkit/internal");
7
7
  async function getAppConfig(tree, projectRoot, appConfigPath) {
8
8
  const absolutePath = (0, devkit_1.joinPathFragments)(tree.root, projectRoot, appConfigPath);
9
- return (0, config_utils_1.loadConfigFile)(absolutePath);
9
+ return (0, internal_1.loadConfigFile)(absolutePath);
10
10
  }
11
11
  /**
12
12
  * Determines if a project is a React Native project by checking for specific files
@@ -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';