Skip to content

Commit 530485a

Browse files
committed
feat: removing existing directory check
1 parent b23d3a1 commit 530485a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/cta-engine/src/create-app.ts

-7
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,6 @@ export async function createApp(
335335
let targetDir: string = cwd || ''
336336
if (!targetDir.length) {
337337
targetDir = resolve(process.cwd(), options.projectName)
338-
339-
if (environment.exists(targetDir)) {
340-
if (!silent) {
341-
log.error(`Directory "${options.projectName}" already exists`)
342-
}
343-
return
344-
}
345338
}
346339

347340
const copyFiles = createCopyFiles(environment, targetDir)

0 commit comments

Comments
 (0)