From 4ee9759ee086b0522517259f5e7faa1b58ffba02 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Wed, 3 Apr 2024 17:15:23 +0200 Subject: [PATCH] fix(cli): path template loading --- cli/send.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/send.ts b/cli/send.ts index 6ec7b5b..7c69354 100644 --- a/cli/send.ts +++ b/cli/send.ts @@ -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')}/`,