mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix: dependency installation output flow
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
"commander": "^13.1.0",
|
||||
"execa": "^8.0.1",
|
||||
"fs-extra": "^11.2.0",
|
||||
"gradient-string": "^3.0.0",
|
||||
"ora": "^7.0.1"
|
||||
"gradient-string": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
|
||||
@@ -64,10 +64,9 @@ export async function createProject(options: ProjectConfig) {
|
||||
if (shouldInstallDeps) {
|
||||
s.start(`📦 Installing dependencies using ${options.packageManager}...`);
|
||||
try {
|
||||
const { stdout } = await $({
|
||||
await $({
|
||||
cwd: projectDir,
|
||||
})`${options.packageManager} install`;
|
||||
log.step(stdout);
|
||||
s.stop("✅ Dependencies installed successfully");
|
||||
} catch (error) {
|
||||
s.stop("Failed to install dependencies");
|
||||
@@ -78,7 +77,6 @@ export async function createProject(options: ProjectConfig) {
|
||||
}
|
||||
}
|
||||
|
||||
log.success("✨ Project created successfully!\n");
|
||||
log.info(`${chalk.dim("Next steps:")}
|
||||
cd ${options.projectName}${!shouldInstallDeps ? `\n${options.packageManager} install` : ""}
|
||||
${options.packageManager === "npm" ? "npm run" : options.packageManager} dev`);
|
||||
|
||||
@@ -131,6 +131,7 @@ async function gatherConfig(
|
||||
hint: "Search engine optimization configuration",
|
||||
},
|
||||
],
|
||||
required: false,
|
||||
}),
|
||||
git: () =>
|
||||
flags.git !== undefined
|
||||
|
||||
Reference in New Issue
Block a user