Skip to content

Commit 1f90f1f

Browse files
committed
fixup! fix(@schematics/angular): warn when production configuration is missing for service worker
1 parent 182d75d commit 1f90f1f

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/service-worker

1 file changed

+1
-1
lines changed

packages/schematics/angular/service-worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function getTsSourceFile(host: Tree, path: string): ts.SourceFile {
106106
}
107107

108108
const serviceWorkerSchematic: RuleFactory<ServiceWorkerOptions> = createProjectSchematic(
109-
async (options, { project, workspace, tree, logger }) => {
109+
async (options, { project, workspace, tree, context: { logger } }) => {
110110
if (project.extensions.projectType !== 'application') {
111111
throw new SchematicsException(`Service worker requires a project type of "application".`);
112112
}

0 commit comments

Comments
 (0)