@nx/react 23.0.0-beta.22 → 23.0.0-beta.23
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 +16 -16
- package/router-plugin.d.ts +1 -1
- package/router-plugin.d.ts.map +1 -1
- package/router-plugin.js +2 -1
- package/src/generators/init/init.js +1 -1
- package/src/plugins/router-plugin.d.ts +6 -2
- package/src/plugins/router-plugin.d.ts.map +1 -1
- package/src/plugins/router-plugin.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.23",
|
|
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
|
"@svgr/webpack": "^8.0.1",
|
|
38
38
|
"minimatch": "10.2.5",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/devkit": "23.0.0-beta.
|
|
41
|
-
"@nx/js": "23.0.0-beta.
|
|
42
|
-
"@nx/eslint": "23.0.0-beta.
|
|
43
|
-
"@nx/web": "23.0.0-beta.
|
|
44
|
-
"@nx/module-federation": "23.0.0-beta.
|
|
45
|
-
"@nx/rollup": "23.0.0-beta.
|
|
40
|
+
"@nx/devkit": "23.0.0-beta.23",
|
|
41
|
+
"@nx/js": "23.0.0-beta.23",
|
|
42
|
+
"@nx/eslint": "23.0.0-beta.23",
|
|
43
|
+
"@nx/web": "23.0.0-beta.23",
|
|
44
|
+
"@nx/module-federation": "23.0.0-beta.23",
|
|
45
|
+
"@nx/rollup": "23.0.0-beta.23",
|
|
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": "23.0.0-beta.
|
|
52
|
-
"@nx/playwright": "23.0.0-beta.
|
|
53
|
-
"@nx/rsbuild": "23.0.0-beta.
|
|
54
|
-
"@nx/vite": "23.0.0-beta.
|
|
55
|
-
"@nx/vitest": "23.0.0-beta.
|
|
56
|
-
"@nx/webpack": "23.0.0-beta.
|
|
57
|
-
"@nx/storybook": "23.0.0-beta.
|
|
58
|
-
"nx": "23.0.0-beta.
|
|
51
|
+
"@nx/cypress": "23.0.0-beta.23",
|
|
52
|
+
"@nx/playwright": "23.0.0-beta.23",
|
|
53
|
+
"@nx/rsbuild": "23.0.0-beta.23",
|
|
54
|
+
"@nx/vite": "23.0.0-beta.23",
|
|
55
|
+
"@nx/vitest": "23.0.0-beta.23",
|
|
56
|
+
"@nx/webpack": "23.0.0-beta.23",
|
|
57
|
+
"@nx/storybook": "23.0.0-beta.23",
|
|
58
|
+
"nx": "23.0.0-beta.23"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@nx/vite": "23.0.0-beta.
|
|
61
|
+
"@nx/vite": "23.0.0-beta.23"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
package/router-plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createNodesV2, ReactRouterPluginOptions, } from './src/plugins/router-plugin';
|
|
1
|
+
export { createNodes, createNodesV2, ReactRouterPluginOptions, } from './src/plugins/router-plugin';
|
|
2
2
|
//# sourceMappingURL=router-plugin.d.ts.map
|
package/router-plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-plugin.d.ts","sourceRoot":"","sources":["../../../packages/react/router-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,wBAAwB,GACzB,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"router-plugin.d.ts","sourceRoot":"","sources":["../../../packages/react/router-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,wBAAwB,GACzB,MAAM,6BAA6B,CAAC"}
|
package/router-plugin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
var router_plugin_1 = require("./src/plugins/router-plugin");
|
|
5
|
+
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return router_plugin_1.createNodes; } });
|
|
5
6
|
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return router_plugin_1.createNodesV2; } });
|
|
@@ -23,7 +23,7 @@ async function reactInitGenerator(tree, schema) {
|
|
|
23
23
|
process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
24
24
|
nxJson.useInferencePlugins !== false;
|
|
25
25
|
if (schema.useReactRouterPlugin && schema.addPlugin) {
|
|
26
|
-
await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react/router-plugin', router_plugin_1.
|
|
26
|
+
await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/react/router-plugin', router_plugin_1.createNodes, {
|
|
27
27
|
buildTargetName: ['build', 'react-router:build', 'react-router-build'],
|
|
28
28
|
devTargetName: ['dev', 'react-router:dev', 'react-router-dev'],
|
|
29
29
|
startTargetName: ['start', 'react-router-serve', 'react-router-start'],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CreateNodes } from '@nx/devkit';
|
|
2
2
|
export interface ReactRouterPluginOptions {
|
|
3
3
|
buildTargetName?: string;
|
|
4
4
|
devTargetName?: string;
|
|
@@ -7,5 +7,9 @@ export interface ReactRouterPluginOptions {
|
|
|
7
7
|
buildDepsTargetName?: string;
|
|
8
8
|
watchDepsTargetName?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const createNodes: CreateNodes<ReactRouterPluginOptions>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
13
|
+
*/
|
|
14
|
+
export declare const createNodesV2: CreateNodes<ReactRouterPluginOptions>;
|
|
11
15
|
//# sourceMappingURL=router-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/plugins/router-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"router-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/plugins/router-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,WAAW,EAQjB,MAAM,YAAY,CAAC;AAWpB,MAAM,WAAW,wBAAwB;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAUD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,wBAAwB,CA2F7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,uCAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -11,7 +11,7 @@ const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
|
11
11
|
const internal_2 = require("@nx/js/internal");
|
|
12
12
|
const pmCommand = (0, devkit_1.getPackageManagerCommand)();
|
|
13
13
|
const reactRouterConfigBlob = '**/react-router.config.{ts,js,cjs,cts,mjs,mts}';
|
|
14
|
-
exports.
|
|
14
|
+
exports.createNodes = [
|
|
15
15
|
reactRouterConfigBlob,
|
|
16
16
|
async (configFiles, options, context) => {
|
|
17
17
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
@@ -61,6 +61,10 @@ exports.createNodesV2 = [
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
];
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
66
|
+
*/
|
|
67
|
+
exports.createNodesV2 = exports.createNodes;
|
|
64
68
|
async function buildReactRouterTargets(configFilePath, projectRoot, options, context, siblingFiles, isUsingTsSolutionSetup) {
|
|
65
69
|
const namedInputs = (0, internal_1.getNamedInputs)(projectRoot, context);
|
|
66
70
|
const configPath = (0, path_1.join)(context.workspaceRoot, configFilePath);
|