Skip to content

Commit d0db0ce

Browse files
committed
fix(@angular/pwa): support ng add with CLI 6.0.x
Fixes angular#11663
1 parent 682cae1 commit d0db0ce

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
@@ -136,7 +136,7 @@ function addManifestToAssetsConfig(options: PwaOptions) {
136136
}
137137

138138
export default function (options: PwaOptions): Rule {
139-
return (host: Tree) => {
139+
return (host: Tree, context: SchematicContext) => {
140140
const workspace = getWorkspace(host);
141141
if (!options.project) {
142142
throw new SchematicsException('Option "project" is required.');
@@ -166,6 +166,6 @@ export default function (options: PwaOptions): Rule {
166166
mergeWith(assetsTemplateSource),
167167
updateIndexFile(options),
168168
addManifestToAssetsConfig(options),
169-
]);
169+
])(host, context);
170170
};
171171
}

0 commit comments

Comments
 (0)