@nx/react 22.3.0-beta.1 → 22.3.0-beta.3

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": "22.3.0-beta.1",
3
+ "version": "22.3.0-beta.3",
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,27 +38,27 @@
38
38
  "minimatch": "9.0.3",
39
39
  "picocolors": "^1.1.0",
40
40
  "tslib": "^2.3.0",
41
- "@nx/devkit": "22.3.0-beta.1",
42
- "@nx/js": "22.3.0-beta.1",
43
- "@nx/eslint": "22.3.0-beta.1",
44
- "@nx/web": "22.3.0-beta.1",
45
- "@nx/module-federation": "22.3.0-beta.1",
46
- "@nx/rollup": "22.3.0-beta.1",
41
+ "@nx/devkit": "22.3.0-beta.3",
42
+ "@nx/js": "22.3.0-beta.3",
43
+ "@nx/eslint": "22.3.0-beta.3",
44
+ "@nx/web": "22.3.0-beta.3",
45
+ "@nx/module-federation": "22.3.0-beta.3",
46
+ "@nx/rollup": "22.3.0-beta.3",
47
47
  "express": "^4.21.2",
48
48
  "http-proxy-middleware": "^3.0.5",
49
49
  "semver": "^7.6.3"
50
50
  },
51
51
  "devDependencies": {
52
- "@nx/cypress": "22.3.0-beta.1",
53
- "@nx/playwright": "22.3.0-beta.1",
54
- "@nx/rsbuild": "22.3.0-beta.1",
55
- "@nx/vite": "22.3.0-beta.1",
56
- "@nx/vitest": "22.3.0-beta.1",
57
- "@nx/webpack": "22.3.0-beta.1",
58
- "nx": "22.3.0-beta.1"
52
+ "@nx/cypress": "22.3.0-beta.3",
53
+ "@nx/playwright": "22.3.0-beta.3",
54
+ "@nx/rsbuild": "22.3.0-beta.3",
55
+ "@nx/vite": "22.3.0-beta.3",
56
+ "@nx/vitest": "22.3.0-beta.3",
57
+ "@nx/webpack": "22.3.0-beta.3",
58
+ "nx": "22.3.0-beta.3"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "22.3.0-beta.1"
61
+ "@nx/vite": "22.3.0-beta.3"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"merge-plugins.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/merge-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,WAAW,EAAE,4CAWd,CAAC;AAEpC,eAAO,MAAM,YAAY,GACvB,GAAG,MAAM,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,EAAE,KACzD,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,EAWW,CAAC"}
1
+ {"version":3,"file":"merge-plugins.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/merge-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,WAAW,EAAE,4CAWd,CAAC;AAEpC,eAAO,MAAM,YAAY,GACvB,GAAG,MAAM,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,EAAE,KACzD,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,EAc/C,CAAC"}
@@ -49,7 +49,7 @@ async function applicationGeneratorInternal(tree, schema) {
49
49
  const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
50
50
  options.useReactRouter =
51
51
  options.routing && options.bundler === 'vite'
52
- ? options.useReactRouter ??
52
+ ? (options.useReactRouter ??
53
53
  (await (0, prompt_1.promptWhenInteractive)({
54
54
  name: 'response',
55
55
  message: 'Would you like to use react-router for server-side rendering?',
@@ -65,7 +65,7 @@ async function applicationGeneratorInternal(tree, schema) {
65
65
  },
66
66
  ],
67
67
  initial: 0,
68
- }, { response: 'No' }).then((r) => r.response === 'Yes'))
68
+ }, { response: 'No' }).then((r) => r.response === 'Yes')))
69
69
  : false;
70
70
  (0, show_possible_warnings_1.showPossibleWarnings)(tree, options);
71
71
  const initTask = await (0, init_1.default)(tree, {
@@ -69,7 +69,7 @@ async function ignoreReactRouterFilesInEslintConfig(tree, projectRoot) {
69
69
  return;
70
70
  }
71
71
  // for flat config, we update the root config file
72
- const directory = isUsingFlatConfig ? '' : projectRoot ?? '';
72
+ const directory = isUsingFlatConfig ? '' : (projectRoot ?? '');
73
73
  addIgnoresToLintConfig(tree, directory, ['**/build', '**/.react-router']);
74
74
  }
75
75
  function isEslintInstalled(tree) {
@@ -29,7 +29,7 @@ async function hostGenerator(host, schema) {
29
29
  js: schema.js ?? false,
30
30
  typescriptConfiguration: schema.js
31
31
  ? false
32
- : schema.typescriptConfiguration ?? true,
32
+ : (schema.typescriptConfiguration ?? true),
33
33
  dynamic: schema.dynamic ?? false,
34
34
  // TODO(colum): remove when Webpack MF works with Crystal
35
35
  addPlugin: !schema.bundler || schema.bundler === 'rspack' ? true : false,
@@ -31,8 +31,8 @@ async function setupSsrForRemote(tree, options, appName) {
31
31
  };
32
32
  (0, devkit_2.generateFiles)(tree, (0, devkit_2.joinPathFragments)(__dirname, `../files/${pathToModuleFederationSsrFiles}`), project.root, templateVariables);
33
33
  // For hosts to use when running remotes in static mode.
34
- const originalOutputPath = project.targets.build?.options?.outputPath ??
35
- options.isUsingTsSolutionConfig
34
+ const originalOutputPath = (project.targets.build?.options?.outputPath ??
35
+ options.isUsingTsSolutionConfig)
36
36
  ? 'dist'
37
37
  : (0, devkit_2.joinPathFragments)((0, devkit_1.offsetFromRoot)(options.appProjectRoot), 'dist', options.appProjectRoot != '.'
38
38
  ? options.appProjectRoot
@@ -78,7 +78,7 @@ async function remoteGenerator(host, schema) {
78
78
  js: schema.js ?? false,
79
79
  typescriptConfiguration: schema.js
80
80
  ? false
81
- : schema.typescriptConfiguration ?? true,
81
+ : (schema.typescriptConfiguration ?? true),
82
82
  dynamic: schema.dynamic ?? false,
83
83
  // TODO(colum): remove when Webpack MF works with Crystal
84
84
  addPlugin: !schema.bundler || schema.bundler === 'rspack' ? true : false,