Skip to content

Commit 9fd71f5

Browse files
committed
Move more questions behind the --extended flag
1 parent 19f2664 commit 9fd71f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ async function init() {
247247
const includeDocs = await togglePrompt('Include VitePress for documentation?', true)
248248
const includeGithubPages = includeDocs && await togglePrompt('Include GitHub Pages config for documentation?')
249249
const includePlayground = await togglePrompt('Include playground application for development?', true)
250-
const includeExamples = await togglePrompt('Include example code?', true, 'Yes', 'No, just configs')
251-
const includeAtAliases = await togglePrompt('Configure @ as an alias for src?')
252-
const includeTestVariable = await togglePrompt('Configure global __TEST__ variable?')
250+
const includeExamples = await togglePromptIf(extended, 'Include example code?', true, 'Yes', 'No, just configs')
251+
const includeAtAliases = await togglePromptIf(extended, 'Configure @ as an alias for src?')
252+
const includeTestVariable = await togglePromptIf(extended, 'Configure global __TEST__ variable?')
253253

254254
function suggestExtended() {
255255
if (!extended) {

0 commit comments

Comments
 (0)