fix(cli): path template loading

This commit is contained in:
Julien Oculi 2024-04-03 17:15:23 +02:00
parent 803b03fb11
commit 4ee9759ee0

View file

@ -21,7 +21,11 @@ const templatesDir = fromFileUrl(templatesDirUrl)
for await (
const template of Deno.readDir(templatesDir)
) {
if (template.isFile && template.name.endsWith('.tsx')) {
if (
template.isFile &&
template.name.endsWith('.tsx') &&
!template.name.startsWith('_')
) {
const modPath = new URL(
template.name,
`${import.meta.resolve('../templates')}/`,