File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11export { parse as parseArgs } from "https://deno.land/std@0.122.0/flags/mod.ts" ;
2+ export { expandGlob } from "https://deno.land/std@0.122.0/fs/mod.ts" ;
23export * as colors from "https://deno.land/std@0.122.0/fmt/colors.ts" ;
Original file line number Diff line number Diff line change 11// deno -A main.ts deps.ts --test="deno test"
22
3- import { colors , parseArgs } from "./deps.ts" ;
3+ import { colors , expandGlob , parseArgs } from "./deps.ts" ;
44import { udd , UddOptions , UddResult } from "./mod.ts" ;
55import { DenoLand } from "./registry.ts" ;
66
@@ -101,7 +101,12 @@ async function main(args: string[]) {
101101 return version ( ) ;
102102 }
103103
104- const depFiles : string [ ] = a . _ . map ( ( x ) => x . toString ( ) ) ;
104+ const depFiles : string [ ] = [ ] ;
105+ for ( const arg of a . _ . map ( ( x ) => x . toString ( ) ) ) {
106+ for await ( const file of expandGlob ( arg ) ) {
107+ depFiles . push ( file . path ) ;
108+ }
109+ }
105110
106111 if ( depFiles . length === 0 ) {
107112 help ( ) ;
You can’t perform that action at this time.
0 commit comments