( environment: Environment, cwd: string, )
| 66 | } |
| 67 | |
| 68 | export async function getCurrentConfiguration( |
| 69 | environment: Environment, |
| 70 | cwd: string, |
| 71 | ) { |
| 72 | const persistedOptions = await readConfigFileFromEnvironment(environment, cwd) |
| 73 | if (!persistedOptions) { |
| 74 | environment.error( |
| 75 | 'There is no .cta.json file in your project.', |
| 76 | 'This is probably because this was created with an older version of create-tsrouter-app.', |
| 77 | ) |
| 78 | return undefined |
| 79 | } |
| 80 | |
| 81 | return persistedOptions |
| 82 | } |
| 83 | |
| 84 | export async function writeFiles( |
| 85 | environment: Environment, |
no test coverage detected