We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dba4e6 commit 251dc65Copy full SHA for 251dc65
packages/cta-engine/src/create-app.ts
@@ -174,17 +174,7 @@ export async function createApp(
174
) {
175
environment.startRun()
176
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
+ const targetDir: string = cwd || resolve(process.cwd(), options.projectName)
188
189
await writeFiles(environment, targetDir, options)
190
0 commit comments