@nx/expo 21.0.0-beta.4 → 21.0.0-beta.5

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/expo",
3
- "version": "21.0.0-beta.4",
3
+ "version": "21.0.0-beta.5",
4
4
  "private": false,
5
5
  "description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
6
6
  "keywords": [
@@ -28,13 +28,13 @@
28
28
  "main": "./index",
29
29
  "types": "index.d.ts",
30
30
  "dependencies": {
31
- "@nx/devkit": "21.0.0-beta.4",
32
- "@nx/eslint": "21.0.0-beta.4",
33
- "@nx/jest": "21.0.0-beta.4",
34
- "@nx/js": "21.0.0-beta.4",
35
- "@nx/react": "21.0.0-beta.4",
36
- "@nx/web": "21.0.0-beta.4",
37
- "@nx/webpack": "21.0.0-beta.4",
31
+ "@nx/devkit": "21.0.0-beta.5",
32
+ "@nx/eslint": "21.0.0-beta.5",
33
+ "@nx/jest": "21.0.0-beta.5",
34
+ "@nx/js": "21.0.0-beta.5",
35
+ "@nx/react": "21.0.0-beta.5",
36
+ "@nx/web": "21.0.0-beta.5",
37
+ "@nx/webpack": "21.0.0-beta.5",
38
38
  "enhanced-resolve": "^5.8.3",
39
39
  "metro-config": "~0.80.4",
40
40
  "metro-resolver": "~0.80.4",
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addE2e = addE2e;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const e2e_web_server_info_utils_1 = require("@nx/devkit/src/generators/e2e-web-server-info-utils");
6
- const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
7
- const find_plugin_for_config_file_1 = require("@nx/devkit/src/utils/find-plugin-for-config-file");
8
6
  const web_1 = require("@nx/web");
9
7
  const has_expo_plugin_1 = require("../../../utils/has-expo-plugin");
10
8
  const versions_1 = require("../../../utils/versions");
@@ -61,19 +59,6 @@ async function addE2e(tree, options) {
61
59
  jsx: true,
62
60
  rootProject: options.rootProject,
63
61
  });
64
- if (options.addPlugin ||
65
- (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
66
- ? p === '@nx/cypress/plugin'
67
- : p.plugin === '@nx/cypress/plugin')) {
68
- let buildTarget = '^export';
69
- if (hasPlugin) {
70
- const matchingExpoPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, '@nx/expo/plugin', (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'app.json'));
71
- if (matchingExpoPlugin && typeof matchingExpoPlugin !== 'string') {
72
- buildTarget = `^${matchingExpoPlugin.options?.exportTargetName ?? 'export'}`;
73
- }
74
- }
75
- await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/cypress/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `cypress.config.${options.js ? 'js' : 'ts'}`));
76
- }
77
62
  return e2eTask;
78
63
  }
79
64
  case 'playwright': {
@@ -114,19 +99,6 @@ async function addE2e(tree, options) {
114
99
  rootProject: options.rootProject,
115
100
  addPlugin: options.addPlugin,
116
101
  });
117
- if (options.addPlugin ||
118
- (0, devkit_1.readNxJson)(tree).plugins?.find((p) => typeof p === 'string'
119
- ? p === '@nx/playwright/plugin'
120
- : p.plugin === '@nx/playwright/plugin')) {
121
- let buildTarget = '^export';
122
- if (hasPlugin) {
123
- const matchingExpoPlugin = await (0, find_plugin_for_config_file_1.findPluginForConfigFile)(tree, '@nx/expo/plugin', (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'app.json'));
124
- if (matchingExpoPlugin && typeof matchingExpoPlugin !== 'string') {
125
- buildTarget = `^${matchingExpoPlugin.options?.exportTargetName ?? 'export'}`;
126
- }
127
- }
128
- await (0, target_defaults_utils_1.addE2eCiTargetDefaults)(tree, '@nx/playwright/plugin', buildTarget, (0, devkit_1.joinPathFragments)(options.e2eProjectRoot, `playwright.config.ts`));
129
- }
130
102
  return e2eTask;
131
103
  }
132
104
  case 'detox':