Skip to content

Commit

Permalink
fix(nx): use correct schematic for angular components
Browse files Browse the repository at this point in the history
Fixes #1617
  • Loading branch information
mehrad-rafigh authored and vsavkin committed Jul 27, 2019
1 parent 5e69ef3 commit 6d6cbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ describe('app', () => {
const workspaceJson = readJsonInTree(result, 'workspace.json');

expect(workspaceJson.projects['my-app'].schematics).toEqual({
'@nrwl/workspace:component': {
'@nrwl/angular:component': {
style: 'scss'
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/src/schematics/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function updateProject(options: NormalizedSchema): Rule {
angularSchematicNames.forEach(type => {
const schematic = `@schematics/angular:${type}`;
if (schematic in fixedProject.schematics) {
fixedProject.schematics[`@nrwl/workspace:${type}`] =
fixedProject.schematics[`@nrwl/angular:${type}`] =
fixedProject.schematics[schematic];
delete fixedProject.schematics[schematic];
}
Expand Down

0 comments on commit 6d6cbf8

Please sign in to comment.