@nx/react 22.3.0-canary.20251209-6092031 → 22.3.0-canary.20251215-e864b6a

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-canary.20251209-6092031",
3
+ "version": "22.3.0-canary.20251215-e864b6a",
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-canary.20251209-6092031",
42
- "@nx/js": "22.3.0-canary.20251209-6092031",
43
- "@nx/eslint": "22.3.0-canary.20251209-6092031",
44
- "@nx/web": "22.3.0-canary.20251209-6092031",
45
- "@nx/module-federation": "22.3.0-canary.20251209-6092031",
46
- "@nx/rollup": "22.3.0-canary.20251209-6092031",
41
+ "@nx/devkit": "22.3.0-canary.20251215-e864b6a",
42
+ "@nx/js": "22.3.0-canary.20251215-e864b6a",
43
+ "@nx/eslint": "22.3.0-canary.20251215-e864b6a",
44
+ "@nx/web": "22.3.0-canary.20251215-e864b6a",
45
+ "@nx/module-federation": "22.3.0-canary.20251215-e864b6a",
46
+ "@nx/rollup": "22.3.0-canary.20251215-e864b6a",
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-canary.20251209-6092031",
53
- "@nx/playwright": "22.3.0-canary.20251209-6092031",
54
- "@nx/rsbuild": "22.3.0-canary.20251209-6092031",
55
- "@nx/vite": "22.3.0-canary.20251209-6092031",
56
- "@nx/vitest": "22.3.0-canary.20251209-6092031",
57
- "@nx/webpack": "22.3.0-canary.20251209-6092031",
58
- "nx": "22.3.0-canary.20251209-6092031"
52
+ "@nx/cypress": "22.3.0-canary.20251215-e864b6a",
53
+ "@nx/playwright": "22.3.0-canary.20251215-e864b6a",
54
+ "@nx/rsbuild": "22.3.0-canary.20251215-e864b6a",
55
+ "@nx/vite": "22.3.0-canary.20251215-e864b6a",
56
+ "@nx/vitest": "22.3.0-canary.20251215-e864b6a",
57
+ "@nx/webpack": "22.3.0-canary.20251215-e864b6a",
58
+ "nx": "22.3.0-canary.20251215-e864b6a"
59
59
  },
60
60
  "optionalDependencies": {
61
- "@nx/vite": "22.3.0-canary.20251209-6092031"
61
+ "@nx/vite": "22.3.0-canary.20251215-e864b6a"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,aAAa,EAId,MAAM,SAAS,CAAC;AA8CjB,eAAO,MAAM,IAAI,GAAI,SAAI,EAAE,YAAO,QAGhC,CAAC;AAqFH,eAAO,MAAM,OAAO,GAClB,wBAAwB,aAAkB,EAC1C,SAAS,GAAG,KACX,OAAO,CAAC,aAAa,CAuFvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,aAAa,EAId,MAAM,SAAS,CAAC;AAiDjB,eAAO,MAAM,IAAI,GAAI,SAAI,EAAE,YAAO,QAGhC,CAAC;AAqFH,eAAO,MAAM,OAAO,GAClB,wBAAwB,aAAkB,EAC1C,SAAS,GAAG,KACX,OAAO,CAAC,aAAa,CAuFvB,CAAC"}
@@ -35,12 +35,13 @@ function getClientEnvironment(mode) {
35
35
  PUBLIC_URL: mode === 'production' ? '.' : '',
36
36
  });
37
37
  // Stringify all values so we can feed into webpack DefinePlugin
38
- const stringified = {
39
- 'process.env': Object.keys(raw).reduce((env, key) => {
40
- env[key] = JSON.stringify(raw[key]);
41
- return env;
42
- }, {}),
43
- };
38
+ const stringified = Object.keys(raw).reduce((env, key) => {
39
+ env[`process.env.${key}`] = JSON.stringify(raw[key]);
40
+ return env;
41
+ },
42
+ // Provide a fallback for process.env itself to handle cases where code
43
+ // accesses process.env directly (e.g., in Cypress component testing)
44
+ { 'process.env': '{}' });
44
45
  return { stringified };
45
46
  }
46
47
  const core = (prev, options) => ({
@@ -7,7 +7,7 @@ import NxWelcome from "./nx-welcome";
7
7
  <%_ } _%>
8
8
 
9
9
  const StyledApp = styled.div`
10
- // Your style here
10
+ /* Your style here */
11
11
  `;
12
12
 
13
13
  <%_ if (classComponent) { _%>