mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: infinite loop when determining dependencies on windows (#6884)
Fixes the `findstr` command going into an infinite loop on Windows due to it not being scoped to TS files.
This commit is contained in:
committed by
tinayuangao
parent
d3abd726e2
commit
5f4c44ebb1
@@ -92,7 +92,7 @@ function buildPackageImportStatementFindCommand(searchDirectory: string, package
|
||||
if (platform() === 'win32') {
|
||||
return {
|
||||
binary: 'findstr',
|
||||
args: ['/r', `from.'@angular/${packageName}/.*'`, `${searchDirectory}\\*`]
|
||||
args: ['/r', `from.'@angular/${packageName}/.*'`, `${searchDirectory}\\*.ts`]
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user