You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See supported `minimatch`[patterns](https://github.com/isaacs/minimatch#usage).
55
55
56
56
#### options
57
57
58
-
Type: `Object`
58
+
Type: `object`
59
59
60
60
See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-1) in addition to the ones below.
61
61
62
62
##### expandDirectories
63
63
64
-
Type: `boolean``Array``Object`<br>
64
+
Type: `boolean | string[] | object`<br>
65
65
Default: `true`
66
66
67
-
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like below:
67
+
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `object` with `files` and `extensions` like below:
68
68
69
69
```js
70
70
(async () => {
@@ -89,25 +89,25 @@ Default: `false`
89
89
90
90
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
91
91
92
-
### globby.sync(patterns, [options])
92
+
### globby.sync(patterns, options?)
93
93
94
-
Returns an `Array` of matching paths.
94
+
Returns `string[]` of matching paths.
95
95
96
-
### globby.generateGlobTasks(patterns, [options])
96
+
### globby.generateGlobTasks(patterns, options?)
97
97
98
-
Returns an `Array<Object>` in the format `{pattern: string, options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
98
+
Returns an `object[]` in the format `{pattern: string, options: Object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
99
99
100
100
Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
101
101
102
-
### globby.hasMagic(patterns, [options])
102
+
### globby.hasMagic(patterns, options?)
103
103
104
104
Returns a `boolean` of whether there are any special glob characters in the `patterns`.
105
105
106
106
Note that the options affect the results. If `noext: true` is set, then `+(a|b)` will not be considered a magic pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`, then that is considered magical, unless `nobrace: true` is set.
107
107
108
108
This function is backed by [`node-glob`](https://github.com/isaacs/node-glob#globhasmagicpattern-options)
109
109
110
-
### globby.gitignore([options])
110
+
### globby.gitignore(options?)
111
111
112
112
Returns a `Promise<(path: string) => boolean>` indicating whether a given path is ignored via a `.gitignore` file.
0 commit comments