Skip to content

Commit

Permalink
fix(collect-updates): Match dotfiles when ignoring changes
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Feb 6, 2019
1 parent 2105000 commit 99eadc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -60,6 +60,7 @@ test("rooted package", () => {

test("ignore changes (globstars)", () => {
setup([
"packages/pkg-2/examples/.eslintrc.yaml",
"packages/pkg-2/examples/do-a-thing/index.js",
"packages/pkg-2/examples/and-another-thing/package.json",
]);
Expand Down
2 changes: 2 additions & 0 deletions utils/collect-updates/lib/make-diff-predicate.js
Expand Up @@ -13,6 +13,8 @@ function makeDiffPredicate(committish, execOpts, ignorePatterns = []) {
ignorePatterns.map(p =>
minimatch.filter(`!${p}`, {
matchBase: true,
// dotfiles inside ignored directories should also match
dot: true,
})
)
);
Expand Down

0 comments on commit 99eadc6

Please sign in to comment.