(root?: string)
| 198 | } |
| 199 | |
| 200 | async function resolveDefaultConfig(root?: string): Promise<string | undefined> { |
| 201 | const jsPath = resolveConfig("observablehq.config.js", root); |
| 202 | if (existsSync(jsPath)) return jsPath; |
| 203 | const tsPath = resolveConfig("observablehq.config.ts", root); |
| 204 | if (existsSync(tsPath)) return await import("tsx/esm"), tsPath; // lazy tsx |
| 205 | } |
| 206 | |
| 207 | let cachedPages: {key: string; pages: Page[]} | null = null; |
| 208 |
no test coverage detected