Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64d6f13

Browse files
alan-agius4matsko
authored andcommitted
fix(platform-browser): add missing peerDependency on @angular/animations (#35949)
`@angular/platform-browser/animations` has a dependency on `@angular/animations` however, this is not listed in `peerDependencies` With this change we add this package as an optional peerDependency as it's only required when using the `@angular/platform-browser/animations` entrypoint. Fixes #35888 PR Close #35949
1 parent fc71032 commit 64d6f13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎packages/platform-browser/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@
1313
"author": "angular",
1414
"license": "MIT",
1515
"peerDependencies": {
16+
"@angular/animations": "0.0.0-PLACEHOLDER",
1617
"@angular/core": "0.0.0-PLACEHOLDER",
1718
"@angular/common": "0.0.0-PLACEHOLDER",
1819
"tslib": "^1.10.0"
1920
},
21+
"peerDependenciesMeta": {
22+
"@angular/animations": {
23+
"optional": true
24+
}
25+
},
2026
"repository": {
2127
"type": "git",
2228
"url": "https://github.com/angular/angular.git",

0 commit comments

Comments
 (0)