Skip to content

Commit

Permalink
Don't ignore output paths that contain all input (fixes #1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpb committed Apr 29, 2020
1 parent 58858b1 commit 2a5b2cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/EleventyFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ class EleventyFiles {
);
}

files = files.concat(TemplateGlob.map("!" + this.outputDir + "/**"));
// ignore output dir unless that would occlude all input
if (!TemplatePath.startsWithSubPath(this.inputDir, this.outputDir)) {
files = files.concat(TemplateGlob.map("!" + this.outputDir + "/**"));
}

return files;
}
Expand Down

0 comments on commit 2a5b2cd

Please sign in to comment.