(parts)
| 12 | * Keep this deterministic across platforms by using JSON with sorted keys. |
| 13 | */ |
| 14 | export function cacheKey(parts) { |
| 15 | const stable = JSON.stringify(parts, Object.keys(parts).sort()); |
| 16 | return sha256Hex(stable); |
| 17 | } |
| 18 | |
| 19 | export function ensureDir(dirPath) { |
| 20 | fs.mkdirSync(dirPath, { recursive: true }); |
no test coverage detected