mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-23 10:43:37 +00:00
chore: generate
This commit is contained in:
parent
b080f216a5
commit
174c0a742c
1 changed files with 3 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ function provide(node: Spec.Any, handlers: ReadonlyArray<LazyHandler>): Provided
|
|||
const target = path.resolve(cpuProfile)
|
||||
const previous = process.env.OPENCODE_CPU_PROFILE
|
||||
process.env.OPENCODE_CPU_PROFILE = target
|
||||
return yield* (node.name === "serve" ? CpuProfile.run(target, module.default(input)) : module.default(input)).pipe(
|
||||
return yield* (
|
||||
node.name === "serve" ? CpuProfile.run(target, module.default(input)) : module.default(input)
|
||||
).pipe(
|
||||
Effect.ensuring(
|
||||
Effect.sync(() => {
|
||||
if (previous === undefined) delete process.env.OPENCODE_CPU_PROFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue