@@ -270,6 +270,10 @@ export async function generateReadme(
270270 context : TemplateContext ,
271271) : Promise < void > {
272272 const lines : string [ ] = [ ] ;
273+ const installCommand =
274+ config . packageManager === 'pnpm'
275+ ? `${ config . packageManager } install`
276+ : `${ config . packageManager } install --force` ;
273277
274278 lines . push ( `# ${ config . projectName } ` ) ;
275279 lines . push ( '' ) ;
@@ -356,7 +360,7 @@ export async function generateReadme(
356360 lines . push ( '1. Install dependencies:' ) ;
357361 lines . push ( '' ) ;
358362 lines . push ( '```bash' ) ;
359- lines . push ( ` ${ config . packageManager } install` ) ;
363+ lines . push ( installCommand ) ;
360364 lines . push ( '```' ) ;
361365 lines . push ( '' ) ;
362366 lines . push ( '2. Copy environment variables:' ) ;
@@ -488,15 +492,15 @@ export async function generateReadme(
488492 lines . push ( '' ) ;
489493 lines . push ( '```' ) ;
490494 lines . push ( 'src/' ) ;
491- lines . push ( '├── app/ # Application setup' ) ;
492- lines . push ( '├── config/ # Configuration' ) ;
493- lines . push ( '├── lib/ # Core libraries' ) ;
494- lines . push ( '├── middlewares/ # Express middlewares' ) ;
495- lines . push ( '├── modules/ # Feature modules' ) ;
496- lines . push ( '├── plugins/ # Plugin system' ) ;
497- lines . push ( '├── routes/ # Route registration' ) ;
498- lines . push ( '├── utils/ # Utilities' ) ;
499- lines . push ( '└── main.ts # Entry point' ) ;
495+ lines . push ( '??? app/ # Application setup' ) ;
496+ lines . push ( '??? config/ # Configuration' ) ;
497+ lines . push ( '??? lib/ # Core libraries' ) ;
498+ lines . push ( '??? middlewares/ # Express middlewares' ) ;
499+ lines . push ( '??? modules/ # Feature modules' ) ;
500+ lines . push ( '??? plugins/ # Plugin system' ) ;
501+ lines . push ( '??? routes/ # Route registration' ) ;
502+ lines . push ( '??? utils/ # Utilities' ) ;
503+ lines . push ( '??? main.ts # Entry point' ) ;
500504 lines . push ( '```' ) ;
501505 lines . push ( '' ) ;
502506
0 commit comments