fix(config): handle unavailable config directories (#35632)

Co-authored-by: James Long <jlongster@users.noreply.github.com>
This commit is contained in:
James Long
2026-07-06 22:11:13 -04:00
committed by GitHub
parent 26885e7118
commit 254a481e5d
3 changed files with 30 additions and 3 deletions
+1
View File
@@ -293,6 +293,7 @@ const layer = Layer.effect(
})
const ensureGitignore = Effect.fn("Config.ensureGitignore")(function* (dir: string) {
yield* fs.ensureDir(dir)
const gitignore = path.join(dir, ".gitignore")
const hasIgnore = yield* fs.existsSafe(gitignore)
if (!hasIgnore) {