@nx/react 17.2.0-canary.20231206-a93ee1c → 17.2.0-rc.0

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",
3
- "version": "17.2.0-canary.20231206-a93ee1c",
3
+ "version": "17.2.0-rc.0",
4
4
  "private": false,
5
5
  "description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -37,11 +37,11 @@
37
37
  "file-loader": "^6.2.0",
38
38
  "minimatch": "3.0.5",
39
39
  "tslib": "^2.3.0",
40
- "@nx/devkit": "17.2.0-canary.20231206-a93ee1c",
41
- "@nx/js": "17.2.0-canary.20231206-a93ee1c",
42
- "@nx/eslint": "17.2.0-canary.20231206-a93ee1c",
43
- "@nx/web": "17.2.0-canary.20231206-a93ee1c",
44
- "@nrwl/react": "17.2.0-canary.20231206-a93ee1c"
40
+ "@nx/devkit": "17.2.0-rc.0",
41
+ "@nx/js": "17.2.0-rc.0",
42
+ "@nx/eslint": "17.2.0-rc.0",
43
+ "@nx/web": "17.2.0-rc.0",
44
+ "@nrwl/react": "17.2.0-rc.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
@@ -9,8 +9,9 @@ const has_vite_plugin_1 = require("../../../utils/has-vite-plugin");
9
9
  async function addE2e(tree, options) {
10
10
  switch (options.e2eTestRunner) {
11
11
  case 'cypress': {
12
- if ((options.bundler === 'webpack' && !(0, has_webpack_plugin_1.hasWebpackPlugin)(tree)) ||
13
- (options.bundler === 'vite' && !(0, has_vite_plugin_1.hasVitePlugin)(tree))) {
12
+ const hasNxBuildPlugin = (options.bundler === 'webpack' && (0, has_webpack_plugin_1.hasWebpackPlugin)(tree)) ||
13
+ (options.bundler === 'vite' && (0, has_vite_plugin_1.hasVitePlugin)(tree));
14
+ if (!hasNxBuildPlugin) {
14
15
  (0, web_1.webStaticServeGenerator)(tree, {
15
16
  buildTarget: `${options.projectName}:build`,
16
17
  targetName: 'serve-static',
@@ -36,6 +37,15 @@ async function addE2e(tree, options) {
36
37
  baseUrl: 'http://localhost:4200',
37
38
  jsx: true,
38
39
  rootProject: options.rootProject,
40
+ webServerCommands: hasNxBuildPlugin
41
+ ? {
42
+ default: `nx run ${options.projectName}:serve`,
43
+ production: `nx run ${options.projectName}:preview`,
44
+ }
45
+ : undefined,
46
+ ciWebServerCommand: hasNxBuildPlugin
47
+ ? `nx run ${options.projectName}:serve-static`
48
+ : undefined,
39
49
  });
40
50
  }
41
51
  case 'playwright': {