Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@schematics/angular): skip lib npm install if skip package option
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin committed May 29, 2018
1 parent f59c9a1 commit e43031d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/schematics/angular/library/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ export default function (options: LibraryOptions): Rule {
project: options.name,
}),
(_tree: Tree, context: SchematicContext) => {
context.addTask(new NodePackageInstallTask());
if (!options.skipPackageJson) {
context.addTask(new NodePackageInstallTask());
}
},
])(host, context);
};
Expand Down

0 comments on commit e43031d

Please sign in to comment.