(state: UpdateState, stateFile?: string)
| 81 | } |
| 82 | |
| 83 | async function writeUpdateState(state: UpdateState, stateFile?: string): Promise<void> { |
| 84 | const path = await writeStateFilePath(stateFile); |
| 85 | await mkdir(dirname(path), { recursive: true }); |
| 86 | await writeFile(path, JSON.stringify(state, null, 2) + "\n", "utf-8"); |
| 87 | } |
| 88 | |
| 89 | export function compareVersions(a: string, b: string): number { |
| 90 | const normalize = (version: string): number[] => |
no test coverage detected