From f579ab6fe8ab47cc5ffc7e8ecfdd7bc7f76cc514 Mon Sep 17 00:00:00 2001 From: davidsoniaudin2-oss Date: Mon, 27 Jul 2026 17:21:48 +0000 Subject: [PATCH] config(backend): improve .gitignore to exclude build artifacts and logs Add patterns for: dist/, *.js.map, *.d.ts.map, build.log, *.pid, .env.*, logs and more. This ensures build artifacts and generated files are not tracked by git. Closes #976 --- backend/.gitignore | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/backend/.gitignore b/backend/.gitignore index d9cf47f3..12cec0cb 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,5 +1,39 @@ -node_modules -# Keep environment variables out of version control +# Dependencies +node_modules/ + +# Environment variables .env +.env.local +.env.production + +# Build output +dist/ +build/ + +# Source map files +*.js.map +*.d.ts.map + +# Logs +*.log +build.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +# Process ID files +*.pid +*.pid.lock + +# Generated files /src/generated/prismalogs/ +.prisma/ + +# OS files +.DS_Store +Thumbs.db + +# IDE +.vscode/ +.idea/