File tree 4 files changed +5
-2
lines changed
4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 16
16
{
17
17
"name" : " dts libdefs" ,
18
18
"path" : " build/*.d.ts" ,
19
- "limit" : " 39.4 kB" ,
19
+ "limit" : " 39.42 kB" ,
20
20
"brotli" : false ,
21
21
"gzip" : false
22
22
},
23
23
{
24
24
"name" : " vendor" ,
25
25
"path" : " build/vendor-*" ,
26
- "limit" : " 767.1 kB" ,
26
+ "limit" : " 767.12 kB" ,
27
27
"brotli" : false ,
28
28
"gzip" : false
29
29
},
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ The [globby](https://github.com/sindresorhus/globby) package.
268
268
269
269
``` js
270
270
const packages = await glob ([' package.json' , ' packages/*/package.json' ])
271
+ const markdowns = glob .sync (' *.md' ) // sync API shortcut
271
272
```
272
273
273
274
## ` which() `
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export const createRequire = _createRequire as unknown as (
41
41
export const globbyModule = {
42
42
convertPathToPattern,
43
43
globby,
44
+ sync : globbySync ,
44
45
globbySync,
45
46
globbyStream,
46
47
generateGlobTasksSync,
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ describe('vendor API', () => {
33
33
34
34
test ( 'globby() works' , async ( ) => {
35
35
assert . deepEqual ( await glob ( '*.md' ) , [ 'README.md' ] )
36
+ assert . deepEqual ( glob . sync ( '*.md' ) , [ 'README.md' ] )
36
37
} )
37
38
38
39
test ( 'fetch() works' , async ( ) => {
You can’t perform that action at this time.
0 commit comments