MCPcopy Create free account
hub / github.com/arktypeio/arktype / nodeOptionPreloads

Function nodeOptionPreloads

ark/aot/worker.ts:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38// e.g. ["./setup.ts"] for NODE_OPTIONS="--import ./setup.ts"
39const nodeOptionPreloads = (): string[] =>
40 [
41 ...(process.env.NODE_OPTIONS ?? "").matchAll(
42 /(?:^|\s)(?:--import|--require|-r)(?:=|\s+)(\S+)/g
43 )
44 ].map(match => match[1])
45
46export const writeStoppedMessage = (
47 stopped: string,

Callers 1

writeStoppedMessageFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected