From 948f05f79eaf8d27aedc5f4b00c7a739460265ac Mon Sep 17 00:00:00 2001 From: "Sean S. LeBlanc" Date: Thu, 23 Jan 2025 17:32:23 -0500 Subject: [PATCH 1/2] fix for inconsistent filepath separators --- src/EleventyFiles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EleventyFiles.js b/src/EleventyFiles.js index 321f3f83e..201f907b9 100644 --- a/src/EleventyFiles.js +++ b/src/EleventyFiles.js @@ -329,14 +329,14 @@ class EleventyFiles { return ret; } - _globSearch() { + async _globSearch() { let globs = this.getFileGlobs(); // returns a promise debug("Searching for: %o", globs); - return this.fileSystemSearch.search("templates", globs, { + return (await this.fileSystemSearch.search("templates", globs, { ignore: this.uniqueIgnores, - }); + })).map(i => i.replace(/\\/g, '/')); } getPathsWithVirtualTemplates(paths) { From 87fce15e9609e820c6775565c51597e452ba864e Mon Sep 17 00:00:00 2001 From: "Sean S. LeBlanc" Date: Fri, 24 Jan 2025 10:35:05 -0500 Subject: [PATCH 2/2] formatting --- src/EleventyFiles.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/EleventyFiles.js b/src/EleventyFiles.js index 201f907b9..2c79dff07 100644 --- a/src/EleventyFiles.js +++ b/src/EleventyFiles.js @@ -334,9 +334,10 @@ class EleventyFiles { // returns a promise debug("Searching for: %o", globs); - return (await this.fileSystemSearch.search("templates", globs, { + const results = await this.fileSystemSearch.search("templates", globs, { ignore: this.uniqueIgnores, - })).map(i => i.replace(/\\/g, '/')); + }); + return results.map(i => i.replace(/\\/g, '/')); } getPathsWithVirtualTemplates(paths) {