Skip to content

Commit 6984cc2

Browse files
filipesilvahansl
authored andcommitted
ci: ignore typescript as an excessive root dep
1 parent fd1fefe commit 6984cc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/publish/validate_dependencies.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ const ANGULAR_PACKAGES = [
2929
'@angular/core'
3030
];
3131
const OPTIONAL_PACKAGES = [
32-
'@angular/service-worker'
32+
'@angular/service-worker',
33+
];
34+
const PEERDEP_HACK_PACKAGES = [
35+
'typescript',
3336
];
3437

3538

@@ -168,7 +171,8 @@ const missingRootDeps = overallDeps.filter(d => allRootDeps.indexOf(d) == -1)
168171
reportMissingDependencies(missingRootDeps);
169172

170173
const overRootDeps = allRootDeps.filter(d => overallDeps.indexOf(d) == -1)
171-
.filter(x => ANGULAR_PACKAGES.indexOf(x) == -1);
174+
.filter(x => ANGULAR_PACKAGES.indexOf(x) == -1)
175+
.filter(x => PEERDEP_HACK_PACKAGES.indexOf(x) == -1);
172176
reportExcessiveDependencies(overRootDeps);
173177

174178
process.exit(exitCode);

0 commit comments

Comments
 (0)