@nx/react 19.5.3 → 19.5.5
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 +6 -6
- package/src/generators/application/files/base-vite/index.html__tmpl__ +1 -1
- package/src/generators/application/lib/create-application-files.js +4 -1
- package/src/generators/host/host.js +1 -0
- package/src/generators/host/schema.d.ts +1 -0
- package/src/generators/host/schema.json +6 -0
- package/src/generators/remote/schema.d.ts +1 -0
- package/src/generators/remote/schema.json +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "19.5.
|
|
3
|
+
"version": "19.5.5",
|
|
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": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"minimatch": "9.0.3",
|
|
40
40
|
"tslib": "^2.3.0",
|
|
41
41
|
"@module-federation/enhanced": "~0.2.3",
|
|
42
|
-
"@nx/devkit": "19.5.
|
|
43
|
-
"@nx/js": "19.5.
|
|
44
|
-
"@nx/eslint": "19.5.
|
|
45
|
-
"@nx/web": "19.5.
|
|
46
|
-
"@nrwl/react": "19.5.
|
|
42
|
+
"@nx/devkit": "19.5.5",
|
|
43
|
+
"@nx/js": "19.5.5",
|
|
44
|
+
"@nx/eslint": "19.5.5",
|
|
45
|
+
"@nx/web": "19.5.5",
|
|
46
|
+
"@nrwl/react": "19.5.5"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
@@ -34,6 +34,7 @@ function createApplicationFiles(host, options) {
|
|
|
34
34
|
const templateVariables = {
|
|
35
35
|
...(0, devkit_1.names)(options.name),
|
|
36
36
|
...options,
|
|
37
|
+
js: !!options.js, // Ensure this is defined in template
|
|
37
38
|
tmpl: '',
|
|
38
39
|
offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.appProjectRoot),
|
|
39
40
|
appTests,
|
|
@@ -117,7 +118,9 @@ function createApplicationFiles(host, options) {
|
|
|
117
118
|
}
|
|
118
119
|
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, styleSolutionSpecificAppFiles), options.appProjectRoot, templateVariables);
|
|
119
120
|
if (options.js) {
|
|
120
|
-
(0, devkit_1.toJS)(host
|
|
121
|
+
(0, devkit_1.toJS)(host, {
|
|
122
|
+
useJsx: options.bundler === 'vite',
|
|
123
|
+
});
|
|
121
124
|
}
|
|
122
125
|
(0, create_ts_config_1.createTsConfig)(host, options.appProjectRoot, 'app', options, relativePathToRootTsConfig);
|
|
123
126
|
}
|
|
@@ -177,6 +177,12 @@
|
|
|
177
177
|
"type": "boolean",
|
|
178
178
|
"description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
|
|
179
179
|
"default": true
|
|
180
|
+
},
|
|
181
|
+
"skipPackageJson": {
|
|
182
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"default": false,
|
|
185
|
+
"x-priority": "internal"
|
|
180
186
|
}
|
|
181
187
|
},
|
|
182
188
|
"required": ["name"],
|
|
@@ -176,6 +176,12 @@
|
|
|
176
176
|
"type": "boolean",
|
|
177
177
|
"description": "Whether the module federation configuration and webpack configuration files should use TS. When --js is used, this flag is ignored.",
|
|
178
178
|
"default": true
|
|
179
|
+
},
|
|
180
|
+
"skipPackageJson": {
|
|
181
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"default": false,
|
|
184
|
+
"x-priority": "internal"
|
|
179
185
|
}
|
|
180
186
|
},
|
|
181
187
|
"required": ["name"],
|