@nx/react 19.6.0-canary.20240726-b3c67de → 19.6.0-canary.20240727-efa59fa
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": "19.6.0-canary.
|
3
|
+
"version": "19.6.0-canary.20240727-efa59fa",
|
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.6.0-canary.
|
43
|
-
"@nx/js": "19.6.0-canary.
|
44
|
-
"@nx/eslint": "19.6.0-canary.
|
45
|
-
"@nx/web": "19.6.0-canary.
|
46
|
-
"@nrwl/react": "19.6.0-canary.
|
42
|
+
"@nx/devkit": "19.6.0-canary.20240727-efa59fa",
|
43
|
+
"@nx/js": "19.6.0-canary.20240727-efa59fa",
|
44
|
+
"@nx/eslint": "19.6.0-canary.20240727-efa59fa",
|
45
|
+
"@nx/web": "19.6.0-canary.20240727-efa59fa",
|
46
|
+
"@nrwl/react": "19.6.0-canary.20240727-efa59fa"
|
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
|
}
|