Skip to content

Commit

Permalink
fix: do not force npm to install dependencies when using ng add (#515)
Browse files Browse the repository at this point in the history
Closes #513
  • Loading branch information
FabienDehopre authored Jan 13, 2025
1 parent e0cd81e commit a18f647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/testing-library/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ function addDependency(packageName: string, version: string, dependencyType: Nod
};
}

export function installDependencies(packageManager = 'npm') {
export function installDependencies() {
return (_tree: Tree, context: SchematicContext) => {
context.addTask(new NodePackageInstallTask({ packageManager }));
context.addTask(new NodePackageInstallTask());

context.logger.info(
`Correctly installed @testing-library/angular.
Expand Down

0 comments on commit a18f647

Please # to comment.