Skip to content

Commit

Permalink
fix(angular): delete src and e2e folders after transitioning to Nx fr…
Browse files Browse the repository at this point in the history
…om Angular

ISSUES CLOSED: nrwl#3944
  • Loading branch information
mandarini committed Nov 17, 2020
1 parent a1615e8 commit 110820a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/workspace/src/schematics/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ function moveExistingFiles(options: Schema) {
context.logger.info(
`Renamed ${oldAppSourceRoot} -> ${newAppSourceRoot}`
);
host.delete(oldAppSourceRoot);
} else {
context.logger.error(err);
throw err;
Expand All @@ -455,6 +456,7 @@ function moveExistingFiles(options: Schema) {
renameDirSyncInTree(host, oldE2eRoot, newE2eRoot, (err) => {
if (!err) {
context.logger.info(`Renamed ${oldE2eRoot} -> ${newE2eRoot}`);
host.delete(oldE2eRoot);
} else {
context.logger.error(err);
throw err;
Expand Down

0 comments on commit 110820a

Please sign in to comment.