Skip to content

Commit

Permalink
fix: always ignore .garden
Browse files Browse the repository at this point in the history
This is so that users that already have build products in the system
static/**/.garden dir don't run into "module is declared multiple times"
errors. The system .garden dir has since been moved to the project
level.
  • Loading branch information
eysi09 committed Jun 11, 2019
1 parent 62badf0 commit bb0e2df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions garden-service/src/util/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ export async function getIgnorer(rootPath: string, gardenDirPath: string): Promi
"node_modules",
".git",
"*.log",
// This refers to the old static/**/.garden dir for system services. We still ignore it to prevent
// "module is declared multiple times" issues for users that already have it.
".garden",
// This refers to the project level Garden cache dir. It defaults to .garden as well but we include it
// here as well since the value is not hard coded.
gardenDirRelPath,
// TODO Take a better look at the temp files mutagen creates
".mutagen-*",
// debug info folders and zip files generated by garden
"debug-info-*",
])
Expand Down

0 comments on commit bb0e2df

Please sign in to comment.