( projectDir: string, config: ProjectConfig = DEFAULT_PROJECT_CONFIG, )
| 77 | |
| 78 | /** Write `hyperframes.json` to a project directory. Overwrites if present. */ |
| 79 | export function writeProjectConfig( |
| 80 | projectDir: string, |
| 81 | config: ProjectConfig = DEFAULT_PROJECT_CONFIG, |
| 82 | ): void { |
| 83 | const path = projectConfigPath(projectDir); |
| 84 | writeFileSync(path, JSON.stringify(config, null, 2) + "\n", "utf-8"); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Load the project config for the given directory, falling back to defaults |
no test coverage detected