File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
firestore-bigquery-export/scripts/gen-schema-view/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ async function parseConfig(): Promise<CliConfig> {
174
174
program . outputHelp ( ) ;
175
175
process . exit ( 1 ) ;
176
176
}
177
+
177
178
return {
178
179
projectId : program . project ,
179
180
bigQueryProjectId : program . bigQueryProject ,
Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ function resolveFilePath(filePath: string): string {
63
63
64
64
function expandGlobs ( globs : string [ ] ) : string [ ] {
65
65
let results = [ ] ;
66
- for ( var i = 0 ; i < globs . length ; i ++ ) {
67
- const globResults = glob . sync ( globs [ i ] ) ;
66
+ // Split any comma-separated globs into individual paths
67
+ const expandedGlobs = globs . flatMap ( ( g ) => g . split ( "," ) . map ( ( s ) => s . trim ( ) ) ) ;
68
+ for ( const globPath of expandedGlobs ) {
69
+ const globResults = glob . sync ( globPath ) ;
68
70
results = results . concat ( globResults ) ;
69
71
}
70
72
return results ;
You can’t perform that action at this time.
0 commit comments