From 21225a057003f8edf321bb2fb6d9f7ba019a8592 Mon Sep 17 00:00:00 2001 From: Stephan Meijer Date: Thu, 12 Dec 2024 22:03:35 +0100 Subject: [PATCH] fix: ensure template glob doesn't evaluate to `false` (#303) --- packages/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/index.ts b/packages/cli/index.ts index 6c654b9..f0e4b54 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -104,7 +104,7 @@ const main = defineCommand({ }) : [process.cwd()]; - const templates = await glob(args.template ?? [], { + const templates = await glob(args.template || [], { expandDirectories: false, onlyDirectories: true, absolute: true,