Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 31c2618

Browse files
clydinfilipesilva
authored andcommitted
fix(@schematics/angular): skip lib npm install if skip package option
1 parent f1e513f commit 31c2618

File tree

1 file changed

+3
-1
lines changed
  • packages/schematics/angular/library

1 file changed

+3
-1
lines changed

packages/schematics/angular/library/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ export default function (options: LibraryOptions): Rule {
246246
project: options.name,
247247
}),
248248
(_tree: Tree, context: SchematicContext) => {
249-
context.addTask(new NodePackageInstallTask());
249+
if (!options.skipPackageJson) {
250+
context.addTask(new NodePackageInstallTask());
251+
}
250252
},
251253
])(host, context);
252254
};

0 commit comments

Comments
 (0)