(projectCwd: string, state: ComparisonState)
| 48 | } |
| 49 | |
| 50 | function writeComparisonState(projectCwd: string, state: ComparisonState): void { |
| 51 | const dir = join(projectCwd, '.awel'); |
| 52 | if (!existsSync(dir)) { |
| 53 | mkdirSync(dir, { recursive: true }); |
| 54 | } |
| 55 | writeFileSync(getComparisonPath(projectCwd), JSON.stringify(state, null, 2) + '\n', 'utf-8'); |
| 56 | } |
| 57 | |
| 58 | function deleteComparisonState(projectCwd: string): void { |
| 59 | const path = getComparisonPath(projectCwd); |
no test coverage detected