@nx/react-native 0.0.0-pr-32911-14f87b5 → 0.0.0-pr-32946-64cab2a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/migrations.json CHANGED
@@ -1,11 +1,5 @@
1
1
  {
2
2
  "generators": {
3
- "update-19-6-0-rename-upgrade-target-name": {
4
- "cli": "nx",
5
- "version": "19.6.0-beta.1",
6
- "description": "Rename upgrade target name to fix casing.",
7
- "implementation": "./src/migrations/update-19-6-0/rename-upgrade-target-name"
8
- },
9
3
  "update-21-4-0-remove-deprecated-deps": {
10
4
  "version": "21.4.0-beta.0",
11
5
  "cli": "nx",
@@ -20,93 +14,6 @@
20
14
  }
21
15
  },
22
16
  "packageJsonUpdates": {
23
- "19.0.0": {
24
- "version": "19.0.0-beta.7",
25
- "packages": {
26
- "react-native": {
27
- "version": "0.73.6",
28
- "alwaysAddToPackageJson": false
29
- },
30
- "@react-native-community/cli-platform-android": {
31
- "version": "~12.3.6",
32
- "alwaysAddToPackageJson": false
33
- },
34
- "@react-native/babel-preset": {
35
- "version": "^0.73.21",
36
- "alwaysAddToPackageJson": false
37
- },
38
- "@react-native/metro-config": {
39
- "version": "^0.73.5",
40
- "alwaysAddToPackageJson": false
41
- },
42
- "react-native-web": {
43
- "version": "^0.19.10",
44
- "alwaysAddToPackageJson": false
45
- },
46
- "@testing-library/react-native": {
47
- "version": "~12.4.5",
48
- "alwaysAddToPackageJson": false
49
- },
50
- "react-native-svg-transformer": {
51
- "version": "1.3.0",
52
- "alwaysAddToPackageJson": false
53
- },
54
- "react-native-svg": {
55
- "version": "15.1.0",
56
- "alwaysAddToPackageJson": false
57
- },
58
- "@babel/runtime": {
59
- "version": "7.24.4",
60
- "alwaysAddToPackageJson": false
61
- }
62
- }
63
- },
64
- "19.2.0": {
65
- "version": "19.2.0-beta.2",
66
- "packages": {
67
- "react-native": {
68
- "version": "0.74.1",
69
- "alwaysAddToPackageJson": false
70
- },
71
- "@react-native-community/cli-platform-android": {
72
- "version": "~13.6.6",
73
- "alwaysAddToPackageJson": false
74
- },
75
- "@react-native/babel-preset": {
76
- "version": "^0.74.83",
77
- "alwaysAddToPackageJson": false
78
- },
79
- "@react-native/metro-config": {
80
- "version": "^0.74.83",
81
- "alwaysAddToPackageJson": false
82
- },
83
- "react-native-web": {
84
- "version": "^0.19.11",
85
- "alwaysAddToPackageJson": false
86
- },
87
- "@testing-library/react-native": {
88
- "version": "~12.5.0",
89
- "alwaysAddToPackageJson": false
90
- },
91
- "react-native-svg": {
92
- "version": "15.2.0",
93
- "alwaysAddToPackageJson": false
94
- },
95
- "@babel/runtime": {
96
- "version": "7.24.5",
97
- "alwaysAddToPackageJson": false
98
- }
99
- }
100
- },
101
- "19.5.0": {
102
- "version": "19.5.0-beta.0",
103
- "packages": {
104
- "react-native-svg": {
105
- "version": "15.3.0",
106
- "alwaysAddToPackageJson": false
107
- }
108
- }
109
- },
110
17
  "20.3.0": {
111
18
  "version": "20.3.0-beta.0",
112
19
  "packages": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react-native",
3
- "version": "0.0.0-pr-32911-14f87b5",
3
+ "version": "0.0.0-pr-32946-64cab2a",
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": [
@@ -26,10 +26,10 @@
26
26
  "main": "./index.js",
27
27
  "types": "index.d.ts",
28
28
  "dependencies": {
29
- "@nx/devkit": "0.0.0-pr-32911-14f87b5",
30
- "@nx/js": "0.0.0-pr-32911-14f87b5",
31
- "@nx/eslint": "0.0.0-pr-32911-14f87b5",
32
- "@nx/react": "0.0.0-pr-32911-14f87b5",
29
+ "@nx/devkit": "0.0.0-pr-32946-64cab2a",
30
+ "@nx/js": "0.0.0-pr-32946-64cab2a",
31
+ "@nx/eslint": "0.0.0-pr-32946-64cab2a",
32
+ "@nx/react": "0.0.0-pr-32946-64cab2a",
33
33
  "ajv": "^8.12.0",
34
34
  "enhanced-resolve": "^5.8.3",
35
35
  "ignore": "^5.0.4",
@@ -43,8 +43,8 @@
43
43
  "metro-resolver": ">= 0.82.0"
44
44
  },
45
45
  "optionalDependencies": {
46
- "@nx/detox": "0.0.0-pr-32911-14f87b5",
47
- "@nx/rollup": "0.0.0-pr-32911-14f87b5"
46
+ "@nx/detox": "0.0.0-pr-32946-64cab2a",
47
+ "@nx/rollup": "0.0.0-pr-32946-64cab2a"
48
48
  },
49
49
  "executors": "./executors.json",
50
50
  "ng-update": {
@@ -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;AAqBlC,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;AA8KD,eAAe,2BAA2B,CAAC"}
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"}
@@ -18,7 +18,6 @@ const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/a
18
18
  const path_1 = require("path");
19
19
  const versions_1 = require("../../utils/versions");
20
20
  const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
21
- const use_legacy_versioning_1 = require("nx/src/command-line/release/config/use-legacy-versioning");
22
21
  async function reactNativeLibraryGenerator(host, schema) {
23
22
  return await reactNativeLibraryGeneratorInternal(host, {
24
23
  addPlugin: false,
@@ -135,7 +134,7 @@ async function addProject(host, options) {
135
134
  else {
136
135
  if (options.publishable) {
137
136
  const nxJson = (0, devkit_1.readJson)(host, 'nx.json');
138
- await (0, add_release_config_1.addReleaseConfigForNonTsSolution)((0, use_legacy_versioning_1.shouldUseLegacyVersioning)(nxJson.release), host, options.name, project);
137
+ await (0, add_release_config_1.addReleaseConfigForNonTsSolution)(host, options.name, project);
139
138
  }
140
139
  (0, devkit_1.addProjectConfiguration)(host, options.name, project);
141
140
  }
@@ -1,6 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- /**
3
- * There was a typo in @nx/react-native/plugin, where "upgradeTargetName" was "upgradeTargetname"
4
- */
5
- export default function update(tree: Tree): Promise<void>;
6
- //# sourceMappingURL=rename-upgrade-target-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rename-upgrade-target-name.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/migrations/update-19-6-0/rename-upgrade-target-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,IAAI,EAAgB,MAAM,YAAY,CAAC;AAEzE;;GAEG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBAe9C"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = update;
4
- const devkit_1 = require("@nx/devkit");
5
- /**
6
- * There was a typo in @nx/react-native/plugin, where "upgradeTargetName" was "upgradeTargetname"
7
- */
8
- async function update(tree) {
9
- const nxJson = (0, devkit_1.readNxJson)(tree);
10
- if (!nxJson.plugins)
11
- return;
12
- let updated = false;
13
- for (const plugin of nxJson.plugins) {
14
- if (typeof plugin === 'string')
15
- continue;
16
- if (plugin.plugin !== '@nx/react-native/plugin')
17
- continue;
18
- if (plugin.options['upgradeTargetname']) {
19
- plugin.options['upgradeTargetName'] = plugin.options['upgradeTargetname'];
20
- delete plugin.options['upgradeTargetname'];
21
- updated = true;
22
- }
23
- }
24
- if (updated)
25
- (0, devkit_1.updateNxJson)(tree, nxJson);
26
- await (0, devkit_1.formatFiles)(tree);
27
- }