@nx/angular 23.0.0-rc.4 → 23.0.1
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/README.md
CHANGED
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
<div style="text-align: center;">
|
|
9
9
|
|
|
10
|
-
[](https://circleci.com/gh/nrwl/nx)
|
|
11
10
|
[]()
|
|
12
11
|
[](https://www.npmjs.com/package/nx)
|
|
13
12
|
[]()
|
|
14
13
|
[](http://commitizen.github.io/cz-cli/)
|
|
15
|
-
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
16
14
|
[](https://go.nx.dev/community)
|
|
15
|
+
[](https://nx.dev/docs/features/ci-features/sandboxing)
|
|
17
16
|
|
|
18
17
|
</div>
|
|
19
18
|
|
|
@@ -3,7 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.loadPlugins = loadPlugins;
|
|
4
4
|
exports.loadMiddleware = loadMiddleware;
|
|
5
5
|
exports.loadIndexHtmlTransformer = loadIndexHtmlTransformer;
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const node_path_1 = require("node:path");
|
|
6
9
|
const module_loader_1 = require("./module-loader");
|
|
10
|
+
// Nx strips {workspaceRoot}/ and expands {projectRoot} in option paths to a
|
|
11
|
+
// path relative to the workspace root, but require() would resolve that against
|
|
12
|
+
// this file's directory. Anchor it to the workspace root, while leaving bare
|
|
13
|
+
// package specifiers (e.g. an esbuild plugin shipped as a package) untouched.
|
|
14
|
+
function resolveModulePath(path) {
|
|
15
|
+
if ((0, node_path_1.isAbsolute)(path)) {
|
|
16
|
+
return path;
|
|
17
|
+
}
|
|
18
|
+
const candidate = (0, node_path_1.join)(devkit_1.workspaceRoot, path);
|
|
19
|
+
return (0, node_fs_1.existsSync)(candidate) ? candidate : path;
|
|
20
|
+
}
|
|
7
21
|
async function loadPlugins(plugins, tsConfig) {
|
|
8
22
|
if (!plugins?.length) {
|
|
9
23
|
return [];
|
|
@@ -12,7 +26,7 @@ async function loadPlugins(plugins, tsConfig) {
|
|
|
12
26
|
}
|
|
13
27
|
async function loadPlugin(pluginSpec, tsConfig) {
|
|
14
28
|
const pluginPath = typeof pluginSpec === 'string' ? pluginSpec : pluginSpec.path;
|
|
15
|
-
let plugin = await (0, module_loader_1.loadModule)(pluginPath, tsConfig);
|
|
29
|
+
let plugin = await (0, module_loader_1.loadModule)(resolveModulePath(pluginPath), tsConfig);
|
|
16
30
|
if (typeof plugin === 'function') {
|
|
17
31
|
plugin =
|
|
18
32
|
typeof pluginSpec === 'object' ? plugin(pluginSpec.options) : plugin();
|
|
@@ -23,8 +37,8 @@ async function loadMiddleware(middlewareFns, tsConfig) {
|
|
|
23
37
|
if (!middlewareFns?.length) {
|
|
24
38
|
return [];
|
|
25
39
|
}
|
|
26
|
-
return Promise.all(middlewareFns.map((fnPath) => (0, module_loader_1.loadModule)(fnPath, tsConfig)));
|
|
40
|
+
return Promise.all(middlewareFns.map((fnPath) => (0, module_loader_1.loadModule)(resolveModulePath(fnPath), tsConfig)));
|
|
27
41
|
}
|
|
28
42
|
async function loadIndexHtmlTransformer(indexHtmlTransformerPath, tsConfig) {
|
|
29
|
-
return (0, module_loader_1.loadModule)(indexHtmlTransformerPath, tsConfig);
|
|
43
|
+
return (0, module_loader_1.loadModule)(resolveModulePath(indexHtmlTransformerPath), tsConfig);
|
|
30
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.1",
|
|
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, 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": {
|
|
@@ -79,18 +79,18 @@
|
|
|
79
79
|
"semver": "^7.6.3",
|
|
80
80
|
"tslib": "^2.3.0",
|
|
81
81
|
"webpack-merge": "^5.8.0",
|
|
82
|
-
"@nx/
|
|
83
|
-
"@nx/js": "23.0.
|
|
84
|
-
"@nx/
|
|
85
|
-
"@nx/module-federation": "23.0.
|
|
86
|
-
"@nx/
|
|
87
|
-
"@nx/
|
|
88
|
-
"@nx/
|
|
82
|
+
"@nx/eslint": "23.0.1",
|
|
83
|
+
"@nx/js": "23.0.1",
|
|
84
|
+
"@nx/devkit": "23.0.1",
|
|
85
|
+
"@nx/module-federation": "23.0.1",
|
|
86
|
+
"@nx/rspack": "23.0.1",
|
|
87
|
+
"@nx/webpack": "23.0.1",
|
|
88
|
+
"@nx/web": "23.0.1"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@nx/cypress": "23.0.
|
|
92
|
-
"@nx/vitest": "23.0.
|
|
93
|
-
"nx": "23.0.
|
|
91
|
+
"@nx/cypress": "23.0.1",
|
|
92
|
+
"@nx/vitest": "23.0.1",
|
|
93
|
+
"nx": "23.0.1"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@angular/build": ">= 19.0.0 < 22.0.0",
|