Skip to content

Commit 251dc65

Browse files
committed
chore: removing dir check
1 parent 1dba4e6 commit 251dc65

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

+1-11
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,7 @@ export async function createApp(
174174
) {
175175
environment.startRun()
176176

177-
let targetDir: string = cwd || ''
178-
if (!targetDir.length) {
179-
targetDir = resolve(process.cwd(), options.projectName)
180-
181-
if (environment.exists(targetDir)) {
182-
if (!silent) {
183-
environment.error(`Directory "${options.projectName}" already exists`)
184-
}
185-
return
186-
}
187-
}
177+
const targetDir: string = cwd || resolve(process.cwd(), options.projectName)
188178

189179
await writeFiles(environment, targetDir, options)
190180

0 commit comments

Comments
 (0)