(teamName: string, teamFile: TeamFile)
| 164 | */ |
| 165 | // sync IO: called from sync context |
| 166 | function writeTeamFile(teamName: string, teamFile: TeamFile): void { |
| 167 | const teamDir = getTeamDir(teamName) |
| 168 | mkdirSync(teamDir, { recursive: true }) |
| 169 | writeFileSync(getTeamFilePath(teamName), jsonStringify(teamFile, null, 2)) |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Writes a team file (async — for tool handlers) |
no test coverage detected