diff --git a/packages/cli/src/actions/new.action.ts b/packages/cli/src/actions/new.action.ts index 7251c2e..22e3838 100644 --- a/packages/cli/src/actions/new.action.ts +++ b/packages/cli/src/actions/new.action.ts @@ -58,6 +58,10 @@ export default async function newAction( const gitignore = path.join(destDir, 'gitignore') copyFileSync(gitignore, path.join(destDir, '.gitignore')) unlinkSync(gitignore) + // mv infra/gitignore infra/.gitignore + const infraGitignore = path.join(destDir, 'infra/gitignore') + copyFileSync(infraGitignore, path.join(destDir, 'infra/.gitignore')) + unlinkSync(infraGitignore) // cp .env.local .env copyFileSync(path.join(destDir, '.env.local'), path.join(destDir, '.env')) diff --git a/packages/cli/templates/infra/.gitignore b/packages/cli/templates/infra/gitignore similarity index 100% rename from packages/cli/templates/infra/.gitignore rename to packages/cli/templates/infra/gitignore