ci: ignore typescript as an excessive root dep

This commit is contained in:
Filipe Silva 2017-10-25 17:03:45 +01:00 committed by Hans
parent fd1fefef8c
commit 6984cc2b68

View File

@ -29,7 +29,10 @@ const ANGULAR_PACKAGES = [
'@angular/core' '@angular/core'
]; ];
const OPTIONAL_PACKAGES = [ const OPTIONAL_PACKAGES = [
'@angular/service-worker' '@angular/service-worker',
];
const PEERDEP_HACK_PACKAGES = [
'typescript',
]; ];
@ -168,7 +171,8 @@ const missingRootDeps = overallDeps.filter(d => allRootDeps.indexOf(d) == -1)
reportMissingDependencies(missingRootDeps); reportMissingDependencies(missingRootDeps);
const overRootDeps = allRootDeps.filter(d => overallDeps.indexOf(d) == -1) const overRootDeps = allRootDeps.filter(d => overallDeps.indexOf(d) == -1)
.filter(x => ANGULAR_PACKAGES.indexOf(x) == -1); .filter(x => ANGULAR_PACKAGES.indexOf(x) == -1)
.filter(x => PEERDEP_HACK_PACKAGES.indexOf(x) == -1);
reportExcessiveDependencies(overRootDeps); reportExcessiveDependencies(overRootDeps);
process.exit(exitCode); process.exit(exitCode);