Skip to content

Commit 1d2908a

Browse files
committed
fix(@angular-devkit/build-angular): add service-worker as optional peer 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.
1 parent b3ccec1 commit 1d2908a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/angular_devkit/build_angular/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"peerDependencies": {
8282
"@angular/compiler-cli": "^11.0.0 || ^11.1.0-next",
8383
"@angular/localize": "^11.0.0 || ^11.1.0-next",
84+
"@angular/service-worker": "^11.0.0 || ^11.1.0-next",
8485
"karma": "^5.2.0 || ^6.0.0",
8586
"ng-packagr": "^11.0.0 || ^11.1.0-next",
8687
"protractor": "^7.0.0",
@@ -91,6 +92,9 @@
9192
"@angular/localize": {
9293
"optional": true
9394
},
95+
"@angular/service-worker": {
96+
"optional": true
97+
},
9498
"karma": {
9599
"optional": true
96100
},

0 commit comments

Comments
 (0)