@umijs/utils 4.0.0-rc.3 → 4.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/compiled/execa/index.js +1 -1
  2. package/compiled/fs-extra/index.d.ts +347 -116
  3. package/compiled/fs-extra/index.js +1 -1
  4. package/compiled/pkg-up/index.js +1 -1
  5. package/compiled/yargs-parser/index.js +1 -1
  6. package/dist/index.js +5 -1
  7. package/dist/installDeps.js +5 -1
  8. package/dist/npmClient.js +2 -2
  9. package/package.json +4 -4
  10. package/compiled/globby/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  11. package/compiled/globby/@nodelib/fs.scandir/out/index.d.ts +0 -12
  12. package/compiled/globby/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  13. package/compiled/globby/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  14. package/compiled/globby/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  15. package/compiled/globby/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  16. package/compiled/globby/@nodelib/fs.stat/out/index.d.ts +0 -12
  17. package/compiled/globby/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  18. package/compiled/globby/@nodelib/fs.stat/out/settings.d.ts +0 -16
  19. package/compiled/globby/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  20. package/compiled/globby/@nodelib/fs.walk/out/index.d.ts +0 -14
  21. package/compiled/globby/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  22. package/compiled/globby/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  23. package/compiled/globby/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  24. package/compiled/globby/@nodelib/fs.walk/out/settings.d.ts +0 -30
  25. package/compiled/globby/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  26. package/compiled/globby/LICENSE +0 -9
  27. package/compiled/globby/fast-glob/out/index.d.ts +0 -27
  28. package/compiled/globby/fast-glob/out/managers/tasks.d.ts +0 -22
  29. package/compiled/globby/fast-glob/out/settings.d.ts +0 -164
  30. package/compiled/globby/fast-glob/out/types/index.d.ts +0 -31
  31. package/compiled/globby/index.d.ts +0 -206
  32. package/compiled/globby/index.js +0 -37
  33. package/compiled/globby/package.json +0 -1
@@ -1,30 +0,0 @@
1
- /// <reference types="node" />
2
- import { EventEmitter } from 'events';
3
- import * as fsScandir from '../../../@nodelib/fs.scandir';
4
- import type Settings from '../settings';
5
- import type { Entry, Errno } from '../types';
6
- import Reader from './reader';
7
- declare type EntryEventCallback = (entry: Entry) => void;
8
- declare type ErrorEventCallback = (error: Errno) => void;
9
- declare type EndEventCallback = () => void;
10
- export default class AsyncReader extends Reader {
11
- protected readonly _settings: Settings;
12
- protected readonly _scandir: typeof fsScandir.scandir;
13
- protected readonly _emitter: EventEmitter;
14
- private readonly _queue;
15
- private _isFatalError;
16
- private _isDestroyed;
17
- constructor(_root: string, _settings: Settings);
18
- read(): EventEmitter;
19
- get isDestroyed(): boolean;
20
- destroy(): void;
21
- onEntry(callback: EntryEventCallback): void;
22
- onError(callback: ErrorEventCallback): void;
23
- onEnd(callback: EndEventCallback): void;
24
- private _pushToQueue;
25
- private _worker;
26
- private _handleError;
27
- private _handleEntry;
28
- private _emitEntry;
29
- }
30
- export {};
@@ -1,6 +0,0 @@
1
- import type Settings from '../settings';
2
- export default class Reader {
3
- protected readonly _root: string;
4
- protected readonly _settings: Settings;
5
- constructor(_root: string, _settings: Settings);
6
- }
@@ -1,30 +0,0 @@
1
- import * as fsScandir from '../../@nodelib/fs.scandir';
2
- import type { Entry, Errno } from './types';
3
- export declare type FilterFunction<T> = (value: T) => boolean;
4
- export declare type DeepFilterFunction = FilterFunction<Entry>;
5
- export declare type EntryFilterFunction = FilterFunction<Entry>;
6
- export declare type ErrorFilterFunction = FilterFunction<Errno>;
7
- export interface Options {
8
- basePath?: string;
9
- concurrency?: number;
10
- deepFilter?: DeepFilterFunction;
11
- entryFilter?: EntryFilterFunction;
12
- errorFilter?: ErrorFilterFunction;
13
- followSymbolicLinks?: boolean;
14
- fs?: Partial<fsScandir.FileSystemAdapter>;
15
- pathSegmentSeparator?: string;
16
- stats?: boolean;
17
- throwErrorOnBrokenSymbolicLink?: boolean;
18
- }
19
- export default class Settings {
20
- private readonly _options;
21
- readonly basePath?: string;
22
- readonly concurrency: number;
23
- readonly deepFilter: DeepFilterFunction | null;
24
- readonly entryFilter: EntryFilterFunction | null;
25
- readonly errorFilter: ErrorFilterFunction | null;
26
- readonly pathSegmentSeparator: string;
27
- readonly fsScandirSettings: fsScandir.Settings;
28
- constructor(_options?: Options);
29
- private _getValue;
30
- }
@@ -1,8 +0,0 @@
1
- /// <reference types="node" />
2
- import type * as scandir from '../../../@nodelib/fs.scandir';
3
- export declare type Entry = scandir.Entry;
4
- export declare type Errno = NodeJS.ErrnoException;
5
- export interface QueueItem {
6
- directory: string;
7
- base?: string;
8
- }
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,27 +0,0 @@
1
- /// <reference types="node" />
2
- import * as taskManager from './managers/tasks';
3
- import { Options as OptionsInternal } from './settings';
4
- import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types';
5
- declare type EntryObjectModePredicate = {
6
- [TKey in keyof Pick<OptionsInternal, 'objectMode'>]-?: true;
7
- };
8
- declare type EntryStatsPredicate = {
9
- [TKey in keyof Pick<OptionsInternal, 'stats'>]-?: true;
10
- };
11
- declare type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
12
- declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise<EntryInternal[]>;
13
- declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise<string[]>;
14
- declare namespace FastGlob {
15
- type Options = OptionsInternal;
16
- type Entry = EntryInternal;
17
- type Task = taskManager.Task;
18
- type Pattern = PatternInternal;
19
- type FileSystemAdapter = FileSystemAdapterInternal;
20
- function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[];
21
- function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[];
22
- function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream;
23
- function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[];
24
- function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean;
25
- function escapePath(source: PatternInternal): PatternInternal;
26
- }
27
- export = FastGlob;
@@ -1,22 +0,0 @@
1
- import Settings from '../settings';
2
- import { Pattern, PatternsGroup } from '../types';
3
- export declare type Task = {
4
- base: string;
5
- dynamic: boolean;
6
- patterns: Pattern[];
7
- positive: Pattern[];
8
- negative: Pattern[];
9
- };
10
- export declare function generate(patterns: Pattern[], settings: Settings): Task[];
11
- /**
12
- * Returns tasks grouped by basic pattern directories.
13
- *
14
- * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
15
- * This is necessary because directory traversal starts at the base directory and goes deeper.
16
- */
17
- export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
18
- export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
19
- export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
20
- export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
21
- export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
22
- export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
@@ -1,164 +0,0 @@
1
- import { FileSystemAdapter, Pattern } from './types';
2
- export declare const DEFAULT_FILE_SYSTEM_ADAPTER: FileSystemAdapter;
3
- export declare type Options = {
4
- /**
5
- * Return the absolute path for entries.
6
- *
7
- * @default false
8
- */
9
- absolute?: boolean;
10
- /**
11
- * If set to `true`, then patterns without slashes will be matched against
12
- * the basename of the path if it contains slashes.
13
- *
14
- * @default false
15
- */
16
- baseNameMatch?: boolean;
17
- /**
18
- * Enables Bash-like brace expansion.
19
- *
20
- * @default true
21
- */
22
- braceExpansion?: boolean;
23
- /**
24
- * Enables a case-sensitive mode for matching files.
25
- *
26
- * @default true
27
- */
28
- caseSensitiveMatch?: boolean;
29
- /**
30
- * Specifies the maximum number of concurrent requests from a reader to read
31
- * directories.
32
- *
33
- * @default os.cpus().length
34
- */
35
- concurrency?: number;
36
- /**
37
- * The current working directory in which to search.
38
- *
39
- * @default process.cwd()
40
- */
41
- cwd?: string;
42
- /**
43
- * Specifies the maximum depth of a read directory relative to the start
44
- * directory.
45
- *
46
- * @default Infinity
47
- */
48
- deep?: number;
49
- /**
50
- * Allow patterns to match entries that begin with a period (`.`).
51
- *
52
- * @default false
53
- */
54
- dot?: boolean;
55
- /**
56
- * Enables Bash-like `extglob` functionality.
57
- *
58
- * @default true
59
- */
60
- extglob?: boolean;
61
- /**
62
- * Indicates whether to traverse descendants of symbolic link directories.
63
- *
64
- * @default true
65
- */
66
- followSymbolicLinks?: boolean;
67
- /**
68
- * Custom implementation of methods for working with the file system.
69
- *
70
- * @default fs.*
71
- */
72
- fs?: Partial<FileSystemAdapter>;
73
- /**
74
- * Enables recursively repeats a pattern containing `**`.
75
- * If `false`, `**` behaves exactly like `*`.
76
- *
77
- * @default true
78
- */
79
- globstar?: boolean;
80
- /**
81
- * An array of glob patterns to exclude matches.
82
- * This is an alternative way to use negative patterns.
83
- *
84
- * @default []
85
- */
86
- ignore?: Pattern[];
87
- /**
88
- * Mark the directory path with the final slash.
89
- *
90
- * @default false
91
- */
92
- markDirectories?: boolean;
93
- /**
94
- * Returns objects (instead of strings) describing entries.
95
- *
96
- * @default false
97
- */
98
- objectMode?: boolean;
99
- /**
100
- * Return only directories.
101
- *
102
- * @default false
103
- */
104
- onlyDirectories?: boolean;
105
- /**
106
- * Return only files.
107
- *
108
- * @default true
109
- */
110
- onlyFiles?: boolean;
111
- /**
112
- * Enables an object mode (`objectMode`) with an additional `stats` field.
113
- *
114
- * @default false
115
- */
116
- stats?: boolean;
117
- /**
118
- * By default this package suppress only `ENOENT` errors.
119
- * Set to `true` to suppress any error.
120
- *
121
- * @default false
122
- */
123
- suppressErrors?: boolean;
124
- /**
125
- * Throw an error when symbolic link is broken if `true` or safely
126
- * return `lstat` call if `false`.
127
- *
128
- * @default false
129
- */
130
- throwErrorOnBrokenSymbolicLink?: boolean;
131
- /**
132
- * Ensures that the returned entries are unique.
133
- *
134
- * @default true
135
- */
136
- unique?: boolean;
137
- };
138
- export default class Settings {
139
- private readonly _options;
140
- readonly absolute: boolean;
141
- readonly baseNameMatch: boolean;
142
- readonly braceExpansion: boolean;
143
- readonly caseSensitiveMatch: boolean;
144
- readonly concurrency: number;
145
- readonly cwd: string;
146
- readonly deep: number;
147
- readonly dot: boolean;
148
- readonly extglob: boolean;
149
- readonly followSymbolicLinks: boolean;
150
- readonly fs: FileSystemAdapter;
151
- readonly globstar: boolean;
152
- readonly ignore: Pattern[];
153
- readonly markDirectories: boolean;
154
- readonly objectMode: boolean;
155
- readonly onlyDirectories: boolean;
156
- readonly onlyFiles: boolean;
157
- readonly stats: boolean;
158
- readonly suppressErrors: boolean;
159
- readonly throwErrorOnBrokenSymbolicLink: boolean;
160
- readonly unique: boolean;
161
- constructor(_options?: Options);
162
- private _getValue;
163
- private _getFileSystemMethods;
164
- }
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- import * as fsWalk from '../../../@nodelib/fs.walk';
3
- export declare type ErrnoException = NodeJS.ErrnoException;
4
- export declare type Entry = fsWalk.Entry;
5
- export declare type EntryItem = string | Entry;
6
- export declare type Pattern = string;
7
- export declare type PatternRe = RegExp;
8
- export declare type PatternsGroup = Record<string, Pattern[]>;
9
- export declare type ReaderOptions = fsWalk.Options & {
10
- transform(entry: Entry): EntryItem;
11
- deepFilter: DeepFilterFunction;
12
- entryFilter: EntryFilterFunction;
13
- errorFilter: ErrorFilterFunction;
14
- fs: FileSystemAdapter;
15
- stats: boolean;
16
- };
17
- export declare type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
18
- export declare type EntryFilterFunction = fsWalk.EntryFilterFunction;
19
- export declare type DeepFilterFunction = fsWalk.DeepFilterFunction;
20
- export declare type EntryTransformerFunction = (entry: Entry) => EntryItem;
21
- export declare type MicromatchOptions = {
22
- dot?: boolean;
23
- matchBase?: boolean;
24
- nobrace?: boolean;
25
- nocase?: boolean;
26
- noext?: boolean;
27
- noglobstar?: boolean;
28
- posix?: boolean;
29
- strictSlashes?: boolean;
30
- };
31
- export declare type FileSystemAdapter = fsWalk.FileSystemAdapter;
@@ -1,206 +0,0 @@
1
- import {URL} from 'node:url'; // TODO: Remove this when https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 is fixed.
2
- import {Options as FastGlobOptions, Entry} from './fast-glob';
3
-
4
- export type GlobEntry = Entry;
5
-
6
- export interface GlobTask {
7
- readonly patterns: string[];
8
- readonly options: Options;
9
- }
10
-
11
- export type ExpandDirectoriesOption =
12
- | boolean
13
- | readonly string[]
14
- | {files?: readonly string[]; extensions?: readonly string[]};
15
-
16
- type FastGlobOptionsWithoutCwd = Omit<FastGlobOptions, 'cwd'>;
17
-
18
- export interface Options extends FastGlobOptionsWithoutCwd {
19
- /**
20
- 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 in the example below.
21
-
22
- Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
23
-
24
- @default true
25
-
26
- @example
27
- ```
28
- import {globby} from '../globby';
29
-
30
- const paths = await globby('images', {
31
- expandDirectories: {
32
- files: ['cat', 'unicorn', '*.jpg'],
33
- extensions: ['png']
34
- }
35
- });
36
-
37
- console.log(paths);
38
- //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
39
- ```
40
- */
41
- readonly expandDirectories?: ExpandDirectoriesOption;
42
-
43
- /**
44
- Respect ignore patterns in `.gitignore` files that apply to the globbed files.
45
-
46
- @default false
47
- */
48
- readonly gitignore?: boolean;
49
-
50
- /**
51
- Glob patterns to look for ignore files, which are then used to ignore globbed files.
52
-
53
- This is a more generic form of the `gitignore` option, allowing you to find ignore files with a [compatible syntax](http://git-scm.com/docs/gitignore). For instance, this works with Babel's `.babelignore`, Prettier's `.prettierignore`, or ESLint's `.eslintignore` files.
54
-
55
- @default undefined
56
- */
57
- readonly ignoreFiles?: string | string[];
58
-
59
- /**
60
- The current working directory in which to search.
61
-
62
- @default process.cwd()
63
- */
64
- readonly cwd?: URL | string;
65
- }
66
-
67
- export interface GitignoreOptions {
68
- readonly cwd?: URL | string;
69
- }
70
-
71
- export type GlobbyFilterFunction = (path: URL | string) => boolean;
72
-
73
- /**
74
- Find files and directories using glob patterns.
75
-
76
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
77
-
78
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
79
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
80
- @returns The matching paths.
81
-
82
- @example
83
- ```
84
- import {globby} from '../globby';
85
-
86
- const paths = await globby(['*', '!cake']);
87
-
88
- console.log(paths);
89
- //=> ['unicorn', 'rainbow']
90
- ```
91
- */
92
- export function globby(
93
- patterns: string | readonly string[],
94
- options: Options & {objectMode: true}
95
- ): Promise<GlobEntry[]>;
96
- export function globby(
97
- patterns: string | readonly string[],
98
- options?: Options
99
- ): Promise<string[]>;
100
-
101
- /**
102
- Find files and directories using glob patterns.
103
-
104
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
105
-
106
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
107
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
108
- @returns The matching paths.
109
- */
110
- export function globbySync(
111
- patterns: string | readonly string[],
112
- options: Options & {objectMode: true}
113
- ): GlobEntry[];
114
- export function globbySync(
115
- patterns: string | readonly string[],
116
- options?: Options
117
- ): string[];
118
-
119
- /**
120
- Find files and directories using glob patterns.
121
-
122
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
123
-
124
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
125
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
126
- @returns The stream of matching paths.
127
-
128
- @example
129
- ```
130
- import {globbyStream} from '../globby';
131
-
132
- for await (const path of globbyStream('*.tmp')) {
133
- console.log(path);
134
- }
135
- ```
136
- */
137
- export function globbyStream(
138
- patterns: string | readonly string[],
139
- options?: Options
140
- ): NodeJS.ReadableStream;
141
-
142
- /**
143
- 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.
144
-
145
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
146
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
147
- @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.
148
- */
149
- export function generateGlobTasks(
150
- patterns: string | readonly string[],
151
- options?: Options
152
- ): Promise<GlobTask[]>;
153
-
154
- /**
155
- @see generateGlobTasks
156
-
157
- @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.
158
- */
159
- export function generateGlobTasksSync(
160
- patterns: string | readonly string[],
161
- options?: Options
162
- ): GlobTask[];
163
-
164
- /**
165
- Note that the options affect the results.
166
-
167
- This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
168
-
169
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
170
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
171
- @returns Whether there are any special glob characters in the `patterns`.
172
- */
173
- export function isDynamicPattern(
174
- patterns: string | readonly string[],
175
- options?: FastGlobOptionsWithoutCwd & {
176
- /**
177
- The current working directory in which to search.
178
-
179
- @default process.cwd()
180
- */
181
- readonly cwd?: URL | string;
182
- }
183
- ): boolean;
184
-
185
- /**
186
- `.gitignore` files matched by the ignore config are not used for the resulting filter function.
187
-
188
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
189
-
190
- @example
191
- ```
192
- import {isGitIgnored} from '../globby';
193
-
194
- const isIgnored = await isGitIgnored();
195
-
196
- console.log(isIgnored('some/file'));
197
- ```
198
- */
199
- export function isGitIgnored(options?: GitignoreOptions): Promise<GlobbyFilterFunction>;
200
-
201
- /**
202
- @see isGitIgnored
203
-
204
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
205
- */
206
- export function isGitIgnoredSync(options?: GitignoreOptions): GlobbyFilterFunction;