Skip to content

Commit

Permalink
Fix: Add glob to directory dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Jan 9, 2022
1 parent 7c92499 commit 55dd7c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/postcssHelper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ function dependencies(results) {
.map(dependencyGraph.add)
.forEach((dependency) => {
if (dependency.type === "dir-dependency") {
messages.push(dependency.dir);
const dir = dependency.glob ? path.join(dependency.dir, dependency.glob) : dependency.dir;
messages.push(dir);
} else {
messages.push(dependency.file);
}
Expand Down

0 comments on commit 55dd7c8

Please sign in to comment.