@nx/angular 20.3.0-rc.0 → 20.4.0-canary.20241221-c7e2782
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/angular",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.4.0-canary.20241221-c7e2782",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"semver": "^7.5.3",
|
|
72
72
|
"tslib": "^2.3.0",
|
|
73
73
|
"webpack-merge": "^5.8.0",
|
|
74
|
-
"@nx/devkit": "20.
|
|
75
|
-
"@nx/js": "20.
|
|
76
|
-
"@nx/eslint": "20.
|
|
77
|
-
"@nx/webpack": "20.
|
|
78
|
-
"@nx/module-federation": "20.
|
|
79
|
-
"@nx/web": "20.
|
|
80
|
-
"@nx/workspace": "20.
|
|
74
|
+
"@nx/devkit": "20.4.0-canary.20241221-c7e2782",
|
|
75
|
+
"@nx/js": "20.4.0-canary.20241221-c7e2782",
|
|
76
|
+
"@nx/eslint": "20.4.0-canary.20241221-c7e2782",
|
|
77
|
+
"@nx/webpack": "20.4.0-canary.20241221-c7e2782",
|
|
78
|
+
"@nx/module-federation": "20.4.0-canary.20241221-c7e2782",
|
|
79
|
+
"@nx/web": "20.4.0-canary.20241221-c7e2782",
|
|
80
|
+
"@nx/workspace": "20.4.0-canary.20241221-c7e2782",
|
|
81
81
|
"piscina": "^4.4.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -6,10 +6,13 @@ const path_1 = require("path");
|
|
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
|
7
7
|
const version_utils_1 = require("../../utils/version-utils");
|
|
8
8
|
async function updateSsrSetup(tree, options, appName, typescriptConfiguration) {
|
|
9
|
+
const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
|
9
10
|
let project = (0, devkit_1.readProjectConfiguration)(tree, appName);
|
|
10
11
|
tree.rename((0, devkit_1.joinPathFragments)(project.sourceRoot, 'main.server.ts'), (0, devkit_1.joinPathFragments)(project.sourceRoot, 'bootstrap.server.ts'));
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
const pathToServerEntry = (0, devkit_1.joinPathFragments)(angularMajorVersion >= 19
|
|
13
|
+
? project.sourceRoot ?? (0, devkit_1.joinPathFragments)(project.root, 'src')
|
|
14
|
+
: project.root, 'server.ts');
|
|
15
|
+
tree.write(pathToServerEntry, `import('./${angularMajorVersion >= 19 ? '' : 'src/'}main.server');`);
|
|
13
16
|
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, '../files/common'), project.root, {
|
|
14
17
|
appName,
|
|
15
18
|
browserBundleOutput: project.targets.build.options.outputPath,
|
|
@@ -6,12 +6,15 @@ const path_1 = require("path");
|
|
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
|
7
7
|
const version_utils_1 = require("../../utils/version-utils");
|
|
8
8
|
async function updateSsrSetup(tree, { appName, port, standalone, typescriptConfiguration, skipPackageJson, }) {
|
|
9
|
+
const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
|
9
10
|
let project = (0, devkit_1.readProjectConfiguration)(tree, appName);
|
|
10
11
|
tree.rename((0, devkit_1.joinPathFragments)(project.sourceRoot, 'main.server.ts'), (0, devkit_1.joinPathFragments)(project.sourceRoot, 'bootstrap.server.ts'));
|
|
11
|
-
|
|
12
|
+
const pathToServerEntry = (0, devkit_1.joinPathFragments)(angularMajorVersion >= 19
|
|
13
|
+
? project.sourceRoot ?? (0, devkit_1.joinPathFragments)(project.root, 'src')
|
|
14
|
+
: project.root, 'server.ts');
|
|
15
|
+
tree.write(pathToServerEntry, `import('./${angularMajorVersion >= 19 ? '' : 'src/'}main.server');`);
|
|
12
16
|
const browserBundleOutput = project.targets.build.options.outputPath;
|
|
13
17
|
const serverBundleOutput = project.targets.build.options.outputPath.replace(/\/browser$/, '/server');
|
|
14
|
-
const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
|
|
15
18
|
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, '../files/common'), project.root, {
|
|
16
19
|
appName,
|
|
17
20
|
browserBundleOutput,
|