diff --git a/scripts/typegen.ts b/scripts/typegen.ts index 27a82fedc8..116e5106af 100644 --- a/scripts/typegen.ts +++ b/scripts/typegen.ts @@ -41,8 +41,9 @@ let dts = await flatConfigsToRulesDTS(configs, { includeAugmentation: false, }) -dts = ` -type ConfigNames = ${configNames.map(i => `'${i}'`).join(' | ')} -${dts}` +dts += ` +// Names of all the configs +export type ConfigNames = ${configNames.map(i => `'${i}'`).join(' | ')} +` await fs.writeFile('src/typegen.d.ts', dts)