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
This commit is contained in:
Emil Rowland 2024-05-01 13:31:43 +00:00 committed by Miles Malerba
parent fd12220a35
commit 7eb59d3887

View file

@ -19,9 +19,15 @@
"tslib": "^2.3.0"
},
"peerDependencies": {
"@angular/compiler": "0.0.0-PLACEHOLDER",
"rxjs": "^6.5.3 || ^7.4.0",
"zone.js": "~0.15.0"
},
"peerDependenciesMeta": {
"@angular/compiler": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "https://github.com/angular/angular.git",