https://github.com/angular/angular
Raw File
Tip revision: 2ab8e88924532ecd8a3459b8cb11b4ce9b7f847b authored by Alex Rickabaugh on 04 August 2020, 22:51:57 UTC
release: cut the v10.0.8 release
Tip revision: 2ab8e88
circular-deps-test.conf.js
/**
 * @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.io/license
 */

const path = require('path');

module.exports = {
  baseDir: '../',
  goldenFile: '../goldens/circular-deps/packages.json',
  // The test should not capture deprecated packages such as `http`, or the `webworker` platform.
  glob: `./!(http|platform-webworker|platform-webworker-dynamic)/**/*.ts`,
  // Command that will be displayed if the golden needs to be updated.
  approveCommand: 'yarn ts-circular-deps:approve',
  resolveModule: resolveModule
};

/**
 * 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.substr('@angular/'.length));
  }
  return null;
}
back to top