(filePath: string | undefined)
| 78 | } |
| 79 | |
| 80 | function readConfigFile(filePath: string | undefined): RuntimeNodeServeConfig { |
| 81 | if (!filePath) return {} |
| 82 | const raw = fs.readFileSync(filePath, "utf8") |
| 83 | const parsed = JSON.parse(raw) as unknown |
| 84 | return typeof parsed === "object" && parsed !== null ? (parsed as RuntimeNodeServeConfig) : {} |
| 85 | } |
| 86 | |
| 87 | function flagValue(args: string[], name: string): string | undefined { |
| 88 | const prefix = `${name}=` |
no outgoing calls
no test coverage detected