File tree 3 files changed +37
-14
lines changed
3 files changed +37
-14
lines changed Original file line number Diff line number Diff line change 68
68
"@types/debug" : " ^4.1.4" ,
69
69
"@types/find-up" : " ^2.1.1" ,
70
70
"@types/fs-extra" : " ^5.1.0" ,
71
- "@types/glob" : " ^7.1.1" ,
72
71
"@types/keccak" : " ^3.0.1" ,
73
72
"@types/lodash" : " ^4.14.123" ,
74
73
"@types/mocha" : " >=9.1.0" ,
125
124
"find-up" : " ^2.1.0" ,
126
125
"fp-ts" : " 1.19.3" ,
127
126
"fs-extra" : " ^7.0.1" ,
128
- "glob" : " 7.2.0" ,
129
127
"immutable" : " ^4.0.0-rc.12" ,
130
128
"io-ts" : " 1.10.4" ,
131
129
"json-stream-stringify" : " ^3.1.4" ,
140
138
"solc" : " 0.8.26" ,
141
139
"source-map-support" : " ^0.5.13" ,
142
140
"stacktrace-parser" : " ^0.1.10" ,
141
+ "tinyglobby" : " ^0.2.6" ,
143
142
"tsort" : " 0.0.1" ,
144
143
"undici" : " ^5.14.0" ,
145
144
"uuid" : " ^8.3.2" ,
Original file line number Diff line number Diff line change 1
- import type { IOptions as GlobOptions } from "glob" ;
2
-
1
+ import type { GlobOptions } from "tinyglobby" ;
3
2
import * as path from "path" ;
4
- import util from "util" ;
5
3
6
4
/**
7
5
* DO NOT USE THIS FUNCTION. It's SLOW and its semantics are optimized for
@@ -16,8 +14,7 @@ export async function glob(
16
14
pattern : string ,
17
15
options : GlobOptions = { }
18
16
) : Promise < string [ ] > {
19
- const { default : globModule } = await import ( "glob" ) ;
20
- const files = await util . promisify ( globModule ) ( pattern , options ) ;
17
+ const files = await ( await import ( 'tinyglobby' ) ) . glob ( [ pattern ] , options ) ;
21
18
return files . map ( path . normalize ) ;
22
19
}
23
20
@@ -26,6 +23,6 @@ export async function glob(
26
23
* @see glob
27
24
*/
28
25
export function globSync ( pattern : string , options : GlobOptions = { } ) : string [ ] {
29
- const files = require ( "glob" ) . sync ( pattern , options ) ;
26
+ const files = ( require ( 'tinyglobby' ) as typeof import ( 'tinyglobby' ) ) . globSync ( [ pattern ] , options ) ;
30
27
return files . map ( path . normalize ) ;
31
28
}
You can’t perform that action at this time.
0 commit comments