From 241bcfac1295611a22933c6798124ef562424262 Mon Sep 17 00:00:00 2001 From: inverted-capital <69952973+inverted-capital@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:35:32 +1300 Subject: [PATCH] chore: fix excluded files in copyright checker tool (#672) the walk function passes the absolute path, not the relative one --- tasks/check_license.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/check_license.ts b/tasks/check_license.ts index b490768f4..2c21149f9 100644 --- a/tasks/check_license.ts +++ b/tasks/check_license.ts @@ -26,7 +26,7 @@ for await ( const { path } of walk(ROOT, { exts: EXTENSIONS, skip: [ - ...EXCLUDED_DIRS.map((path) => globToRegExp(path)), + ...EXCLUDED_DIRS.map((path) => globToRegExp(ROOT.pathname + path)), new RegExp("fresh.gen.ts"), ], includeDirs: false,