@nx/react 22.1.0-canary.20251106-e9146c7 → 22.1.0-canary.20251111-647d751
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 +15 -14
- package/src/generators/application/lib/bundlers/add-vite.d.ts.map +1 -1
- package/src/generators/application/lib/bundlers/add-vite.js +4 -2
- package/src/generators/component-test/component-test.d.ts.map +1 -1
- package/src/generators/component-test/component-test.js +0 -2
- package/src/generators/library/library.d.ts.map +1 -1
- package/src/generators/library/library.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "22.1.0-canary.
|
|
3
|
+
"version": "22.1.0-canary.20251111-647d751",
|
|
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,26 +38,27 @@
|
|
|
38
38
|
"minimatch": "9.0.3",
|
|
39
39
|
"picocolors": "^1.1.0",
|
|
40
40
|
"tslib": "^2.3.0",
|
|
41
|
-
"@nx/devkit": "22.1.0-canary.
|
|
42
|
-
"@nx/js": "22.1.0-canary.
|
|
43
|
-
"@nx/eslint": "22.1.0-canary.
|
|
44
|
-
"@nx/web": "22.1.0-canary.
|
|
45
|
-
"@nx/module-federation": "22.1.0-canary.
|
|
46
|
-
"@nx/rollup": "22.1.0-canary.
|
|
41
|
+
"@nx/devkit": "22.1.0-canary.20251111-647d751",
|
|
42
|
+
"@nx/js": "22.1.0-canary.20251111-647d751",
|
|
43
|
+
"@nx/eslint": "22.1.0-canary.20251111-647d751",
|
|
44
|
+
"@nx/web": "22.1.0-canary.20251111-647d751",
|
|
45
|
+
"@nx/module-federation": "22.1.0-canary.20251111-647d751",
|
|
46
|
+
"@nx/rollup": "22.1.0-canary.20251111-647d751",
|
|
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.1.0-canary.
|
|
53
|
-
"@nx/playwright": "22.1.0-canary.
|
|
54
|
-
"@nx/rsbuild": "22.1.0-canary.
|
|
55
|
-
"@nx/vite": "22.1.0-canary.
|
|
56
|
-
"@nx/
|
|
57
|
-
"nx": "22.1.0-canary.
|
|
52
|
+
"@nx/cypress": "22.1.0-canary.20251111-647d751",
|
|
53
|
+
"@nx/playwright": "22.1.0-canary.20251111-647d751",
|
|
54
|
+
"@nx/rsbuild": "22.1.0-canary.20251111-647d751",
|
|
55
|
+
"@nx/vite": "22.1.0-canary.20251111-647d751",
|
|
56
|
+
"@nx/vitest": "22.1.0-canary.20251111-647d751",
|
|
57
|
+
"@nx/webpack": "22.1.0-canary.20251111-647d751",
|
|
58
|
+
"nx": "22.1.0-canary.20251111-647d751"
|
|
58
59
|
},
|
|
59
60
|
"optionalDependencies": {
|
|
60
|
-
"@nx/vite": "22.1.0-canary.
|
|
61
|
+
"@nx/vite": "22.1.0-canary.20251111-647d751"
|
|
61
62
|
},
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAwDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAwDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAyCb"}
|
|
@@ -50,8 +50,10 @@ async function setupViteConfiguration(tree, options, tasks) {
|
|
|
50
50
|
}, false);
|
|
51
51
|
}
|
|
52
52
|
async function setupVitestConfiguration(tree, options, tasks) {
|
|
53
|
-
const { createOrEditViteConfig
|
|
54
|
-
|
|
53
|
+
const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
54
|
+
(0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
55
|
+
const { configurationGenerator } = await Promise.resolve().then(() => require('@nx/vitest/generators'));
|
|
56
|
+
const vitestTask = await configurationGenerator(tree, {
|
|
55
57
|
uiFramework: 'react',
|
|
56
58
|
coverageProvider: 'v8',
|
|
57
59
|
project: options.projectName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-test.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component-test/component-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EACL,MAAM,YAAY,CAAC;AAUpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"component-test.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/component-test/component-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,IAAI,EACL,MAAM,YAAY,CAAC;AAUpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,iBAkB7B;AAqED,eAAe,sBAAsB,CAAC"}
|
|
@@ -11,8 +11,6 @@ const versions_1 = require("../../utils/versions");
|
|
|
11
11
|
let tsModule;
|
|
12
12
|
async function componentTestGenerator(tree, options) {
|
|
13
13
|
(0, devkit_1.ensurePackage)('@nx/cypress', versions_1.nxVersion);
|
|
14
|
-
const { assertMinimumCypressVersion } = await Promise.resolve().then(() => require('@nx/cypress/src/utils/versions'));
|
|
15
|
-
assertMinimumCypressVersion(10);
|
|
16
14
|
// normalize any windows paths
|
|
17
15
|
options.componentPath = options.componentPath.replace(/\\/g, '/');
|
|
18
16
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAgCpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAOjB,IAAI,EAGL,MAAM,YAAY,CAAC;AAgCpB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAMhE;AAED,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAwRxE;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -148,8 +148,10 @@ async function libraryGeneratorInternal(host, schema) {
|
|
|
148
148
|
else if (options.unitTestRunner === 'vitest' &&
|
|
149
149
|
options.bundler !== 'vite' // tests are already configured if bundler is vite
|
|
150
150
|
) {
|
|
151
|
-
const {
|
|
152
|
-
|
|
151
|
+
const { createOrEditViteConfig } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
|
|
152
|
+
(0, devkit_1.ensurePackage)('@nx/vitest', versions_1.nxVersion);
|
|
153
|
+
const { configurationGenerator } = await Promise.resolve().then(() => require('@nx/vitest/generators'));
|
|
154
|
+
const vitestTask = await configurationGenerator(host, {
|
|
153
155
|
uiFramework: 'react',
|
|
154
156
|
project: options.name,
|
|
155
157
|
coverageProvider: 'v8',
|