From f71c04fc9bb275513578b981d57167514b81fc70 Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Mon, 30 Jan 2023 19:45:25 -0500 Subject: [PATCH] Fix bug with include resolution Signed-off-by: Liam Barry Allan --- cli/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index 93de5e3e..b2e5de44 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -221,8 +221,9 @@ function setupParser(cwd: string, globPath: string): Parser { if (includeFile.includes(`,`)) { includeFile = includeFile.split(`,`).join(`/`) + `.*`; } - - const files = glob.sync(globPath, { + + includeFile = path.join(`**`, includeFile); + const files = glob.sync(includeFile, { cwd, absolute: true, nocase: true,