Commit 9e7ba25
build: try/catch the @angular/bazel rules_nodejs 1.0.0 patch (#18118)
This is needed for the material unit test to pass on angular repo in angular/angular#34589 otherwise the patch fails (since the changes are already made in that context) and throws and the CI job fails with:
```
if (config.fatal) throw e;
^
Error: exec:
at Object.error (/tmp/material2/node_modules/shelljs/src/common.js:110:27)
at execSync (/tmp/material2/node_modules/shelljs/src/exec.js:102:12)
at String._exec (/tmp/material2/node_modules/shelljs/src/exec.js:205:12)
at String.<anonymous> (/tmp/material2/node_modules/shelljs/src/common.js:335:23)
at applyPatch (/tmp/material2/tools/bazel/postinstall-patches.js:186:26)
at Object.<anonymous> (/tmp/material2/tools/bazel/postinstall-patches.js:35:1)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
error Command failed with exit code 1.
)
``1 parent f2cbc06 commit 9e7ba25
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments