From 84b36139fe6f6a931ceb321cdded0ce73c45e37a Mon Sep 17 00:00:00 2001 From: katerina Date: Thu, 29 Oct 2020 16:47:42 +0200 Subject: [PATCH] fix(angular): delete src and e2e folders after transitioning to Nx from Angular ISSUES CLOSED: #3944 --- packages/workspace/src/schematics/init/init.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/workspace/src/schematics/init/init.ts b/packages/workspace/src/schematics/init/init.ts index bc62d421a6df5..bfb58de93973b 100755 --- a/packages/workspace/src/schematics/init/init.ts +++ b/packages/workspace/src/schematics/init/init.ts @@ -458,6 +458,7 @@ function moveExistingFiles(options: Schema) { context.logger.info( `Renamed ${oldAppSourceRoot} -> ${newAppSourceRoot}` ); + host.delete(oldAppSourceRoot); } else { context.logger.error(err); throw err; @@ -473,6 +474,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;