From 409e24c2ea8633b558f29358ca64c00e25c29fac Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 11 Oct 2023 11:03:34 +0200 Subject: [PATCH] scripts/build-plugins-report: exclude changes to tests Signed-off-by: Patrik Oldsberg --- scripts/build-plugins-report.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/build-plugins-report.js b/scripts/build-plugins-report.js index 95e9592f18..7172d9dc48 100755 --- a/scripts/build-plugins-report.js +++ b/scripts/build-plugins-report.js @@ -81,8 +81,13 @@ async function main() { '--format=%an <%ae>;%s;%h;%as', '--', // ignore changes on README and package.json files - path.resolve(directoryPath, 'src', '**', '*.ts'), - path.resolve(directoryPath, 'src', '**', '*.tsx'), + path.posix.resolve(directoryPath, 'src'), + `:(exclude)${path.posix.resolve( + directoryPath, + 'src', + '**', + '*.test.*', + )}`, ); data = output