mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 21:42:38 +08:00
fix(@schematics/angular): don't visit dot folders when running migrations
This commit is contained in:
parent
665adeed87
commit
00c8644aa5
@ -18,7 +18,7 @@ function* visit(directory: DirEntry): IterableIterator<string> {
|
||||
}
|
||||
|
||||
for (const path of directory.subdirs) {
|
||||
if (path === 'node_modules') {
|
||||
if (path === 'node_modules' || path.startsWith('.')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ function* visitExtendedJsonFiles(directory: DirEntry): IterableIterator<[string,
|
||||
}
|
||||
|
||||
for (const path of directory.subdirs) {
|
||||
if (path === 'node_modules') {
|
||||
if (path === 'node_modules' || path.startsWith('.')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ function* visit(directory: DirEntry): IterableIterator<ts.SourceFile> {
|
||||
}
|
||||
|
||||
for (const path of directory.subdirs) {
|
||||
if (path === 'node_modules') {
|
||||
if (path === 'node_modules' || path.startsWith('.')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user