Skip to content

Commit dccd3ad

Browse files
committed
build: patch core to include ngDevMode types
We still use an older version of Angular core here. We recently switched to a whole new bundling approach for APF that fixes this long-term issue; and going forward `ngDevMode` types are included. In the main branch we already benefit from this, and don't need the patch.
1 parent ccd4921 commit dccd3ad

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-1406867100
5-
package.json=-758723055
5+
package.json=1787535619
66
patches/@angular__compiler-cli.patch=-11405367
7-
pnpm-lock.yaml=1870533214
7+
patches/@angular__core.patch=213102054
8+
pnpm-lock.yaml=1876325103
89
pnpm-workspace.yaml=14857322
910
src/cdk/package.json=-908433069
1011
yarn.lock=-542661817

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ npm_translate_lock(
175175
data = [
176176
"//:package.json",
177177
"//:patches/@angular__compiler-cli.patch",
178+
"//:patches/@angular__core.patch",
178179
"//:pnpm-workspace.yaml",
179180
"//src/cdk:package.json",
180181
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@
187187
"pnpm": {
188188
"onlyBuiltDependencies": [],
189189
"patchedDependencies": {
190-
"@angular/compiler-cli@19.2.0": "patches/@angular__compiler-cli.patch"
190+
"@angular/compiler-cli@19.2.0": "patches/@angular__compiler-cli.patch",
191+
"@angular/core@19.2.0": "patches/@angular__core.patch"
191192
},
192193
"packageExtensions": {
193194
"@angular/animations": {

patches/@angular__core.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/index.d.ts b/index.d.ts
2+
index 08895d3..716db96 100755
3+
--- a/index.d.ts
4+
+++ b/index.d.ts
5+
@@ -4,6 +4,9 @@
6+
* License: MIT
7+
*/
8+
9+
+declare global {
10+
+ const ngDevMode: object|undefined;
11+
+}
12+
13+
import { BehaviorSubject } from 'rxjs';
14+
import { EnvironmentProviders as EnvironmentProviders_2 } from '@angular/core';

pnpm-lock.yaml

Lines changed: 14 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)