@nx/react 20.2.0-beta.6 → 20.2.0-beta.7

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": "20.2.0-beta.6",
3
+ "version": "20.2.0-beta.7",
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, Vitest, Playwright, 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": {
@@ -38,11 +38,11 @@
38
38
  "minimatch": "9.0.3",
39
39
  "picocolors": "^1.1.0",
40
40
  "tslib": "^2.3.0",
41
- "@nx/devkit": "20.2.0-beta.6",
42
- "@nx/js": "20.2.0-beta.6",
43
- "@nx/eslint": "20.2.0-beta.6",
44
- "@nx/web": "20.2.0-beta.6",
45
- "@nx/module-federation": "20.2.0-beta.6",
41
+ "@nx/devkit": "20.2.0-beta.7",
42
+ "@nx/js": "20.2.0-beta.7",
43
+ "@nx/eslint": "20.2.0-beta.7",
44
+ "@nx/web": "20.2.0-beta.7",
45
+ "@nx/module-federation": "20.2.0-beta.7",
46
46
  "express": "^4.19.2",
47
47
  "http-proxy-middleware": "^3.0.3"
48
48
  },
@@ -21,6 +21,7 @@ const create_ts_config_1 = require("../../utils/create-ts-config");
21
21
  const install_common_dependencies_1 = require("./lib/install-common-dependencies");
22
22
  const set_defaults_1 = require("./lib/set-defaults");
23
23
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
24
+ const plugin_1 = require("@nx/js/src/utils/typescript/plugin");
24
25
  async function libraryGenerator(host, schema) {
25
26
  return await libraryGeneratorInternal(host, {
26
27
  addPlugin: false,
@@ -114,6 +115,11 @@ async function libraryGeneratorInternal(host, schema) {
114
115
  const rollupTask = await (0, add_rollup_build_target_1.addRollupBuildTarget)(host, options);
115
116
  tasks.push(rollupTask);
116
117
  }
118
+ else if (options.bundler === 'none' && options.addPlugin) {
119
+ const nxJson = (0, devkit_1.readNxJson)(host);
120
+ (0, plugin_1.ensureProjectIsExcludedFromPluginRegistrations)(nxJson, options.projectRoot);
121
+ (0, devkit_1.updateNxJson)(host, nxJson);
122
+ }
117
123
  // Set up test target
118
124
  if (options.unitTestRunner === 'jest') {
119
125
  const { configurationGenerator } = (0, devkit_1.ensurePackage)('@nx/jest', versions_1.nxVersion);