We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5e0b26 commit 4578a8cCopy full SHA for 4578a8c
packages/create-app/index.js
@@ -214,17 +214,19 @@ async function init() {
214
return
215
}
216
217
- const packageName = result.packageName
+ // user choice associated with prompts
218
+ const { framework, overwrite, packageName, variant } = result
219
+
220
const root = path.join(cwd, targetDir)
221
- if (result.overwrite) {
222
+ if (overwrite) {
223
emptyDir(root)
224
} else if (!fs.existsSync(root)) {
225
fs.mkdirSync(root)
226
227
228
// determine template
- template = template || result.variant || result.framework
229
+ template = variant || framework || template
230
231
console.log(`\nScaffolding project in ${root}...`)
232
0 commit comments