Skip to content

Commit

Permalink
fix(schematics): ignore node_modules during affected
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored and vsavkin committed Nov 5, 2018
1 parent a1b8ef9 commit e681a18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/schematics/src/command-line/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ export function getProjectRoots(projectNames: string[]): string[] {
}

export function allFilesInDir(dirName: string): string[] {
// Ignore files in nested node_modules directories
if (dirName.endsWith('node_modules')) {
return [];
}

let res = [];
try {
fs.readdirSync(dirName).forEach(c => {
Expand Down

0 comments on commit e681a18

Please sign in to comment.