@@ -445,41 +445,67 @@ async function runContainerDev(options: ContainerDevOptions): Promise<void> {
445445
446446 // Step 1.5: Check bootstrap config and create missing env files if needed
447447 try {
448- const { analyzeBootstrapConfig, shouldCopyEnvFiles, getEnvFileForEnvironment } =
449- await import ( "../containerize/analyzers/bootstrap-analyzer" ) ;
448+ const {
449+ analyzeBootstrapConfig,
450+ shouldCopyEnvFiles,
451+ getEnvFileForEnvironment,
452+ } = await import ( "../containerize/analyzers/bootstrap-analyzer" ) ;
450453 const bootstrapConfig = await analyzeBootstrapConfig ( ) ;
451454
452- if ( bootstrapConfig . hasEnvFileConfig && shouldCopyEnvFiles ( bootstrapConfig ) ) {
453- const devEnvFile = getEnvFileForEnvironment ( bootstrapConfig , "development" ) ;
455+ if (
456+ bootstrapConfig . hasEnvFileConfig &&
457+ shouldCopyEnvFiles ( bootstrapConfig )
458+ ) {
459+ const devEnvFile = getEnvFileForEnvironment (
460+ bootstrapConfig ,
461+ "development" ,
462+ ) ;
454463
455464 // Check if required env file is missing
456465 if ( bootstrapConfig . missingEnvFiles . includes ( devEnvFile ) ) {
457466 console . log (
458- chalk . yellow ( `⚠️ Required env file missing: ${ devEnvFile } ` ) ,
467+ chalk . yellow (
468+ `⚠️ Required env file missing: ${ devEnvFile } ` ,
469+ ) ,
459470 ) ;
460471
461472 // Auto-create template if configured or prompt user
462473 if ( bootstrapConfig . autoCreateTemplate ) {
463- console . log ( chalk . gray ( ` Creating template ${ devEnvFile } ...` ) ) ;
464- await createEnvTemplate ( cwd , devEnvFile , "development" , bootstrapConfig . requiredVariables ) ;
474+ console . log (
475+ chalk . gray ( ` Creating template ${ devEnvFile } ...` ) ,
476+ ) ;
477+ await createEnvTemplate (
478+ cwd ,
479+ devEnvFile ,
480+ "development" ,
481+ bootstrapConfig . requiredVariables ,
482+ ) ;
465483 console . log ( chalk . green ( ` ✓ Created ${ devEnvFile } ` ) ) ;
466484 } else {
467485 // Provide helpful instructions
468486 console . log ( chalk . cyan ( "\n💡 To fix this, either:" ) ) ;
469487 console . log (
470- chalk . gray ( ` 1. Create ${ devEnvFile } with your environment variables` ) ,
488+ chalk . gray (
489+ ` 1. Create ${ devEnvFile } with your environment variables` ,
490+ ) ,
471491 ) ;
472492 console . log (
473- chalk . gray ( ` 2. Add autoCreateTemplate: true to envFileConfig in bootstrap` ) ,
493+ chalk . gray (
494+ ` 2. Add autoCreateTemplate: true to envFileConfig in bootstrap` ,
495+ ) ,
474496 ) ;
475497 console . log (
476- chalk . gray ( ` 3. Use skipFileLoading: true for container deployments` ) ,
498+ chalk . gray (
499+ ` 3. Use skipFileLoading: true for container deployments` ,
500+ ) ,
477501 ) ;
478502 console . log ( ) ;
479503
480504 // Still continue - the container might work if env vars are set in docker-compose
481505 console . log (
482- chalk . yellow ( ` ⚠️ Container may fail if ${ devEnvFile } is required` ) ,
506+ chalk . yellow (
507+ ` ⚠️ Container may fail if ${ devEnvFile } is required` ,
508+ ) ,
483509 ) ;
484510 console . log ( ) ;
485511 }
@@ -492,16 +518,16 @@ async function runContainerDev(options: ContainerDevOptions): Promise<void> {
492518 console . log ( chalk . gray ( ` • ${ varName } ` ) ) ;
493519 } ) ;
494520 console . log (
495- chalk . gray ( ` Set these in ${ devEnvFile } or docker-compose.development.yml` ) ,
521+ chalk . gray (
522+ ` Set these in ${ devEnvFile } or docker-compose.development.yml` ,
523+ ) ,
496524 ) ;
497525 console . log ( ) ;
498526 }
499527 }
500528 } catch ( error ) {
501529 // Non-fatal - continue with container startup
502- console . log (
503- chalk . gray ( " (Bootstrap analysis skipped)" ) ,
504- ) ;
530+ console . log ( chalk . gray ( " (Bootstrap analysis skipped)" ) ) ;
505531 }
506532
507533 // Step 2: Auto-run docker:setup if local dependencies exist
0 commit comments