@nx/react-native 23.0.0-canary.20260504-e8aa612 → 23.0.0-pr.33655.05d9542

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react-native",
3
- "version": "23.0.0-canary.20260504-e8aa612",
3
+ "version": "23.0.0-pr.33655.05d9542",
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-canary.20260504-e8aa612",
31
- "@nx/js": "23.0.0-canary.20260504-e8aa612",
32
- "@nx/eslint": "23.0.0-canary.20260504-e8aa612",
33
- "@nx/react": "23.0.0-canary.20260504-e8aa612",
30
+ "@nx/devkit": "23.0.0-pr.33655.05d9542",
31
+ "@nx/js": "23.0.0-pr.33655.05d9542",
32
+ "@nx/eslint": "23.0.0-pr.33655.05d9542",
33
+ "@nx/react": "23.0.0-pr.33655.05d9542",
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-canary.20260504-e8aa612"
47
+ "nx": "23.0.0-pr.33655.05d9542"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@nx/detox": "23.0.0-canary.20260504-e8aa612",
51
- "@nx/rollup": "23.0.0-canary.20260504-e8aa612"
50
+ "@nx/detox": "23.0.0-pr.33655.05d9542",
51
+ "@nx/rollup": "23.0.0-pr.33655.05d9542"
52
52
  },
53
53
  "executors": "./executors.json",
54
54
  "ng-update": {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../packages/react-native/plugins/plugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAIL,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,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,EAIL,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,CA+B/D,CAAC;AAEF,eAAO,MAAM,aAAa,yCAAc,CAAC"}
package/plugins/plugin.js CHANGED
@@ -14,8 +14,9 @@ exports.createNodes = [
14
14
  const optionsHash = (0, devkit_internals_1.hashObject)(options);
15
15
  const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `react-native-${optionsHash}.hash`);
16
16
  const targetsCache = new internal_1.PluginCache(cachePath);
17
+ const lockFileName = (0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
17
18
  try {
18
- return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache), configFiles, options, context);
19
+ return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, lockFileName), configFiles, options, context);
19
20
  }
20
21
  finally {
21
22
  targetsCache.writeToDisk();
@@ -23,7 +24,7 @@ exports.createNodes = [
23
24
  },
24
25
  ];
25
26
  exports.createNodesV2 = exports.createNodes;
26
- async function createNodesInternal(configFile, options, context, targetsCache) {
27
+ async function createNodesInternal(configFile, options, context, targetsCache, lockFileName) {
27
28
  options = normalizeOptions(options);
28
29
  const projectRoot = (0, path_1.dirname)(configFile);
29
30
  // Do not create a project if package.json or project.json or metro.config.js isn't there.
@@ -40,7 +41,7 @@ async function createNodesInternal(configFile, options, context, targetsCache) {
40
41
  packageJson.devDependencies?.['expo']) {
41
42
  return {};
42
43
  }
43
- const hash = await (0, internal_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
44
+ const hash = await (0, internal_1.calculateHashForCreateNodes)(projectRoot, options, context, [lockFileName]);
44
45
  if (!targetsCache.has(hash)) {
45
46
  targetsCache.set(hash, buildReactNativeTargets(projectRoot, options, context));
46
47
  }