Skip to content

Commit

Permalink
Scope the workaround tighter to the corner-case
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Jul 24, 2023
1 parent 64d33f6 commit f667b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function getCollectionFilePaths(collectionConfig, source) {
// Work around for https://github.com/thecodrr/fdir/issues/92
// Globbing on `.` doesn't work, so we crawl using the absolute CWD
// and get the relative paths of results instead of the base paths.
if (crawlDirectory === '.' || crawlDirectory === './') {
if ((crawlDirectory === '.' || crawlDirectory === './') && collectionConfig.glob) {
crawler = crawler.withRelativePaths();
crawlDirectory = process.cwd();
}
Expand Down

0 comments on commit f667b60

Please sign in to comment.