refactor(server): inject config options

This commit is contained in:
Dax Raad 2026-07-20 21:05:13 -04:00
commit 9445b4d940
17 changed files with 133 additions and 53 deletions

View file

@ -246,8 +246,8 @@ export const layer = (options?: Options) => Layer.unwrap(
}),
)
export function nodeWith(options?: Options) {
return makeLocationNode({ service: Service, layer: layer(options), deps: [FSUtil.node, Location.node, Ripgrep.node] })
}
export const node = nodeWith()
export const node = makeLocationNode({
service: Service,
layer: layer(),
deps: [FSUtil.node, Location.node, Ripgrep.node],
})

View file

@ -144,11 +144,7 @@ export const layer = (options?: Options) => Layer.effect(
}),
)
export function nodeWith(options?: Options) {
return makeGlobalNode({ service: Service, layer: layer(options), deps: [] })
}
export const node = nodeWith()
export const node = makeGlobalNode({ service: Service, layer: layer(), deps: [] })
function subscribeDirectory(
native: typeof import("@parcel/watcher") | undefined,