Skip to content

Commit 7eb59d3

Browse files
emilrowlandmmalerba
authored andcommitted
fix(core): added @angular/compiler as a peer dependency (#55610)
This fixes an issue with packages managers likes pmpm that will not link the @angular/compiler package to the @angular/core package if it is not listed as a peer dependency. I added it as optional peer dependency as it's only used in special cases. Fixes #38096 PR Close #55610
1 parent fd12220 commit 7eb59d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
"tslib": "^2.3.0"
2020
},
2121
"peerDependencies": {
22+
"@angular/compiler": "0.0.0-PLACEHOLDER",
2223
"rxjs": "^6.5.3 || ^7.4.0",
2324
"zone.js": "~0.15.0"
2425
},
26+
"peerDependenciesMeta": {
27+
"@angular/compiler": {
28+
"optional": true
29+
}
30+
},
2531
"repository": {
2632
"type": "git",
2733
"url": "https://github.com/angular/angular.git",

0 commit comments

Comments
 (0)