fix: run post-install hooks (#11403)

This commit is contained in:
Nikolay Vitkov 2023-11-16 16:43:39 +01:00 committed by GitHub
parent f9f31ce9fa
commit 3f6ca249ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,12 @@ function addDependencies(options: SchematicsOptions): Rule {
map(packages => {
context.logger.debug('Updating dependencies...');
addPackageJsonDependencies(tree, packages, DependencyType.Dev);
context.addTask(new NodePackageInstallTask());
context.addTask(
new NodePackageInstallTask({
// Trigger Post-Install hooks to download the browser
allowScripts: true,
})
);
return tree;
})