From 85e2c3d6f25e1bb0900d72f8ae3e3552501b8098 Mon Sep 17 00:00:00 2001 From: Quan Nguyen Ba Date: Fri, 8 Nov 2024 13:44:19 +0700 Subject: [PATCH] gitignore for infra --- packages/cli/src/actions/new.action.ts | 4 ++++ packages/cli/templates/infra/{.gitignore => gitignore} | 0 2 files changed, 4 insertions(+) rename packages/cli/templates/infra/{.gitignore => gitignore} (100%) 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