(plan: InstallPlan, path: string = installPlanPath())
| 59 | |
| 60 | |
| 61 | export function writeInstallPlan(plan: InstallPlan, path: string = installPlanPath()): void { |
| 62 | mkdirSync(dirname(path), { recursive: true }); |
| 63 | writeFileSync(path, `${JSON.stringify(plan, null, 2)}\n`, { mode: 0o600 }); |
| 64 | } |
| 65 | |
| 66 | |
| 67 | export function readInstallPlan(path: string = installPlanPath()): InstallPlan | undefined { |
no test coverage detected