Skip to content

Commit b6e638c

Browse files
clydinhansl
authored andcommitted
fix(@angular/pwa): support ng add with CLI 6.0.x
Fixes #11663
1 parent 98d4d30 commit b6e638c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/pwa/pwa/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function addManifestToAssetsConfig(options: PwaOptions) {
137137
}
138138

139139
export default function (options: PwaOptions): Rule {
140-
return (host: Tree) => {
140+
return (host: Tree, context: SchematicContext) => {
141141
const workspace = getWorkspace(host);
142142
if (!options.project) {
143143
throw new SchematicsException('Option "project" is required.');
@@ -167,6 +167,6 @@ export default function (options: PwaOptions): Rule {
167167
mergeWith(assetsTemplateSource),
168168
updateIndexFile(options),
169169
addManifestToAssetsConfig(options),
170-
]);
170+
])(host, context);
171171
};
172172
}

0 commit comments

Comments
 (0)