Skip to content

Commit

Permalink
fix(devkit): ensure ignore has been initialized in visitNotIgnoredFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 5, 2023
1 parent 53cc465 commit 4a27b2b
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 4a27b2b

Please sign in to comment.