Skip to content

Commit

Permalink
fix(cli): app name is a placeholder again (QwikDev#4031)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanettin authored May 3, 2023
1 parent 6897d9d commit 3d17ffe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/create-qwik/create-interactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isCancel,
log,
} from '@clack/prompts';
import { bgBlue, red } from 'kleur/colors';
import { bgBlue, red, gray } from 'kleur/colors';
import type { CreateAppOptions } from '../qwik/src/cli/types';
import { backgroundInstallDeps } from '../qwik/src/cli/utils/install-deps';
import { createApp, getOutDir, logCreateAppResult } from './create-app';
Expand All @@ -27,10 +27,11 @@ export async function runCreateInteractiveCli() {
const defaultProjectName = './qwik-app';
const projectNameAnswer =
(await text({
message: 'Where would you like to create your new project?',
message: `Where would you like to create your new project? ${gray(
`(Use '.' or './' for current directory)`
)}`,
placeholder: defaultProjectName,
initialValue: defaultProjectName,
})) || '';
})) || defaultProjectName;

if (isCancel(projectNameAnswer)) {
cancel('Operation cancelled.');
Expand Down

0 comments on commit 3d17ffe

Please sign in to comment.