Skip to content

Commit

Permalink
fix(devkit): ensure ignore has been initialized in visitNotIgnoredFil…
Browse files Browse the repository at this point in the history
…es (#16820)
  • Loading branch information
AgentEnder authored and FrozenPandaz committed May 5, 2023
1 parent 4942eb4 commit a0fb8df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/devkit/src/generators/visit-not-ignored-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function visitNotIgnoredFiles(
ig.add(tree.read('.gitignore', 'utf-8'));
}
if (tree.exists('.nxignore')) {
ig ??= ignore();
ig.add(tree.read('.nxignore', 'utf-8'));
}
dirPath = normalizePathRelativeToRoot(dirPath, tree.root);
Expand Down

0 comments on commit a0fb8df

Please sign in to comment.