From 64b979e12be01f366ae6aae94f64acf32dc679ed Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 1 Apr 2021 19:00:04 +0200 Subject: [PATCH] fix(dev-infra): exclude node_modules from circular dependency checks (#41407) With this change we exclude node_modules from circular dependency checks. PR Close #41407 --- dev-infra/ng-dev.js | 2 +- dev-infra/ts-circular-dependencies/index.ts | 2 +- packages/bazel/src/modify_tsconfig.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 packages/bazel/src/modify_tsconfig.js diff --git a/dev-infra/ng-dev.js b/dev-infra/ng-dev.js index 1a2e42a04c..e35e507a94 100755 --- a/dev-infra/ng-dev.js +++ b/dev-infra/ng-dev.js @@ -7068,7 +7068,7 @@ function main(approve, config, printWarnings) { const analyzer = new Analyzer(resolveModule); const cycles = []; const checkedNodes = new WeakSet(); - glob.sync(glob$1, { absolute: true }).forEach(filePath => { + glob.sync(glob$1, { absolute: true, ignore: ['**/node_modules/**'] }).forEach(filePath => { const sourceFile = analyzer.getSourceFile(filePath); cycles.push(...analyzer.findCycles(sourceFile, checkedNodes)); }); diff --git a/dev-infra/ts-circular-dependencies/index.ts b/dev-infra/ts-circular-dependencies/index.ts index f6eae504f9..279a281da5 100644 --- a/dev-infra/ts-circular-dependencies/index.ts +++ b/dev-infra/ts-circular-dependencies/index.ts @@ -58,7 +58,7 @@ export function main( const cycles: ReferenceChain[] = []; const checkedNodes = new WeakSet(); - globSync(glob, {absolute: true}).forEach(filePath => { + globSync(glob, {absolute: true, ignore: ['**/node_modules/**']}).forEach(filePath => { const sourceFile = analyzer.getSourceFile(filePath); cycles.push(...analyzer.findCycles(sourceFile, checkedNodes)); }); diff --git a/packages/bazel/src/modify_tsconfig.js b/packages/bazel/src/modify_tsconfig.js old mode 100644 new mode 100755