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:
parent
cd2961a3d8
commit
64b979e12b
|
@ -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));
|
||||
});
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue