feat: fork ink and make it work nicely

This commit is contained in:
Brooklyn Nicholson 2026-04-11 11:29:08 -05:00
parent cb79018977
commit 8760faf991
139 changed files with 24952 additions and 140 deletions

View file

@ -0,0 +1,15 @@
import { useMemo } from 'react'
export type StderrHandle = {
stderr: NodeJS.WriteStream
write: (data: string) => boolean
}
export default function useStderr(): StderrHandle {
return useMemo(
() => ({
stderr: process.stderr,
write: data => process.stderr.write(data)
}),
[]
)
}