@nx/react-native 16.10.0-beta.1 → 16.10.0-beta.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": "16.10.0-beta.1",
3
+ "version": "16.10.0-beta.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": [
@@ -36,14 +36,14 @@
36
36
  "node-fetch": "^2.6.7",
37
37
  "tsconfig-paths": "^4.1.2",
38
38
  "tslib": "^2.3.0",
39
- "@nx/detox": "16.10.0-beta.1",
40
- "@nx/devkit": "16.10.0-beta.1",
41
- "@nx/jest": "16.10.0-beta.1",
42
- "@nx/js": "16.10.0-beta.1",
43
- "@nx/linter": "16.10.0-beta.1",
44
- "@nx/react": "16.10.0-beta.1",
45
- "@nx/workspace": "16.10.0-beta.1",
46
- "@nrwl/react-native": "16.10.0-beta.1"
39
+ "@nx/detox": "16.10.0-beta.2",
40
+ "@nx/devkit": "16.10.0-beta.2",
41
+ "@nx/jest": "16.10.0-beta.2",
42
+ "@nx/js": "16.10.0-beta.2",
43
+ "@nx/linter": "16.10.0-beta.2",
44
+ "@nx/react": "16.10.0-beta.2",
45
+ "@nx/workspace": "16.10.0-beta.2",
46
+ "@nrwl/react-native": "16.10.0-beta.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react-native": ">= 0.72.0 < 0.73.0"
@@ -77,12 +77,12 @@ function pnpmResolver(extensions, context, realModuleName, debug) {
77
77
  * @returns path if resolved, else undefined
78
78
  */
79
79
  function tsconfigPathsResolver(context, extensions, realModuleName, platform, debug) {
80
- const tsConfigPathMatcher = getMatcher(debug);
81
- const match = tsConfigPathMatcher(realModuleName, undefined, undefined, extensions.map((ext) => `.${ext}`));
82
- if (match) {
80
+ try {
81
+ const tsConfigPathMatcher = getMatcher(debug);
82
+ const match = tsConfigPathMatcher(realModuleName, undefined, undefined, extensions.map((ext) => `.${ext}`));
83
83
  return metroResolver.resolve(context, match, platform);
84
84
  }
85
- else {
85
+ catch {
86
86
  if (debug) {
87
87
  console.log(chalk.red(`[Nx] Failed to resolve ${chalk.bold(realModuleName)}`));
88
88
  console.log(chalk.cyan(`[Nx] The following tsconfig paths was used:\n:${chalk.bold(JSON.stringify(paths, null, 2))}`));
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withNxMetro = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const metro_config_1 = require("metro-config");
6
- const path_1 = require("path");
7
6
  const fs_extra_1 = require("fs-extra");
8
7
  const metro_resolver_1 = require("./metro-resolver");
9
8
  async function withNxMetro(userConfig, opts = {}) {
@@ -12,12 +11,7 @@ async function withNxMetro(userConfig, opts = {}) {
12
11
  process.env.NX_REACT_NATIVE_DEBUG = 'true';
13
12
  if (opts.extensions)
14
13
  extensions.push(...opts.extensions);
15
- let watchFolders = [
16
- (0, path_1.join)(devkit_1.workspaceRoot, 'node_modules'),
17
- (0, path_1.join)(devkit_1.workspaceRoot, (0, devkit_1.workspaceLayout)().libsDir),
18
- (0, path_1.join)(devkit_1.workspaceRoot, 'packages'),
19
- (0, path_1.join)(devkit_1.workspaceRoot, '.storybook'),
20
- ];
14
+ let watchFolders = [devkit_1.workspaceRoot];
21
15
  if (opts.watchFolders?.length) {
22
16
  watchFolders = watchFolders.concat(opts.watchFolders);
23
17
  }
@@ -20,7 +20,7 @@ const customConfig = {
20
20
  sourceExts: [...sourceExts, 'svg'],
21
21
  blockList: exclusionList([/^(?!.*node_modules).*\/dist\/.*/]),
22
22
  unstable_enableSymlinks: true,
23
- unstable_enablePackageExports: true,
23
+ // unstable_enablePackageExports: true,
24
24
  },
25
25
  };
26
26