refactor: simplify package manager flags

This commit is contained in:
Aman Varshney
2025-02-14 12:50:45 +05:30
parent a2b2971582
commit aa3eaadd13
3 changed files with 21 additions and 6 deletions

View File

@@ -27,11 +27,12 @@ export function generateReproducibleCommand(config: ProjectConfig): string {
flags.push(chalk.red("--no-git"));
}
// Updated package manager flag handling
if (
config.packageManager &&
config.packageManager !== DEFAULT_CONFIG.packageManager
) {
flags.push(chalk.magenta(`--package-manager ${config.packageManager}`));
flags.push(chalk.magenta(`--${config.packageManager}`));
}
for (const feature of config.features) {