mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore: remove cdk testing from rollup globals (#7169)
Previously the `missingRollupGlobals` tslint rule checked every TS file in the `src/` directory. This meant that the `@angular/cdk/testing` package from spec files needs to be added there as well. With the recent switcht to Minimatch for our custom TSLint rules, the spec files are no longer linted and the testing package can be removed there.
This commit is contained in:
committed by
Jeremy Elbourn
parent
3948381d64
commit
248dee8265
@@ -42,7 +42,8 @@ export const rollupGlobals = {
|
||||
'@angular/common/testing': 'ng.common.testing',
|
||||
'@angular/http/testing': 'ng.http.testing',
|
||||
|
||||
|
||||
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
|
||||
'@angular/material-examples': 'ng.materialExamples',
|
||||
'@angular/material': 'ng.material',
|
||||
'@angular/cdk': 'ng.cdk',
|
||||
|
||||
@@ -50,11 +51,6 @@ export const rollupGlobals = {
|
||||
...rollupCdkEntryPoints,
|
||||
...rollupMatEntryPoints,
|
||||
|
||||
// Some packages are not really needed for the UMD bundles, but for the missingRollupGlobals rule.
|
||||
// TODO(devversion): remove by adding minimatch and better globbing to rules
|
||||
'@angular/cdk/testing': 'ng.cdk.testing',
|
||||
'@angular/material-examples': 'ng.materialExamples',
|
||||
|
||||
'rxjs/BehaviorSubject': 'Rx',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
|
||||
@@ -10,4 +10,4 @@ require('ts-node').register({
|
||||
// Add a noop rule so tslint doesn't complain.
|
||||
exports.Rule = class Rule extends Lint.Rules.AbstractRule {
|
||||
apply() {}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user