fix(cli): path template loading
This commit is contained in:
parent
803b03fb11
commit
4ee9759ee0
|
@ -21,7 +21,11 @@ const templatesDir = fromFileUrl(templatesDirUrl)
|
||||||
for await (
|
for await (
|
||||||
const template of Deno.readDir(templatesDir)
|
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(
|
const modPath = new URL(
|
||||||
template.name,
|
template.name,
|
||||||
`${import.meta.resolve('../templates')}/`,
|
`${import.meta.resolve('../templates')}/`,
|
||||||
|
|
Loading…
Reference in a new issue