rename features to addons

This commit is contained in:
Aman Varshney
2025-03-06 14:35:01 +05:30
parent 3dbe289758
commit 5b13b04a20
17 changed files with 75 additions and 81 deletions

View File

@@ -16,8 +16,8 @@ export function displayConfig(config: Partial<ProjectConfig>) {
if (config.auth !== undefined) {
configDisplay.push(`${pc.blue("Authentication:")} ${config.auth}`);
}
if (config.features?.length) {
configDisplay.push(`${pc.blue("Features:")} ${config.features.join(", ")}`);
if (config.addons?.length) {
configDisplay.push(`${pc.blue("Addons:")} ${config.addons.join(", ")}`);
}
if (config.git !== undefined) {
configDisplay.push(`${pc.blue("Git Init:")} ${config.git}`);

View File

@@ -41,12 +41,12 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
flags.push(`--${config.packageManager}`);
}
if (config.features.length > 0) {
for (const feature of config.features) {
flags.push(`--${feature}`);
if (config.addons.length > 0) {
for (const addon of config.addons) {
flags.push(`--${addon}`);
}
} else {
flags.push("--no-features");
flags.push("--no-addons");
}
const baseCommand = "npx create-better-t-stack";