@angular/build 22.1.0 → 22.2.0-next.0
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": "@angular/build",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.2.0-next.0",
|
|
4
4
|
"description": "Official build system for Angular",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular CLI",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"builders": "builders.json",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ampproject/remapping": "2.3.0",
|
|
26
|
-
"@angular-devkit/architect": "0.
|
|
26
|
+
"@angular-devkit/architect": "0.2202.0-next.0",
|
|
27
27
|
"@babel/core": "8.0.1",
|
|
28
28
|
"@babel/helper-annotate-as-pure": "8.0.0",
|
|
29
29
|
"@babel/helper-split-export-declaration": "7.24.7",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"esbuild": "0.28.1",
|
|
35
35
|
"https-proxy-agent": "9.1.0",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
37
|
-
"listr2": "
|
|
38
|
-
"magic-string": "1.
|
|
37
|
+
"listr2": "11.0.0",
|
|
38
|
+
"magic-string": "1.1.0",
|
|
39
39
|
"mrmime": "2.0.1",
|
|
40
|
-
"oxc-parser": "0.
|
|
40
|
+
"oxc-parser": "0.142.0",
|
|
41
41
|
"parse5-html-rewriting-stream": "8.0.1",
|
|
42
42
|
"picomatch": "4.0.5",
|
|
43
|
-
"piscina": "5.
|
|
43
|
+
"piscina": "5.3.0",
|
|
44
44
|
"rolldown": "1.2.0",
|
|
45
|
-
"sass": "1.
|
|
45
|
+
"sass": "1.102.0",
|
|
46
46
|
"semver": "7.8.5",
|
|
47
47
|
"source-map-support": "0.5.21",
|
|
48
48
|
"tinyglobby": "0.2.17",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"lmdb": "3.5.6"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/compiler": "^22.0.0",
|
|
57
|
-
"@angular/compiler-cli": "^22.0.0",
|
|
58
|
-
"@angular/core": "^22.0.0",
|
|
59
|
-
"@angular/localize": "^22.0.0",
|
|
60
|
-
"@angular/platform-browser": "^22.0.0",
|
|
61
|
-
"@angular/platform-server": "^22.0.0",
|
|
62
|
-
"@angular/service-worker": "^22.0.0",
|
|
63
|
-
"@angular/ssr": "^22.
|
|
56
|
+
"@angular/compiler": "^22.0.0 || ^22.2.0-next.0",
|
|
57
|
+
"@angular/compiler-cli": "^22.0.0 || ^22.2.0-next.0",
|
|
58
|
+
"@angular/core": "^22.0.0 || ^22.2.0-next.0",
|
|
59
|
+
"@angular/localize": "^22.0.0 || ^22.2.0-next.0",
|
|
60
|
+
"@angular/platform-browser": "^22.0.0 || ^22.2.0-next.0",
|
|
61
|
+
"@angular/platform-server": "^22.0.0 || ^22.2.0-next.0",
|
|
62
|
+
"@angular/service-worker": "^22.0.0 || ^22.2.0-next.0",
|
|
63
|
+
"@angular/ssr": "^22.2.0-next.0",
|
|
64
64
|
"istanbul-lib-instrument": "^6.0.0",
|
|
65
65
|
"karma": "^6.4.0",
|
|
66
66
|
"less": "^4.2.0",
|
|
67
|
-
"ng-packagr": "^22.0.0",
|
|
67
|
+
"ng-packagr": "^22.0.0 || ^22.2.0-next.0",
|
|
68
68
|
"postcss": "^8.4.0",
|
|
69
69
|
"rollup": "^4.0.0",
|
|
70
70
|
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
@@ -11,18 +11,43 @@ exports.rewriteForBazel = rewriteForBazel;
|
|
|
11
11
|
const node_path_1 = require("node:path");
|
|
12
12
|
const bazelBinDirectory = process.env['BAZEL_BINDIR'];
|
|
13
13
|
const bazelExecRoot = process.env['JS_BINARY__EXECROOT'];
|
|
14
|
+
const execRootMarker = `${node_path_1.sep}execroot${node_path_1.sep}`;
|
|
15
|
+
/**
|
|
16
|
+
* Sandboxed actions run in a copy of the execroot whose absolute path differs from
|
|
17
|
+
* `JS_BINARY__EXECROOT`, so the effective execroot is derived from the working directory.
|
|
18
|
+
*/
|
|
19
|
+
function effectiveExecRoot() {
|
|
20
|
+
const cwd = process.cwd();
|
|
21
|
+
const markerIndex = cwd.indexOf(execRootMarker);
|
|
22
|
+
if (markerIndex === -1) {
|
|
23
|
+
return bazelExecRoot;
|
|
24
|
+
}
|
|
25
|
+
const workspaceEnd = cwd.indexOf(node_path_1.sep, markerIndex + execRootMarker.length);
|
|
26
|
+
return workspaceEnd === -1 ? cwd : cwd.slice(0, workspaceEnd);
|
|
27
|
+
}
|
|
14
28
|
function rewriteForBazel(path) {
|
|
15
29
|
if (!bazelBinDirectory || !bazelExecRoot) {
|
|
16
30
|
return path;
|
|
17
31
|
}
|
|
18
|
-
const
|
|
32
|
+
const execRoot = effectiveExecRoot() ?? bazelExecRoot;
|
|
33
|
+
const fromExecRoot = (0, node_path_1.relative)(execRoot, path);
|
|
19
34
|
if (!fromExecRoot.startsWith('..')) {
|
|
20
35
|
return path;
|
|
21
36
|
}
|
|
22
37
|
const fromBinDirectory = (0, node_path_1.relative)(bazelBinDirectory, path);
|
|
23
|
-
if (fromBinDirectory.startsWith('..')) {
|
|
24
|
-
return
|
|
38
|
+
if (!fromBinDirectory.startsWith('..')) {
|
|
39
|
+
return (0, node_path_1.join)(execRoot, fromBinDirectory);
|
|
40
|
+
}
|
|
41
|
+
// A path that realpath resolved out of a symlink-staged sandbox into the
|
|
42
|
+
// unsandboxed execroot: re-anchor its execroot-relative tail.
|
|
43
|
+
const markerIndex = path.indexOf(execRootMarker);
|
|
44
|
+
if (markerIndex !== -1) {
|
|
45
|
+
const tail = path.slice(markerIndex + execRootMarker.length);
|
|
46
|
+
const workspaceEnd = tail.indexOf(node_path_1.sep);
|
|
47
|
+
if (workspaceEnd !== -1) {
|
|
48
|
+
return (0, node_path_1.join)(execRoot, tail.slice(workspaceEnd + 1));
|
|
49
|
+
}
|
|
25
50
|
}
|
|
26
|
-
return
|
|
51
|
+
return path;
|
|
27
52
|
}
|
|
28
53
|
//# sourceMappingURL=rewrite-bazel-paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewrite-bazel-paths.js","sourceRoot":"","sources":["rewrite-bazel-paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"rewrite-bazel-paths.js","sourceRoot":"","sources":["rewrite-bazel-paths.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAwBH,0CA6BC;AAnDD,yCAAgD;AAEhD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACtD,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AACzD,MAAM,cAAc,GAAG,GAAG,eAAG,WAAW,eAAG,EAAE,CAAC;AAE9C;;;GAGG;AACH,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1B,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;QACvB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,eAAG,EAAE,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAE3E,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,QAAQ,GAAG,iBAAiB,EAAE,IAAI,aAAa,CAAC;IAEtD,MAAM,YAAY,GAAG,IAAA,oBAAQ,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC9C,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,gBAAgB,GAAG,IAAA,oBAAQ,EAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;IAC3D,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACvC,OAAO,IAAA,gBAAI,EAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IAED,yEAAyE;IACzE,8DAA8D;IAC9D,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACjD,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QAC7D,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,eAAG,CAAC,CAAC;QACvC,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;YACxB,OAAO,IAAA,gBAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -11,7 +11,7 @@ exports.normalizeCacheOptions = normalizeCacheOptions;
|
|
|
11
11
|
const node_fs_1 = require("node:fs");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
13
|
/** Version placeholder is replaced during the build process with actual package version */
|
|
14
|
-
const VERSION = '22.
|
|
14
|
+
const VERSION = '22.2.0-next.0';
|
|
15
15
|
function hasCacheMetadata(value) {
|
|
16
16
|
return (!!value &&
|
|
17
17
|
typeof value === 'object' &&
|
package/src/utils/version.js
CHANGED
|
@@ -30,7 +30,7 @@ function assertCompatibleAngularVersion(projectRoot) {
|
|
|
30
30
|
}
|
|
31
31
|
const angularCoreSemVer = new semver_1.SemVer(angularPkgJson['version']);
|
|
32
32
|
const { version, build, raw } = angularCoreSemVer;
|
|
33
|
-
const supportedAngularSemver = '^22.0.0';
|
|
33
|
+
const supportedAngularSemver = '^22.0.0 || ^22.2.0-next.0';
|
|
34
34
|
if (version.startsWith('0.0.0') || supportedAngularSemver.startsWith('0.0.0')) {
|
|
35
35
|
// Internal CLI and FW testing version.
|
|
36
36
|
return;
|