Skip to content

Commit

Permalink
fix: avoid resolving templates path
Browse files Browse the repository at this point in the history
  • Loading branch information
peterroe committed Jan 12, 2024
1 parent 336dc83 commit 671af72
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ interface Framework {
value: string
}
const colorPreset = [yellow, magenta, cyan, blue, red, green]
const templateNames = fse.readdirSync(resolve(__dirname, '../templates'))
const templateNames = [
'cli-starter',
'docs-starter',
'monorepo-starter',
'ts-starter',
'ts-starter-vite',
'vue-component-starter',
]

const FRAMEWORK: Array<Framework> = templateNames.map((t, i) => ({
title: colorPreset[i](t),
Expand Down

0 comments on commit 671af72

Please sign in to comment.