Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): add service-worker as optional pe…
Browse files Browse the repository at this point in the history
…er dependency

The `@angular/service-worker` package is used by the browser and app-shell builders.
By adding the package as an optional peer dependency, package managers can ensure that the package is available to import.
  • Loading branch information
clydin committed Jan 19, 2021
1 parent b3ccec1 commit 1d2908a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"peerDependencies": {
"@angular/compiler-cli": "^11.0.0 || ^11.1.0-next",
"@angular/localize": "^11.0.0 || ^11.1.0-next",
"@angular/service-worker": "^11.0.0 || ^11.1.0-next",
"karma": "^5.2.0 || ^6.0.0",
"ng-packagr": "^11.0.0 || ^11.1.0-next",
"protractor": "^7.0.0",
Expand All @@ -91,6 +92,9 @@
"@angular/localize": {
"optional": true
},
"@angular/service-worker": {
"optional": true
},
"karma": {
"optional": true
},
Expand Down

0 comments on commit 1d2908a

Please sign in to comment.