(options: Options)
| 16 | } |
| 17 | |
| 18 | function createPersistedOptions(options: Options): PersistedOptions { |
| 19 | /* eslint-disable unused-imports/no-unused-vars */ |
| 20 | const { chosenAddOns, framework, targetDir, ...rest } = options |
| 21 | /* eslint-enable unused-imports/no-unused-vars */ |
| 22 | return { |
| 23 | ...rest, |
| 24 | version: 1, |
| 25 | framework: options.framework.id, |
| 26 | chosenAddOns: options.chosenAddOns.map((addOn) => addOn.id), |
| 27 | starter: options.starter?.id ?? undefined, |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | export async function writeConfigFileToEnvironment( |
| 32 | environment: Environment, |
no outgoing calls
no test coverage detected