refactor(ivy): move the flat module index generator to its own package (#27743)

This commit moves the FlatIndexGenerator to its own package, in preparation
to expand its capabilities and support re-exporting of private declarations
from NgModules.

PR Close #27743
This commit is contained in:
Alex Rickabaugh
2018-12-07 14:37:32 -08:00
committed by Kara Erickson
parent f6c91c5a5a
commit 37b716b298
10 changed files with 60 additions and 19 deletions

View File

@ -0,0 +1,18 @@
/**
* @license
* Copyright Google Inc. 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 TS = /\.tsx?$/i;
const D_TS = /\.d\.ts$/i;
export function isDtsPath(filePath: string): boolean {
return D_TS.test(filePath);
}
export function isNonDeclarationTsPath(filePath: string): boolean {
return TS.test(filePath) && !D_TS.test(filePath);
}