@nx/react 20.5.0-rc.4 → 20.5.1

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.5.0-rc.4",
3
+ "version": "20.5.1",
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.5.0-rc.4",
42
- "@nx/js": "20.5.0-rc.4",
43
- "@nx/eslint": "20.5.0-rc.4",
44
- "@nx/web": "20.5.0-rc.4",
45
- "@nx/module-federation": "20.5.0-rc.4",
41
+ "@nx/devkit": "20.5.1",
42
+ "@nx/js": "20.5.1",
43
+ "@nx/eslint": "20.5.1",
44
+ "@nx/web": "20.5.1",
45
+ "@nx/module-federation": "20.5.1",
46
46
  "express": "^4.21.2",
47
47
  "http-proxy-middleware": "^3.0.3",
48
48
  "semver": "^7.6.3"
@@ -44,11 +44,6 @@ async function applicationGeneratorInternal(tree, schema) {
44
44
  });
45
45
  tasks.push(jsInitTask);
46
46
  const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
47
- // If we are using the new TS solution
48
- // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
49
- if (options.isUsingTsSolutionConfig) {
50
- (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
51
- }
52
47
  (0, show_possible_warnings_1.showPossibleWarnings)(tree, options);
53
48
  const initTask = await (0, init_1.default)(tree, {
54
49
  ...options,
@@ -83,6 +78,11 @@ async function applicationGeneratorInternal(tree, schema) {
83
78
  }
84
79
  await (0, create_application_files_1.createApplicationFiles)(tree, options);
85
80
  (0, add_project_1.addProject)(tree, options);
81
+ // If we are using the new TS solution
82
+ // We need to update the workspace file (package.json or pnpm-workspaces.yaml) to include the new project
83
+ if (options.isUsingTsSolutionConfig) {
84
+ await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
85
+ }
86
86
  if (options.style === 'tailwind') {
87
87
  const twTask = await (0, setup_tailwind_1.setupTailwindGenerator)(tree, {
88
88
  project: options.projectName,
@@ -39,7 +39,7 @@ async function libraryGeneratorInternal(host, schema) {
39
39
  tasks.push(jsInitTask);
40
40
  const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
41
41
  if (options.isUsingTsSolutionConfig) {
42
- (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
42
+ await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
43
43
  }
44
44
  if (options.publishable === true && !schema.importPath) {
45
45
  throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);