We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d00497 commit 7e916a6Copy full SHA for 7e916a6
packages/schematics/angular/library/index.ts
@@ -20,6 +20,7 @@ import {
20
template,
21
url,
22
} from '@angular-devkit/schematics';
23
+import { NodePackageInstallTask } from '@angular-devkit/schematics/tasks';
24
import { WorkspaceSchema, getWorkspace, getWorkspacePath } from '../utility/config';
25
import { latestVersions } from '../utility/latest-versions';
26
import { Schema as LibraryOptions } from './schema';
@@ -219,6 +220,9 @@ export default function (options: LibraryOptions): Rule {
219
220
flat: true,
221
path: sourceDir,
222
}),
223
+ (_tree: Tree, context: SchematicContext) => {
224
+ context.addTask(new NodePackageInstallTask());
225
+ },
226
])(host, context);
227
};
228
}
0 commit comments