/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/circular-deps-test.conf.cjs
32 строки
1 KB
Paul Gschwendtner
build: clear usages of `yarn` and update documentation
15 апр 2025, 09:37
15 апр 2025, 09:37
36a6667
Код
Авторство
О чём код?
/** * @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: '../', goldenFile: '../goldens/ts-circular-deps.json', glob: `./**/*.ts`, // Command that will be displayed if the golden needs to be updated. approveCommand: 'pnpm ts-circular-deps:approve', ignoreTypeOnlyChecks: true, resolveModule, }; /** * Custom module resolver that maps specifiers starting with `@angular/` to the * local packages folder. This ensures that imports using the module name can be * resolved. Cross entry-point/package circular dependencies are already be detected * by Bazel, but in rare cases, the module name is used for imports within entry-points. */ function resolveModule(specifier) { if (specifier.startsWith('@angular/')) { return path.join(__dirname, specifier.slice('@angular/'.length)); } return null; }