@nx/react 20.4.4 → 20.4.6
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.4.
|
3
|
+
"version": "20.4.6",
|
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.4.
|
42
|
-
"@nx/js": "20.4.
|
43
|
-
"@nx/eslint": "20.4.
|
44
|
-
"@nx/web": "20.4.
|
45
|
-
"@nx/module-federation": "20.4.
|
41
|
+
"@nx/devkit": "20.4.6",
|
42
|
+
"@nx/js": "20.4.6",
|
43
|
+
"@nx/eslint": "20.4.6",
|
44
|
+
"@nx/web": "20.4.6",
|
45
|
+
"@nx/module-federation": "20.4.6",
|
46
46
|
"express": "^4.21.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3",
|
48
48
|
"semver": "^7.6.3"
|
@@ -23,6 +23,7 @@ const set_defaults_1 = require("./lib/set-defaults");
|
|
23
23
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
24
24
|
const determine_entry_fields_1 = require("./lib/determine-entry-fields");
|
25
25
|
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
26
|
+
const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
|
26
27
|
async function libraryGenerator(host, schema) {
|
27
28
|
return await libraryGeneratorInternal(host, {
|
28
29
|
addPlugin: false,
|
@@ -53,7 +54,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
53
54
|
tasks.push(initTask);
|
54
55
|
if (options.isUsingTsSolutionConfig) {
|
55
56
|
(0, devkit_1.writeJson)(host, `${options.projectRoot}/package.json`, {
|
56
|
-
name: options.importPath,
|
57
|
+
name: options.importPath ?? options.name,
|
57
58
|
version: '0.0.1',
|
58
59
|
...(0, determine_entry_fields_1.determineEntryFields)(options),
|
59
60
|
nx: options.parsedTags?.length
|
@@ -184,10 +185,15 @@ async function libraryGeneratorInternal(host, schema) {
|
|
184
185
|
tasks.push(componentTask);
|
185
186
|
}
|
186
187
|
if (options.publishable || options.buildable) {
|
187
|
-
(0, devkit_1.
|
188
|
-
|
189
|
-
|
190
|
-
}
|
188
|
+
const projectConfiguration = (0, devkit_1.readProjectConfiguration)(host, options.name);
|
189
|
+
if (options.isUsingTsSolutionConfig) {
|
190
|
+
await (0, add_release_config_1.addReleaseConfigForTsSolution)(host, options.name, projectConfiguration);
|
191
|
+
}
|
192
|
+
else {
|
193
|
+
await (0, add_release_config_1.addReleaseConfigForNonTsSolution)(host, options.name, projectConfiguration);
|
194
|
+
}
|
195
|
+
(0, devkit_1.updateProjectConfiguration)(host, options.name, projectConfiguration);
|
196
|
+
tasks.push(await (0, add_release_config_1.releaseTasks)(host));
|
191
197
|
}
|
192
198
|
if (!options.skipPackageJson) {
|
193
199
|
const installReactTask = await (0, install_common_dependencies_1.installCommonDependencies)(host, options);
|