build: update `@angular-devkit/build-angular` to use commit SHA (#41434)

This is a temporary workaround until the CLI version containing a fix for the regression caused by deacc74 is available on NPM.

Without this change CLI builds will fail with;
```
angularCompiler.getNextProgram is not a function
```

PR Close #41434
This commit is contained in:
Alan Agius 2021-04-12 09:16:27 +02:00 committed by Zach Arend
parent 28f1e1cc16
commit 852b5e366e
6 changed files with 391 additions and 953 deletions

View File

@ -181,5 +181,10 @@
"watchr": "^6.9.0",
"xregexp": "^5.0.2",
"yargs": "^16.2.0"
},
"// 1": "Needed until AIO moves to CLI version 12.",
"// 2": "Due to https://github.com/GoogleChromeLabs/worker-plugin/blob/049c3caea9f1fa00983c139480adf06ee24ce5d5/src/index.js#L20-L27 ",
"resolutions": {
"worker-plugin": "4.0.3"
}
}

View File

@ -13692,10 +13692,10 @@ worker-farm@^1.7.0:
dependencies:
errno "~0.1.7"
worker-plugin@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/worker-plugin/-/worker-plugin-5.0.0.tgz#113b5fe1f4a5d6a957cecd29915bedafd70bb537"
integrity sha512-AXMUstURCxDD6yGam2r4E34aJg6kW85IiaeX72hi+I1cxyaMUtrvVY6sbfpGKAj5e7f68Acl62BjQF5aOOx2IQ==
worker-plugin@4.0.3, worker-plugin@5.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/worker-plugin/-/worker-plugin-4.0.3.tgz#7c42e600d5931ad154d3d5f187a32446df64db0f"
integrity sha512-7hFDYWiKcE3yHZvemsoM9lZis/PzurHAEX1ej8PLCu818Rt6QqUAiDdxHPCKZctzmhqzPpcFSgvMCiPbtooqAg==
dependencies:
loader-utils "^1.1.0"

View File

@ -2,7 +2,7 @@
"cli-hello-world": {
"master": {
"uncompressed": {
"runtime-es2015": 1485,
"runtime-es2015": 1170,
"main-es2015": 138189,
"polyfills-es2015": 36964
}
@ -11,7 +11,7 @@
"cli-hello-world-ivy-minimal": {
"master": {
"uncompressed": {
"runtime-es2015": 1485,
"runtime-es2015": 1170,
"main-es2015": 17597,
"polyfills-es2015": 36709
}
@ -20,7 +20,7 @@
"cli-hello-world-ivy-compat": {
"master": {
"uncompressed": {
"runtime-es2015": 1485,
"runtime-es2015": 1170,
"main-es2015": 144579,
"polyfills-es2015": 36964
}
@ -29,7 +29,7 @@
"cli-hello-world-ivy-i18n": {
"master": {
"uncompressed": {
"runtime-es2015": 1485,
"runtime-es2015": 1170,
"main-es2015": 136546,
"polyfills-es2015": 37641
}
@ -48,7 +48,7 @@
"forms": {
"master": {
"uncompressed": {
"runtime-es2015": 1485,
"runtime-es2015": 1170,
"main-es2015": 162346,
"polyfills-es2015": 36975
}

View File

@ -45,6 +45,9 @@ for (let p of nodePackages) {
packages[p] = `file:${bazelMappings[p]}` || `file:${__dirname}/../../node_modules/${p}`;
}
// TODO(alan-agius4): remove once the main repo dependency on `@angular-devkut/build-angular` is `0.1200.0-next.9` or greater.
packages['@angular-devkit/build-angular'] = 'file:../../../node_modules/@angular-devkit/build-angular';
// Clean up previously run test
cd(__dirname);
rm('-rf', `demo`);

View File

@ -41,8 +41,9 @@
},
"// 1": "dependencies are used locally and by bazel",
"dependencies": {
"@angular/cli": "12.0.0-next.7",
"@angular-devkit/architect": "0.1200.0-next.7",
"@angular-devkit/build-angular": "0.1200.0-next.7",
"@angular-devkit/build-angular": "github:angular/angular-devkit-build-angular-builds#e0c1374b12cfc892844030431bc19f631c0086a5",
"@angular-devkit/build-optimizer": "0.1200.0-next.7",
"@angular-devkit/core": "12.0.0-next.7",
"@angular-devkit/schematics": "12.0.0-next.7",
@ -159,7 +160,6 @@
},
"// 2": "devDependencies are not used under Bazel. Many can be removed after test.sh is deleted.",
"devDependencies": {
"@angular/cli": "12.0.0-next.7",
"@bazel/bazelisk": "^1.7.3",
"@bazel/buildifier": "^4.0.1",
"@bazel/ibazel": "^0.15.6",

1314
yarn.lock

File diff suppressed because it is too large Load Diff