@nx/react-native 22.0.1 → 22.0.2

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": "22.0.1",
3
+ "version": "22.0.2",
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": "22.0.1",
30
- "@nx/js": "22.0.1",
31
- "@nx/eslint": "22.0.1",
32
- "@nx/react": "22.0.1",
29
+ "@nx/devkit": "22.0.2",
30
+ "@nx/js": "22.0.2",
31
+ "@nx/eslint": "22.0.2",
32
+ "@nx/react": "22.0.2",
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": "22.0.1",
47
- "@nx/rollup": "22.0.1"
46
+ "@nx/detox": "22.0.2",
47
+ "@nx/rollup": "22.0.2"
48
48
  },
49
49
  "executors": "./executors.json",
50
50
  "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;AAG7C,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;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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = buildAndroidExecutor;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const path_1 = require("path");
5
6
  const child_process_1 = require("child_process");
6
7
  const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-files");
@@ -32,7 +33,9 @@ function runCliBuild(workspaceRoot, projectRoot, options) {
32
33
  childProcess.on('error', (err) => {
33
34
  reject(err);
34
35
  });
35
- childProcess.on('exit', (code) => {
36
+ childProcess.on('exit', (code, signal) => {
37
+ if (code === null)
38
+ code = (0, internal_1.signalToCode)(signal);
36
39
  if (code === 0) {
37
40
  res(childProcess);
38
41
  }
@@ -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;AAK7C,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;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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = buildIosExecutor;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const path_1 = require("path");
5
6
  const child_process_1 = require("child_process");
6
7
  const os_1 = require("os");
@@ -37,7 +38,9 @@ function runCliBuildIOS(workspaceRoot, projectRoot, options) {
37
38
  childProcess.on('error', (err) => {
38
39
  reject(err);
39
40
  });
40
- childProcess.on('exit', (code) => {
41
+ childProcess.on('exit', (code, signal) => {
42
+ if (code === null)
43
+ code = (0, internal_1.signalToCode)(signal);
41
44
  if (code === 0) {
42
45
  resolve(childProcess);
43
46
  }
@@ -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;AAIpD,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;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"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = bundleExecutor;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const path_1 = require("path");
6
7
  const child_process_1 = require("child_process");
7
8
  const fs_1 = require("fs");
@@ -34,7 +35,9 @@ function runCliBuild(workspaceRoot, projectRoot, options) {
34
35
  childProcess.on('error', (err) => {
35
36
  reject(err);
36
37
  });
37
- childProcess.on('exit', (code) => {
38
+ childProcess.on('exit', (code, signal) => {
39
+ if (code === null)
40
+ code = (0, internal_1.signalToCode)(signal);
38
41
  if (code === 0) {
39
42
  resolve(childProcess);
40
43
  }
@@ -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;AAI7C,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;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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = runAndroidExecutor;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const path_1 = require("path");
5
6
  const child_process_1 = require("child_process");
6
7
  const start_impl_1 = require("../start/start.impl");
@@ -46,7 +47,9 @@ function runCliRunAndroid(workspaceRoot, projectRoot, options) {
46
47
  childProcess.on('error', (err) => {
47
48
  reject(err);
48
49
  });
49
- childProcess.on('exit', (code) => {
50
+ childProcess.on('exit', (code, signal) => {
51
+ if (code === null)
52
+ code = (0, internal_1.signalToCode)(signal);
50
53
  if (code === 0) {
51
54
  resolve(childProcess);
52
55
  }
@@ -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;AAQ/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;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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = runIosExecutor;
4
+ const internal_1 = require("@nx/devkit/internal");
4
5
  const path_1 = require("path");
5
6
  const child_process_1 = require("child_process");
6
7
  const os_1 = require("os");
@@ -47,7 +48,9 @@ function runCliRunIOS(workspaceRoot, projectRoot, options) {
47
48
  childProcess.on('error', (err) => {
48
49
  reject(err);
49
50
  });
50
- childProcess.on('exit', (code) => {
51
+ childProcess.on('exit', (code, signal) => {
52
+ if (code === null)
53
+ code = (0, internal_1.signalToCode)(signal);
51
54
  if (code === 0) {
52
55
  resolve(childProcess);
53
56
  }
@@ -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;AACrD,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;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"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = startExecutor;
4
4
  exports.runCliStart = runCliStart;
5
5
  const devkit_1 = require("@nx/devkit");
6
+ const internal_1 = require("@nx/devkit/internal");
6
7
  const child_process_1 = require("child_process");
7
8
  const path_1 = require("path");
8
9
  const is_packager_running_1 = require("./lib/is-packager-running");
@@ -48,7 +49,9 @@ function startAsync(workspaceRoot, projectRoot, options) {
48
49
  childProcess.on('error', (err) => {
49
50
  reject(err);
50
51
  });
51
- childProcess.on('exit', (code) => {
52
+ childProcess.on('exit', (code, signal) => {
53
+ if (code === null)
54
+ code = (0, internal_1.signalToCode)(signal);
52
55
  if (code === 0) {
53
56
  resolve(childProcess);
54
57
  }
@@ -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;AAE7C,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,CAmCvB"}
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"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = upgradeExecutor;
4
4
  exports.runCliUpgrade = runCliUpgrade;
5
+ const internal_1 = require("@nx/devkit/internal");
5
6
  const path_1 = require("path");
6
7
  const child_process_1 = require("child_process");
7
8
  /**
@@ -34,7 +35,9 @@ function runCliUpgrade(workspaceRoot, projectRoot) {
34
35
  childProcess.on('error', (err) => {
35
36
  reject(err);
36
37
  });
37
- childProcess.on('exit', (code) => {
38
+ childProcess.on('exit', (code, signal) => {
39
+ if (code === null)
40
+ code = (0, internal_1.signalToCode)(signal);
38
41
  if (code === 0) {
39
42
  resolve(childProcess);
40
43
  }