fix(core): watch location only when vcs is present
This commit is contained in:
@@ -46,7 +46,7 @@ const layer = Layer.effect(
|
|||||||
.flatMap((item) => item.info.watcher?.ignore ?? [])
|
.flatMap((item) => item.info.watcher?.ignore ?? [])
|
||||||
const home = path.resolve(location.directory) === path.resolve(os.homedir())
|
const home = path.resolve(location.directory) === path.resolve(os.homedir())
|
||||||
|
|
||||||
if (!home) {
|
if (!home && location.vcs) {
|
||||||
yield* watcher
|
yield* watcher
|
||||||
.subscribe({
|
.subscribe({
|
||||||
path: location.directory,
|
path: location.directory,
|
||||||
|
|||||||
Reference in New Issue
Block a user