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
This commit is contained in:
Alan Agius 2021-04-01 19:00:04 +02:00 committed by atscott
parent cd2961a3d8
commit 64b979e12b
3 changed files with 2 additions and 2 deletions

View File

@ -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));
});

View File

@ -58,7 +58,7 @@ export function main(
const cycles: ReferenceChain[] = [];
const checkedNodes = new WeakSet<ts.SourceFile>();
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));
});

0
packages/bazel/src/modify_tsconfig.js Normal file → Executable file
View File