angular/packages/circular-deps-test.conf.js
Miles Malerba 347c3d5761 build: remove circular deps goldens (#60021)
Removes the circular dependencies golden file and cleans up the
associated pullapprove group. All circular dependencies have been
removed and no new ones may be added.

PR Close #60021
2025-02-19 21:01:32 +00:00

28 lines
720 B
JavaScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
const path = require('path');
module.exports = {
baseDir: '../',
glob: `./**/*.ts`,
resolveModule: resolveModule,
ignoreTypeOnlyChecks: true,
};
/**
* Custom module resolver that maps specifiers starting with `@angular/` to the
* local packages folder. This ensures that cross package/entry-point dependencies
* can be detected.
*/
function resolveModule(specifier) {
if (specifier.startsWith('@angular/')) {
return path.join(__dirname, specifier.slice('@angular/'.length));
}
return null;
}