@nx/react 22.6.0 → 22.6.2

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.6.0",
3
+ "version": "22.6.2",
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": {
@@ -37,28 +37,28 @@
37
37
  "minimatch": "10.2.4",
38
38
  "picocolors": "^1.1.0",
39
39
  "tslib": "^2.3.0",
40
- "@nx/devkit": "22.6.0",
41
- "@nx/js": "22.6.0",
42
- "@nx/eslint": "22.6.0",
43
- "@nx/web": "22.6.0",
44
- "@nx/module-federation": "22.6.0",
45
- "@nx/rollup": "22.6.0",
40
+ "@nx/devkit": "22.6.2",
41
+ "@nx/js": "22.6.2",
42
+ "@nx/eslint": "22.6.2",
43
+ "@nx/web": "22.6.2",
44
+ "@nx/module-federation": "22.6.2",
45
+ "@nx/rollup": "22.6.2",
46
46
  "express": "^4.21.2",
47
47
  "http-proxy-middleware": "^3.0.5",
48
48
  "semver": "^7.6.3"
49
49
  },
50
50
  "devDependencies": {
51
- "@nx/cypress": "22.6.0",
52
- "@nx/playwright": "22.6.0",
53
- "@nx/rsbuild": "22.6.0",
54
- "@nx/vite": "22.6.0",
55
- "@nx/vitest": "22.6.0",
56
- "@nx/webpack": "22.6.0",
57
- "@nx/storybook": "22.6.0",
58
- "nx": "22.6.0"
51
+ "@nx/cypress": "22.6.2",
52
+ "@nx/playwright": "22.6.2",
53
+ "@nx/rsbuild": "22.6.2",
54
+ "@nx/vite": "22.6.2",
55
+ "@nx/vitest": "22.6.2",
56
+ "@nx/webpack": "22.6.2",
57
+ "@nx/storybook": "22.6.2",
58
+ "nx": "22.6.2"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "22.6.0"
61
+ "@nx/vite": "22.6.2"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAsB5C,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAkIA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAsB5C,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAmIA"}
@@ -45,6 +45,9 @@ function nxComponentTestingPreset(pathToConfig, options) {
45
45
  ...{ framework: 'react', bundler: 'vite' },
46
46
  viteConfig: async () => {
47
47
  const viteConfigPath = findViteConfig(normalizedProjectRootPath);
48
+ // TODO(jack): Remove this cast when @nx/react switches to
49
+ // moduleResolution: "nodenext". Vite 8 ships ESM-only type
50
+ // declarations (.d.mts) not resolvable under moduleResolution: "node".
48
51
  const { mergeConfig, loadConfigFromFile, searchForWorkspaceRoot } = await Function('return import("vite")')();
49
52
  const resolved = await loadConfigFromFile({
50
53
  mode: 'watch',
@@ -1 +1 @@
1
- {"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAIvB,MAAM,YAAY,CAAC;AAYpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BAqDrE;AAiCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAYrD"}
1
+ {"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/application/lib/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAIvB,MAAM,YAAY,CAAC;AAYpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BAsDrE;AAiCD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAYrD"}
@@ -28,7 +28,7 @@ async function addLinting(host, options) {
28
28
  tasks.push(lintTask);
29
29
  if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
30
30
  if ((0, flat_config_1.useFlatConfig)(host)) {
31
- (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.appProjectRoot, 'flat/react');
31
+ (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.appProjectRoot, 'flat/react', { checkBaseConfig: true });
32
32
  // Add an empty rules object to users know how to add/override rules
33
33
  (0, eslint_file_1.addOverrideToLintConfig)(host, options.appProjectRoot, {
34
34
  files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
@@ -1 +1 @@
1
- {"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAW7C,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BA6DrE"}
1
+ {"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/library/lib/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAEL,iBAAiB,EAElB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAW7C,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BA8DrE"}
@@ -25,7 +25,7 @@ async function addLinting(host, options) {
25
25
  tasks.push(lintTask);
26
26
  if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
27
27
  if ((0, flat_config_1.useFlatConfig)(host)) {
28
- (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react');
28
+ (0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
29
29
  // Add an empty rules object to users know how to add/override rules
30
30
  (0, eslint_file_1.addOverrideToLintConfig)(host, options.projectRoot, {
31
31
  files: ['*.ts', '*.tsx', '*.js', '*.jsx'],