Skip to content

Commit 00c8644

Browse files
alan-agius4clydin
authored andcommitted
fix(@schematics/angular): don't visit dot folders when running migrations
1 parent 665adee commit 00c8644

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/schematics/angular/migrations/update-10/rename-browserslist-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function* visit(directory: DirEntry): IterableIterator<string> {
1818
}
1919

2020
for (const path of directory.subdirs) {
21-
if (path === 'node_modules') {
21+
if (path === 'node_modules' || path.startsWith('.')) {
2222
continue;
2323
}
2424

packages/schematics/angular/migrations/update-10/solution-style-tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function* visitExtendedJsonFiles(directory: DirEntry): IterableIterator<[string,
3939
}
4040

4141
for (const path of directory.subdirs) {
42-
if (path === 'node_modules') {
42+
if (path === 'node_modules' || path.startsWith('.')) {
4343
continue;
4444
}
4545

packages/schematics/angular/migrations/update-8/update-lazy-module-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function* visit(directory: DirEntry): IterableIterator<ts.SourceFile> {
2929
}
3030

3131
for (const path of directory.subdirs) {
32-
if (path === 'node_modules') {
32+
if (path === 'node_modules' || path.startsWith('.')) {
3333
continue;
3434
}
3535

0 commit comments

Comments
 (0)