(environment: Environment)
| 151 | } |
| 152 | |
| 153 | export async function readCurrentProjectOptions(environment: Environment) { |
| 154 | const persistedOptions = await readConfigFileFromEnvironment( |
| 155 | environment, |
| 156 | process.cwd(), |
| 157 | ) |
| 158 | if (!persistedOptions) { |
| 159 | environment.error( |
| 160 | 'There is no .cta.json file in your project.', |
| 161 | `This is probably because this was created with an older version of create-tsrouter-app.`, |
| 162 | ) |
| 163 | process.exit(1) |
| 164 | } |
| 165 | return persistedOptions |
| 166 | } |
no test coverage detected