@nx/react 20.3.0-canary.20241210-ecba861 → 20.3.0-canary.20241212-0d1c960
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": "20.3.0-canary.
|
3
|
+
"version": "20.3.0-canary.20241212-0d1c960",
|
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": "20.3.0-canary.
|
42
|
-
"@nx/js": "20.3.0-canary.
|
43
|
-
"@nx/eslint": "20.3.0-canary.
|
44
|
-
"@nx/web": "20.3.0-canary.
|
45
|
-
"@nx/module-federation": "20.3.0-canary.
|
41
|
+
"@nx/devkit": "20.3.0-canary.20241212-0d1c960",
|
42
|
+
"@nx/js": "20.3.0-canary.20241212-0d1c960",
|
43
|
+
"@nx/eslint": "20.3.0-canary.20241212-0d1c960",
|
44
|
+
"@nx/web": "20.3.0-canary.20241212-0d1c960",
|
45
|
+
"@nx/module-federation": "20.3.0-canary.20241212-0d1c960",
|
46
46
|
"express": "^4.19.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3"
|
48
48
|
},
|
@@ -80,7 +80,9 @@ function addHotReload(config) {
|
|
80
80
|
// We remove potentially conflicting rules that target SVGs because we use @svgr/webpack loader
|
81
81
|
// See https://github.com/nrwl/nx/issues/14383
|
82
82
|
function removeSvgLoaderIfPresent(config) {
|
83
|
-
const svgLoaderIdx = config.module.rules.findIndex((rule) => typeof rule === 'object' &&
|
83
|
+
const svgLoaderIdx = config.module.rules.findIndex((rule) => typeof rule === 'object' &&
|
84
|
+
typeof rule.test !== 'undefined' &&
|
85
|
+
rule.test.toString().includes('svg'));
|
84
86
|
if (svgLoaderIdx === -1)
|
85
87
|
return;
|
86
88
|
config.module.rules.splice(svgLoaderIdx, 1);
|
@@ -264,7 +264,9 @@ async function applicationGeneratorInternal(host, schema) {
|
|
264
264
|
jsx: 'react-jsx',
|
265
265
|
module: 'esnext',
|
266
266
|
moduleResolution: 'bundler',
|
267
|
-
}
|
267
|
+
}, options.linter === 'eslint'
|
268
|
+
? ['eslint.config.js', 'eslint.config.cjs', 'eslint.config.mjs']
|
269
|
+
: undefined);
|
268
270
|
if (!options.skipFormat) {
|
269
271
|
await (0, devkit_1.formatFiles)(host);
|
270
272
|
}
|
@@ -51,15 +51,15 @@
|
|
51
51
|
},
|
52
52
|
{
|
53
53
|
"value": "scss",
|
54
|
-
"label": "SASS(.scss) [ https://sass-lang.com
|
54
|
+
"label": "SASS(.scss) [ https://sass-lang.com ]"
|
55
55
|
},
|
56
56
|
{
|
57
57
|
"value": "less",
|
58
|
-
"label": "LESS [ https://lesscss.org
|
58
|
+
"label": "LESS [ https://lesscss.org ]"
|
59
59
|
},
|
60
60
|
{
|
61
61
|
"value": "tailwind",
|
62
|
-
"label": "tailwind
|
62
|
+
"label": "tailwind [ https://tailwindcss.com/ ]"
|
63
63
|
},
|
64
64
|
{
|
65
65
|
"value": "styled-components",
|
@@ -55,6 +55,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
55
55
|
: undefined;
|
56
56
|
(0, devkit_1.writeJson)(host, `${options.projectRoot}/package.json`, {
|
57
57
|
name: options.importPath,
|
58
|
+
version: '0.0.1',
|
58
59
|
main: sourceEntry,
|
59
60
|
types: sourceEntry,
|
60
61
|
nx: {
|
@@ -63,6 +64,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
63
64
|
sourceRoot: `${options.projectRoot}/src`,
|
64
65
|
tags: options.parsedTags?.length ? options.parsedTags : undefined,
|
65
66
|
},
|
67
|
+
files: options.publishable ? ['dist', '!**/*.tsbuildinfo'] : undefined,
|
66
68
|
});
|
67
69
|
}
|
68
70
|
else {
|
@@ -220,7 +222,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
220
222
|
}
|
221
223
|
// Always run install to link packages.
|
222
224
|
if (options.isUsingTsSolutionConfig) {
|
223
|
-
tasks.push(() => (0, devkit_1.installPackagesTask)(host));
|
225
|
+
tasks.push(() => (0, devkit_1.installPackagesTask)(host, true));
|
224
226
|
}
|
225
227
|
tasks.push(() => {
|
226
228
|
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|