fix(core): watch location only when vcs is present

This commit is contained in:
Dax Raad 2026-07-08 00:38:37 -04:00
parent 8d00a51766
commit 86e3828da6

View file

@ -46,7 +46,7 @@ const layer = Layer.effect(
.flatMap((item) => item.info.watcher?.ignore ?? [])
const home = path.resolve(location.directory) === path.resolve(os.homedir())
if (!home) {
if (!home && location.vcs) {
yield* watcher
.subscribe({
path: location.directory,