Skip to content

Commit 1d04647

Browse files
authored
fix: when generating app with no 'test' directory to move
1 parent 4bb41ac commit 1d04647

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/sub-app/sub-app.factory.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,8 @@ function moveDirectoryTo(
279279
tree.getDir(srcDir).visit((filePath: Path, file: Readonly<FileEntry>) => {
280280
const newFilePath = join(destination as Path, filePath);
281281
tree.create(newFilePath, file.content);
282-
tree.delete(filePath);
282+
tree.delete(srcDir);
283283
});
284-
tree.delete(srcDir);
285284
}
286285

287286
function addAppsToCliOptions(

0 commit comments

Comments
 (0)