@rslib/core 0.20.0 → 0.20.1

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.
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2012 Paul Miller (https://paulmillr.com), Elan Shanker
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the “Software”), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1 +0,0 @@
1
- {"name":"chokidar","author":"Paul Miller (https://paulmillr.com)","version":"4.0.3","funding":"https://paulmillr.com/funding/","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1,55 +0,0 @@
1
- type Formatter = (input: string | number | null | undefined) => string
2
-
3
- interface Colors {
4
- isColorSupported: boolean
5
-
6
- reset: Formatter
7
- bold: Formatter
8
- dim: Formatter
9
- italic: Formatter
10
- underline: Formatter
11
- inverse: Formatter
12
- hidden: Formatter
13
- strikethrough: Formatter
14
-
15
- black: Formatter
16
- red: Formatter
17
- green: Formatter
18
- yellow: Formatter
19
- blue: Formatter
20
- magenta: Formatter
21
- cyan: Formatter
22
- white: Formatter
23
- gray: Formatter
24
-
25
- bgBlack: Formatter
26
- bgRed: Formatter
27
- bgGreen: Formatter
28
- bgYellow: Formatter
29
- bgBlue: Formatter
30
- bgMagenta: Formatter
31
- bgCyan: Formatter
32
- bgWhite: Formatter
33
-
34
- blackBright: Formatter
35
- redBright: Formatter
36
- greenBright: Formatter
37
- yellowBright: Formatter
38
- blueBright: Formatter
39
- magentaBright: Formatter
40
- cyanBright: Formatter
41
- whiteBright: Formatter
42
-
43
- bgBlackBright: Formatter
44
- bgRedBright: Formatter
45
- bgGreenBright: Formatter
46
- bgYellowBright: Formatter
47
- bgBlueBright: Formatter
48
- bgMagentaBright: Formatter
49
- bgCyanBright: Formatter
50
- bgWhiteBright: Formatter
51
- }
52
-
53
- declare const picocolors: Colors & { createColors: (enabled?: boolean) => Colors }
54
-
55
- export { picocolors as default };
@@ -1,132 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ var __webpack_modules__ = ({
3
-
4
- /***/ 831:
5
- /***/ ((module) => {
6
-
7
- let p = process || {}, argv = p.argv || [], env = p.env || {}
8
- let isColorSupported =
9
- !(!!env.NO_COLOR || argv.includes("--no-color")) &&
10
- (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI)
11
-
12
- let formatter = (open, close, replace = open) =>
13
- input => {
14
- let string = "" + input, index = string.indexOf(close, open.length)
15
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
16
- }
17
-
18
- let replaceClose = (string, close, replace, index) => {
19
- let result = "", cursor = 0
20
- do {
21
- result += string.substring(cursor, index) + replace
22
- cursor = index + close.length
23
- index = string.indexOf(close, cursor)
24
- } while (~index)
25
- return result + string.substring(cursor)
26
- }
27
-
28
- let createColors = (enabled = isColorSupported) => {
29
- let f = enabled ? formatter : () => String
30
- return {
31
- isColorSupported: enabled,
32
- reset: f("\x1b[0m", "\x1b[0m"),
33
- bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
34
- dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
35
- italic: f("\x1b[3m", "\x1b[23m"),
36
- underline: f("\x1b[4m", "\x1b[24m"),
37
- inverse: f("\x1b[7m", "\x1b[27m"),
38
- hidden: f("\x1b[8m", "\x1b[28m"),
39
- strikethrough: f("\x1b[9m", "\x1b[29m"),
40
-
41
- black: f("\x1b[30m", "\x1b[39m"),
42
- red: f("\x1b[31m", "\x1b[39m"),
43
- green: f("\x1b[32m", "\x1b[39m"),
44
- yellow: f("\x1b[33m", "\x1b[39m"),
45
- blue: f("\x1b[34m", "\x1b[39m"),
46
- magenta: f("\x1b[35m", "\x1b[39m"),
47
- cyan: f("\x1b[36m", "\x1b[39m"),
48
- white: f("\x1b[37m", "\x1b[39m"),
49
- gray: f("\x1b[90m", "\x1b[39m"),
50
-
51
- bgBlack: f("\x1b[40m", "\x1b[49m"),
52
- bgRed: f("\x1b[41m", "\x1b[49m"),
53
- bgGreen: f("\x1b[42m", "\x1b[49m"),
54
- bgYellow: f("\x1b[43m", "\x1b[49m"),
55
- bgBlue: f("\x1b[44m", "\x1b[49m"),
56
- bgMagenta: f("\x1b[45m", "\x1b[49m"),
57
- bgCyan: f("\x1b[46m", "\x1b[49m"),
58
- bgWhite: f("\x1b[47m", "\x1b[49m"),
59
-
60
- blackBright: f("\x1b[90m", "\x1b[39m"),
61
- redBright: f("\x1b[91m", "\x1b[39m"),
62
- greenBright: f("\x1b[92m", "\x1b[39m"),
63
- yellowBright: f("\x1b[93m", "\x1b[39m"),
64
- blueBright: f("\x1b[94m", "\x1b[39m"),
65
- magentaBright: f("\x1b[95m", "\x1b[39m"),
66
- cyanBright: f("\x1b[96m", "\x1b[39m"),
67
- whiteBright: f("\x1b[97m", "\x1b[39m"),
68
-
69
- bgBlackBright: f("\x1b[100m", "\x1b[49m"),
70
- bgRedBright: f("\x1b[101m", "\x1b[49m"),
71
- bgGreenBright: f("\x1b[102m", "\x1b[49m"),
72
- bgYellowBright: f("\x1b[103m", "\x1b[49m"),
73
- bgBlueBright: f("\x1b[104m", "\x1b[49m"),
74
- bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
75
- bgCyanBright: f("\x1b[106m", "\x1b[49m"),
76
- bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
77
- }
78
- }
79
-
80
- module.exports = createColors()
81
- module.exports.createColors = createColors
82
-
83
-
84
- /***/ })
85
-
86
- /******/ });
87
- /************************************************************************/
88
- /******/ // The module cache
89
- /******/ var __webpack_module_cache__ = {};
90
- /******/
91
- /******/ // The require function
92
- /******/ function __nccwpck_require__(moduleId) {
93
- /******/ // Check if module is in cache
94
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
95
- /******/ if (cachedModule !== undefined) {
96
- /******/ return cachedModule.exports;
97
- /******/ }
98
- /******/ // Create a new module (and put it into the cache)
99
- /******/ var module = __webpack_module_cache__[moduleId] = {
100
- /******/ // no module.id needed
101
- /******/ // no module.loaded needed
102
- /******/ exports: {}
103
- /******/ };
104
- /******/
105
- /******/ // Execute the module function
106
- /******/ var threw = true;
107
- /******/ try {
108
- /******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
109
- /******/ threw = false;
110
- /******/ } finally {
111
- /******/ if(threw) delete __webpack_module_cache__[moduleId];
112
- /******/ }
113
- /******/
114
- /******/ // Return the exports of the module
115
- /******/ return module.exports;
116
- /******/ }
117
- /******/
118
- /************************************************************************/
119
- /******/ /* webpack/runtime/compat */
120
- /******/
121
- /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
122
- /******/
123
- /************************************************************************/
124
- /******/
125
- /******/ // startup
126
- /******/ // Load entry module and return exports
127
- /******/ // This entry module is referenced by other modules so it can't be inlined
128
- /******/ var __webpack_exports__ = __nccwpck_require__(831);
129
- /******/ module.exports = __webpack_exports__;
130
- /******/
131
- /******/ })()
132
- ;
@@ -1,15 +0,0 @@
1
- ISC License
2
-
3
- Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1 +0,0 @@
1
- {"name":"picocolors","author":"Alexey Raspopov","version":"1.1.1","license":"ISC","types":"index.d.ts","type":"commonjs"}
@@ -1,300 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- createLogger: ()=>createLogger,
28
- logger: ()=>src_logger
29
- });
30
- const external_node_process_namespaceObject = require("node:process");
31
- const external_node_os_namespaceObject = require("node:os");
32
- const external_node_tty_namespaceObject = require("node:tty");
33
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : external_node_process_namespaceObject.argv) {
34
- const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
35
- const position = argv.indexOf(prefix + flag);
36
- const terminatorPosition = argv.indexOf('--');
37
- return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
38
- }
39
- const { env } = external_node_process_namespaceObject;
40
- let flagForceColor;
41
- if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
42
- else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
43
- function envForceColor() {
44
- if (!('FORCE_COLOR' in env)) return;
45
- if ('true' === env.FORCE_COLOR) return 1;
46
- if ('false' === env.FORCE_COLOR) return 0;
47
- if (0 === env.FORCE_COLOR.length) return 1;
48
- const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
49
- if (![
50
- 0,
51
- 1,
52
- 2,
53
- 3
54
- ].includes(level)) return;
55
- return level;
56
- }
57
- function translateLevel(level) {
58
- if (0 === level) return false;
59
- return {
60
- level,
61
- hasBasic: true,
62
- has256: level >= 2,
63
- has16m: level >= 3
64
- };
65
- }
66
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
67
- const noFlagForceColor = envForceColor();
68
- if (void 0 !== noFlagForceColor) flagForceColor = noFlagForceColor;
69
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
70
- if (0 === forceColor) return 0;
71
- if (sniffFlags) {
72
- if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
73
- if (hasFlag('color=256')) return 2;
74
- }
75
- if ('TF_BUILD' in env && 'AGENT_NAME' in env) return 1;
76
- if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
77
- const min = forceColor || 0;
78
- if ('dumb' === env.TERM) return min;
79
- if ('win32' === external_node_process_namespaceObject.platform) {
80
- const osRelease = external_node_os_namespaceObject.release().split('.');
81
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
82
- return 1;
83
- }
84
- if ('CI' in env) {
85
- if ([
86
- 'GITHUB_ACTIONS',
87
- 'GITEA_ACTIONS',
88
- 'CIRCLECI'
89
- ].some((key)=>key in env)) return 3;
90
- if ([
91
- 'TRAVIS',
92
- 'APPVEYOR',
93
- 'GITLAB_CI',
94
- 'BUILDKITE',
95
- 'DRONE'
96
- ].some((sign)=>sign in env) || 'codeship' === env.CI_NAME) return 1;
97
- return min;
98
- }
99
- if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
100
- if ('truecolor' === env.COLORTERM) return 3;
101
- if ('xterm-kitty' === env.TERM) return 3;
102
- if ('xterm-ghostty' === env.TERM) return 3;
103
- if ('wezterm' === env.TERM) return 3;
104
- if ('TERM_PROGRAM' in env) {
105
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
106
- switch(env.TERM_PROGRAM){
107
- case 'iTerm.app':
108
- return version >= 3 ? 3 : 2;
109
- case 'Apple_Terminal':
110
- return 2;
111
- }
112
- }
113
- if (/-256(color)?$/i.test(env.TERM)) return 2;
114
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
115
- if ('COLORTERM' in env) return 1;
116
- return min;
117
- }
118
- function createSupportsColor(stream, options = {}) {
119
- const level = _supportsColor(stream, {
120
- streamIsTTY: stream && stream.isTTY,
121
- ...options
122
- });
123
- return translateLevel(level);
124
- }
125
- const supportsColor = {
126
- stdout: createSupportsColor({
127
- isTTY: external_node_tty_namespaceObject.isatty(1)
128
- }),
129
- stderr: createSupportsColor({
130
- isTTY: external_node_tty_namespaceObject.isatty(2)
131
- })
132
- };
133
- const supports_color = supportsColor;
134
- const colorLevel = supports_color.stdout ? supports_color.stdout.level : 0;
135
- let errorStackRegExp = /at [^\r\n]{0,200}:\d+:\d+[\s\)]*$/;
136
- let anonymousErrorStackRegExp = /at [^\r\n]{0,200}\(<anonymous>\)$/;
137
- let indexErrorStackRegExp = /at [^\r\n]{0,200}\(index\s\d+\)$/;
138
- let isErrorStackMessage = (message)=>errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message) || indexErrorStackRegExp.test(message);
139
- let formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
140
- let string = '' + input;
141
- let index = string.indexOf(close, open.length);
142
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
143
- } : String;
144
- let replaceClose = (string, close, replace, index)=>{
145
- let start = string.substring(0, index) + replace;
146
- let end = string.substring(index + close.length);
147
- let nextIndex = end.indexOf(close);
148
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
149
- };
150
- const bold = formatter('\x1b[1m', '\x1b[22m', '\x1b[22m\x1b[1m');
151
- const red = formatter('\x1b[31m', '\x1b[39m');
152
- const green = formatter('\x1b[32m', '\x1b[39m');
153
- const yellow = formatter('\x1b[33m', '\x1b[39m');
154
- const magenta = formatter('\x1b[35m', '\x1b[39m');
155
- const cyan = formatter('\x1b[36m', '\x1b[39m');
156
- const gray = formatter('\x1b[90m', '\x1b[39m');
157
- let startColor = [
158
- 189,
159
- 255,
160
- 243
161
- ];
162
- let endColor = [
163
- 74,
164
- 194,
165
- 154
166
- ];
167
- let isWord = (char)=>!/[\s\n]/.test(char);
168
- let gradient = (message)=>{
169
- if (colorLevel < 3) return 2 === colorLevel ? bold(cyan(message)) : message;
170
- let chars = [
171
- ...message
172
- ];
173
- let steps = chars.filter(isWord).length;
174
- let r = startColor[0];
175
- let g = startColor[1];
176
- let b = startColor[2];
177
- let rStep = (endColor[0] - r) / steps;
178
- let gStep = (endColor[1] - g) / steps;
179
- let bStep = (endColor[2] - b) / steps;
180
- let output = '';
181
- for (let char of chars){
182
- if (isWord(char)) {
183
- r += rStep;
184
- g += gStep;
185
- b += bStep;
186
- }
187
- output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
188
- }
189
- return bold(output);
190
- };
191
- let LOG_LEVEL = {
192
- silent: -1,
193
- error: 0,
194
- warn: 1,
195
- info: 2,
196
- log: 2,
197
- verbose: 3
198
- };
199
- let LOG_TYPES = {
200
- error: {
201
- label: 'error',
202
- level: 'error',
203
- color: red
204
- },
205
- warn: {
206
- label: 'warn',
207
- level: 'warn',
208
- color: yellow
209
- },
210
- info: {
211
- label: 'info',
212
- level: 'info',
213
- color: cyan
214
- },
215
- start: {
216
- label: 'start',
217
- level: 'info',
218
- color: cyan
219
- },
220
- ready: {
221
- label: 'ready',
222
- level: 'info',
223
- color: green
224
- },
225
- success: {
226
- label: 'success',
227
- level: 'info',
228
- color: green
229
- },
230
- log: {
231
- level: 'info'
232
- },
233
- debug: {
234
- label: 'debug',
235
- level: 'verbose',
236
- color: magenta
237
- }
238
- };
239
- const normalizeErrorMessage = (err)=>{
240
- if (err.stack) {
241
- let [name, ...rest] = err.stack.split('\n');
242
- if (name.startsWith('Error: ')) name = name.slice(7);
243
- return `${name}\n${gray(rest.join('\n'))}`;
244
- }
245
- return err.message;
246
- };
247
- let createLogger = (options = {})=>{
248
- let maxLevel = options.level || 'info';
249
- let log = (type, message, ...args)=>{
250
- let logType = LOG_TYPES[type];
251
- const { level } = logType;
252
- if (LOG_LEVEL[level] > LOG_LEVEL[maxLevel]) return;
253
- if (null == message) return console.log();
254
- let label = '';
255
- let text = '';
256
- if ('label' in logType) {
257
- label = (logType.label || '').padEnd(7);
258
- label = bold(logType.color ? logType.color(label) : label);
259
- }
260
- if (message instanceof Error) {
261
- text += normalizeErrorMessage(message);
262
- const { cause } = message;
263
- if (cause) {
264
- text += yellow('\n [cause]: ');
265
- text += cause instanceof Error ? normalizeErrorMessage(cause) : String(cause);
266
- }
267
- } else if ('error' === level && 'string' == typeof message) {
268
- let lines = message.split('\n');
269
- text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join('\n');
270
- } else text = `${message}`;
271
- const method = 'error' === level || 'warn' === level ? level : 'log';
272
- console[method](label.length ? `${label} ${text}` : text, ...args);
273
- };
274
- let logger = {
275
- greet: (message)=>log('log', gradient(message))
276
- };
277
- Object.keys(LOG_TYPES).forEach((key)=>{
278
- logger[key] = (...args)=>log(key, ...args);
279
- });
280
- Object.defineProperty(logger, 'level', {
281
- get: ()=>maxLevel,
282
- set (val) {
283
- maxLevel = val;
284
- }
285
- });
286
- logger.override = (customLogger)=>{
287
- Object.assign(logger, customLogger);
288
- };
289
- return logger;
290
- };
291
- let src_logger = createLogger();
292
- exports.createLogger = __webpack_exports__.createLogger;
293
- exports.logger = __webpack_exports__.logger;
294
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
295
- "createLogger",
296
- "logger"
297
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
298
- Object.defineProperty(exports, '__esModule', {
299
- value: true
300
- });
@@ -1,46 +0,0 @@
1
- //#region src/utils.d.ts
2
-
3
- declare const convertPathToPattern: (path: string) => string;
4
- declare const escapePath: (path: string) => string;
5
- // #endregion
6
- // #region isDynamicPattern
7
- /*
8
- Has a few minor differences with `fast-glob` for better accuracy:
9
-
10
- Doesn't necessarily return false on patterns that include `\\`.
11
-
12
- Returns true if the pattern includes parentheses,
13
- regardless of them representing one single pattern or not.
14
-
15
- Returns true for unfinished glob extensions i.e. `(h`, `+(h`.
16
-
17
- Returns true for unfinished brace expansions as long as they include `,` or `..`.
18
- */
19
- declare function isDynamicPattern(pattern: string, options?: {
20
- caseSensitiveMatch: boolean;
21
- }): boolean; //#endregion
22
- //#region src/index.d.ts
23
-
24
- // #endregion
25
- // #region log
26
- interface GlobOptions {
27
- absolute?: boolean;
28
- cwd?: string;
29
- patterns?: string | string[];
30
- ignore?: string | string[];
31
- dot?: boolean;
32
- deep?: number;
33
- followSymbolicLinks?: boolean;
34
- caseSensitiveMatch?: boolean;
35
- expandDirectories?: boolean;
36
- onlyDirectories?: boolean;
37
- onlyFiles?: boolean;
38
- debug?: boolean;
39
- }
40
- declare function glob(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): Promise<string[]>;
41
- declare function glob(options: GlobOptions): Promise<string[]>;
42
- declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, "patterns">): string[];
43
- declare function globSync(options: GlobOptions): string[];
44
-
45
- export { convertPathToPattern, escapePath, glob, globSync, isDynamicPattern };
46
- export type { GlobOptions };