From ad88c90b781a173479a940354abfbc0ae17336c4 Mon Sep 17 00:00:00 2001 From: Florian PAUL Date: Thu, 5 Sep 2024 15:45:15 +0200 Subject: [PATCH] fix: glob not working on windows --- lib/prepare-file-list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/prepare-file-list.js b/lib/prepare-file-list.js index 4fa419f..5dd681e 100644 --- a/lib/prepare-file-list.js +++ b/lib/prepare-file-list.js @@ -116,7 +116,9 @@ function prepareFilesList(config) { // Check if the dir exists if (existsSync(directory)) { files.push( - ...glob.sync(path.join(directory, '**', `*.${fileExtensions[0]}`)) + ...glob.sync( + path.posix.join(directory, '**', `*.${fileExtensions[0]}`) + ) ) } else { console.error(