Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 15, 2024
1 parent 6a7df74 commit 7d275a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/typegen.ts
Expand Up @@ -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)

0 comments on commit 7d275a6

Please sign in to comment.