feat(cli): display pre-selected flags before prompts

This commit is contained in:
Aman Varshney
2025-02-14 11:54:20 +05:30
parent e758b26fbd
commit 0983fc1746
3 changed files with 97 additions and 57 deletions

View File

@@ -64,10 +64,10 @@ export async function createProject(options: ProjectConfig) {
if (shouldInstallDeps) {
s.start(`📦 Installing dependencies using ${options.packageManager}...`);
try {
await $({
const { stdout } = await $({
cwd: projectDir,
stdio: "inherit",
})`${options.packageManager} install`;
log.step(stdout);
s.stop("✅ Dependencies installed successfully");
} catch (error) {
s.stop("Failed to install dependencies");