@nx/react 17.2.0-beta.5 → 17.2.0-beta.8
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": "17.2.0-beta.
|
|
3
|
+
"version": "17.2.0-beta.8",
|
|
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, 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": {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"file-loader": "^6.2.0",
|
|
38
38
|
"minimatch": "3.0.5",
|
|
39
39
|
"tslib": "^2.3.0",
|
|
40
|
-
"@nx/devkit": "17.2.0-beta.
|
|
41
|
-
"@nx/js": "17.2.0-beta.
|
|
42
|
-
"@nx/eslint": "17.2.0-beta.
|
|
43
|
-
"@nx/web": "17.2.0-beta.
|
|
44
|
-
"@nrwl/react": "17.2.0-beta.
|
|
40
|
+
"@nx/devkit": "17.2.0-beta.8",
|
|
41
|
+
"@nx/js": "17.2.0-beta.8",
|
|
42
|
+
"@nx/eslint": "17.2.0-beta.8",
|
|
43
|
+
"@nx/web": "17.2.0-beta.8",
|
|
44
|
+
"@nrwl/react": "17.2.0-beta.8"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
@@ -13,7 +13,6 @@ const add_styled_dependencies_1 = require("../../rules/add-styled-dependencies")
|
|
|
13
13
|
const devkit_1 = require("@nx/devkit");
|
|
14
14
|
const init_1 = require("../init/init");
|
|
15
15
|
const eslint_1 = require("@nx/eslint");
|
|
16
|
-
const lint_project_1 = require("@nx/eslint/src/generators/lint-project/lint-project");
|
|
17
16
|
const versions_1 = require("../../utils/versions");
|
|
18
17
|
const install_common_dependencies_1 = require("./lib/install-common-dependencies");
|
|
19
18
|
const create_ts_config_1 = require("../../utils/create-ts-config");
|
|
@@ -32,9 +31,6 @@ async function addLinting(host, options) {
|
|
|
32
31
|
(0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json'),
|
|
33
32
|
],
|
|
34
33
|
unitTestRunner: options.unitTestRunner,
|
|
35
|
-
eslintFilePatterns: [
|
|
36
|
-
(0, lint_project_1.mapLintPattern)(options.appProjectRoot, '{ts,tsx,js,jsx}', options.rootProject),
|
|
37
|
-
],
|
|
38
34
|
skipFormat: true,
|
|
39
35
|
rootProject: options.rootProject,
|
|
40
36
|
skipPackageJson: options.skipPackageJson,
|
|
@@ -15,7 +15,6 @@ async function addLinting(host, options) {
|
|
|
15
15
|
(0, path_1.joinPathFragments)(options.projectRoot, 'tsconfig.lib.json'),
|
|
16
16
|
],
|
|
17
17
|
unitTestRunner: options.unitTestRunner,
|
|
18
|
-
eslintFilePatterns: [`${options.projectRoot}/**/*.{ts,tsx,js,jsx}`],
|
|
19
18
|
skipFormat: true,
|
|
20
19
|
skipPackageJson: options.skipPackageJson,
|
|
21
20
|
setParserOptionsProject: options.setParserOptionsProject,
|
|
@@ -21,7 +21,7 @@ async function setupSsrForRemote(tree, options, appName) {
|
|
|
21
21
|
const serverOptions = project.targets.server?.options;
|
|
22
22
|
const serverOutputPath = serverOptions?.outputPath ??
|
|
23
23
|
(0, devkit_1.joinPathFragments)(originalOutputPath, 'server');
|
|
24
|
-
const serverOutputName = serverOptions?.
|
|
24
|
+
const serverOutputName = serverOptions?.outputFileName ?? 'main.js';
|
|
25
25
|
project.targets['serve-static'] = {
|
|
26
26
|
dependsOn: ['build', 'server'],
|
|
27
27
|
executor: 'nx:run-commands',
|
|
@@ -5,7 +5,7 @@ const module_federation_1 = require("@nx/webpack/src/utils/module-federation");
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const project_graph_1 = require("nx/src/project-graph/project-graph");
|
|
7
7
|
function getFunctionDeterminateRemoteUrl(isServer = false) {
|
|
8
|
-
const target =
|
|
8
|
+
const target = 'serve';
|
|
9
9
|
const remoteEntry = isServer ? 'server/remoteEntry.js' : 'remoteEntry.js';
|
|
10
10
|
return function (remote) {
|
|
11
11
|
const mappedStaticRemotesFromEnv = process.env
|