Commit c1cf161
build: fix standalone release checks failing due to missing global
Fixes the standalone release checks running outside of the `.ng-dev` config load, which
comes with the `global.ReleaseAction`. In standalone checks this variable is not
defined and therefore currently causes errors like:
```
/.ng-dev/release.ts:14
const actionProto = (global as any).ReleaseAction.prototype;
^
TypeError: Cannot read properties of undefined (reading 'prototype')
at Object.<anonymous>
```
We can fallback to the imported `ReleaseAction` constructor object if the global reference
is not provided. In such cases the monkey-patching is a noop anyway.
(cherry picked from commit 55549cc)ReleaseAction instance (#24509)1 parent 7b85cc0 commit c1cf161
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments