mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
ci: ignore typescript as an excessive root dep
This commit is contained in:
parent
fd1fefef8c
commit
6984cc2b68
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user