Skip to content

Commit

Permalink
fix: fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 committed Dec 22, 2024
1 parent 3ee9eac commit aae8a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const cli = async () => {
}

// get the template dictionary name
const templateDir = path.resolve(url.fileURLToPath(import.meta.url), '../..', Object.values(Template).find((f) => f.name === template).template)
const templateDir = path.resolve(url.fileURLToPath(import.meta.url), '../..', Object.values(Template).find((f) => f.name === template)!.template)

// copy template project to target
await copyDirOrFile(templateDir, root)
Expand Down

0 comments on commit aae8a02

Please sign in to comment.