(
configJsonCallback: (
config: SerializedContinueConfig,
) => SerializedContinueConfig,
configYamlCallback: (config: ConfigYaml) => ConfigYaml,
)
| 277 | } |
| 278 | |
| 279 | export function editConfigFile( |
| 280 | configJsonCallback: ( |
| 281 | config: SerializedContinueConfig, |
| 282 | ) => SerializedContinueConfig, |
| 283 | configYamlCallback: (config: ConfigYaml) => ConfigYaml, |
| 284 | ): void { |
| 285 | if (fs.existsSync(getConfigYamlPath())) { |
| 286 | editConfigYaml(configYamlCallback); |
| 287 | } else if (fs.existsSync(getConfigJsonPath())) { |
| 288 | editConfigJson(configJsonCallback); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | function getMigrationsFolderPath(): string { |
| 293 | const migrationsPath = path.join(getContinueGlobalPath(), ".migrations"); |
no test coverage detected