@@ -118,6 +118,11 @@ export async function scaffoldMonorepo(projectNameArg, options) {
118118 options . packageManager = options . packageManager || answers . packageManager || 'npm' ;
119119 if ( options . git === undefined ) options . git = answers . git ;
120120 if ( options . withActions === undefined ) options . withActions = answers . withActions ;
121+ // Commander defines '--no-install' as option 'install' defaulting to true, false when flag passed.
122+ if ( Object . prototype . hasOwnProperty . call ( options , 'install' ) ) {
123+ // Normalize to legacy noInstall boolean used below.
124+ options . noInstall = options . install === false ;
125+ }
121126
122127 console . log ( chalk . cyanBright ( `\n🚀 Creating ${ projectName } monorepo...\n` ) ) ;
123128
@@ -451,7 +456,8 @@ export async function scaffoldMonorepo(projectNameArg, options) {
451456 }
452457
453458 const pm = options . packageManager || 'npm' ;
454- if ( ! options . noInstall ) {
459+ // Commander maps --no-install to options.install = false
460+ if ( options . install !== false ) {
455461 console . log ( chalk . cyan ( `\n📦 Installing root dependencies using ${ pm } ...` ) ) ;
456462 const installCmd = pm === 'yarn' ? [ 'install' ] : pm === 'pnpm' ? [ 'install' ] : pm === 'bun' ? [ 'install' ] : [ 'install' ] ;
457463 try {
@@ -492,7 +498,7 @@ export async function scaffoldMonorepo(projectNameArg, options) {
492498 printBoxMessage ( [
493499 '🎉 Monorepo setup complete!' ,
494500 `cd ${ projectName } ` ,
495- options . noInstall ? `${ pm } install` : '' ,
501+ options . install === false ? `${ pm } install` : '' ,
496502 `${ pm } run list:services # quick list (fancy table)` ,
497503 `${ pm } run dev # run local node/frontend services` ,
498504 'docker compose up --build# run all via docker' ,
0 commit comments