(opts?: NodeHostOptions)
| 139 | |
| 140 | // a development build's, whose arktype/runtime has Node print errors as issues |
| 141 | export const createDevelopmentHost = (opts?: NodeHostOptions): PrecompileHost => |
| 142 | createNodeHost({ |
| 143 | ...opts, |
| 144 | conditions: [...(opts?.conditions ?? nodeConditions), "development"] |
| 145 | }) |
| 146 | |
| 147 | export const readFile = (path: string): string | undefined => |
| 148 | existsSync(path) ? readFileSync(path, "utf8") : undefined |
no test coverage detected