refactor(server): inject config options
This commit is contained in:
parent
0409e6884d
commit
9445b4d940
17 changed files with 133 additions and 53 deletions
|
|
@ -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],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue