@nx/react 21.3.0-canary.20250619-29b14b1 → 21.3.0-canary.20250621-57e70d0
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": "21.3.0-canary.
|
3
|
+
"version": "21.3.0-canary.20250621-57e70d0",
|
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,11 +38,11 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "21.3.0-canary.
|
42
|
-
"@nx/js": "21.3.0-canary.
|
43
|
-
"@nx/eslint": "21.3.0-canary.
|
44
|
-
"@nx/web": "21.3.0-canary.
|
45
|
-
"@nx/module-federation": "21.3.0-canary.
|
41
|
+
"@nx/devkit": "21.3.0-canary.20250621-57e70d0",
|
42
|
+
"@nx/js": "21.3.0-canary.20250621-57e70d0",
|
43
|
+
"@nx/eslint": "21.3.0-canary.20250621-57e70d0",
|
44
|
+
"@nx/web": "21.3.0-canary.20250621-57e70d0",
|
45
|
+
"@nx/module-federation": "21.3.0-canary.20250621-57e70d0",
|
46
46
|
"express": "^4.21.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3",
|
48
48
|
"semver": "^7.6.3"
|
@@ -89,7 +89,7 @@ function createRspackBuildTarget(options) {
|
|
89
89
|
styles: options.styledModule || !options.hasStyles
|
90
90
|
? []
|
91
91
|
: [
|
92
|
-
(0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/styles.${options.style}`),
|
92
|
+
(0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/styles.${options.style === 'tailwind' ? 'css' : options.style}`),
|
93
93
|
],
|
94
94
|
scripts: [],
|
95
95
|
configurations: {
|
@@ -151,7 +151,7 @@ function createBuildTarget(options) {
|
|
151
151
|
styles: options.styledModule || !options.hasStyles
|
152
152
|
? []
|
153
153
|
: [
|
154
|
-
(0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/styles.${options.style}`),
|
154
|
+
(0, devkit_1.joinPathFragments)(options.appProjectRoot, `src/styles.${options.style === 'tailwind' ? 'css' : options.style}`),
|
155
155
|
],
|
156
156
|
scripts: [],
|
157
157
|
webpackConfig: (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'webpack.config.js'),
|
@@ -45,6 +45,10 @@ async function libraryGeneratorInternal(host, schema) {
|
|
45
45
|
!schema.importPath) {
|
46
46
|
throw new Error(`For publishable libs you have to provide a proper "--importPath" which needs to be a valid npm package name (e.g. my-awesome-lib or @myorg/my-lib)`);
|
47
47
|
}
|
48
|
+
if (schema.simpleName !== undefined && schema.simpleName !== false) {
|
49
|
+
// TODO(v22): Remove simpleName as user should be using name.
|
50
|
+
devkit_1.logger.warn(`The "--simpleName" option is deprecated and will be removed in Nx 22. Please use the "--name" option to provide the exact name you want for the library.`);
|
51
|
+
}
|
48
52
|
if (!options.component) {
|
49
53
|
options.style = 'none';
|
50
54
|
}
|
@@ -189,7 +189,8 @@
|
|
189
189
|
"simpleName": {
|
190
190
|
"description": "Don't include the directory in the name of the module of the library.",
|
191
191
|
"type": "boolean",
|
192
|
-
"default": false
|
192
|
+
"default": false,
|
193
|
+
"x-deprecated": "Use the --name option to provide the exact name instead. This option will be removed in Nx 22."
|
193
194
|
},
|
194
195
|
"useProjectJson": {
|
195
196
|
"type": "boolean",
|