@rstest/core 0.7.2 → 0.7.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.
@@ -1,84 +1,13 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
- import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
4
- import * as __rspack_external_node_os_74b4b876 from "node:os";
5
- import * as __rspack_external_node_path_c5b9b54f from "node:path";
6
- import * as __rspack_external_node_tty_c64aab7e from "node:tty";
7
- import * as __rspack_external_node_util_1b29d436 from "node:util";
8
3
  import { __webpack_require__ } from "./rslib-runtime.js";
9
- import node_process from "node:process";
10
4
  import { fileURLToPath } from "url";
11
5
  import { createRequire } from "module";
12
6
  import promises, { lstat, readdir, realpath, stat as promises_stat, writeFile } from "node:fs/promises";
13
- import { createRequire as external_node_module_createRequire, isBuiltin } from "node:module";
7
+ import { createRequire as external_node_module_createRequire } from "./664.js";
8
+ import { normalize, isAbsolute, posix, join, parse } from "./278.js";
14
9
  __webpack_require__.add({
15
- "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
16
- let p = process || {}, argv = p.argv || [], env = p.env || {};
17
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI);
18
- let formatter = (open, close, replace = open)=>(input)=>{
19
- let string = "" + input, index = string.indexOf(close, open.length);
20
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
21
- };
22
- let replaceClose = (string, close, replace, index)=>{
23
- let result = "", cursor = 0;
24
- do {
25
- result += string.substring(cursor, index) + replace;
26
- cursor = index + close.length;
27
- index = string.indexOf(close, cursor);
28
- }while (~index);
29
- return result + string.substring(cursor);
30
- };
31
- let createColors = (enabled = isColorSupported)=>{
32
- let f = enabled ? formatter : ()=>String;
33
- return {
34
- isColorSupported: enabled,
35
- reset: f("\x1b[0m", "\x1b[0m"),
36
- bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
37
- dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
38
- italic: f("\x1b[3m", "\x1b[23m"),
39
- underline: f("\x1b[4m", "\x1b[24m"),
40
- inverse: f("\x1b[7m", "\x1b[27m"),
41
- hidden: f("\x1b[8m", "\x1b[28m"),
42
- strikethrough: f("\x1b[9m", "\x1b[29m"),
43
- black: f("\x1b[30m", "\x1b[39m"),
44
- red: f("\x1b[31m", "\x1b[39m"),
45
- green: f("\x1b[32m", "\x1b[39m"),
46
- yellow: f("\x1b[33m", "\x1b[39m"),
47
- blue: f("\x1b[34m", "\x1b[39m"),
48
- magenta: f("\x1b[35m", "\x1b[39m"),
49
- cyan: f("\x1b[36m", "\x1b[39m"),
50
- white: f("\x1b[37m", "\x1b[39m"),
51
- gray: f("\x1b[90m", "\x1b[39m"),
52
- bgBlack: f("\x1b[40m", "\x1b[49m"),
53
- bgRed: f("\x1b[41m", "\x1b[49m"),
54
- bgGreen: f("\x1b[42m", "\x1b[49m"),
55
- bgYellow: f("\x1b[43m", "\x1b[49m"),
56
- bgBlue: f("\x1b[44m", "\x1b[49m"),
57
- bgMagenta: f("\x1b[45m", "\x1b[49m"),
58
- bgCyan: f("\x1b[46m", "\x1b[49m"),
59
- bgWhite: f("\x1b[47m", "\x1b[49m"),
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
- bgBlackBright: f("\x1b[100m", "\x1b[49m"),
69
- bgRedBright: f("\x1b[101m", "\x1b[49m"),
70
- bgGreenBright: f("\x1b[102m", "\x1b[49m"),
71
- bgYellowBright: f("\x1b[103m", "\x1b[49m"),
72
- bgBlueBright: f("\x1b[104m", "\x1b[49m"),
73
- bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
74
- bgCyanBright: f("\x1b[106m", "\x1b[49m"),
75
- bgWhiteBright: f("\x1b[107m", "\x1b[49m")
76
- };
77
- };
78
- module.exports = createColors();
79
- module.exports.createColors = createColors;
80
- },
81
- "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js" (module, __unused_webpack_exports, __webpack_require__) {
10
+ "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js" (module, __unused_rspack_exports, __webpack_require__) {
82
11
  const pico = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js");
83
12
  const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js");
84
13
  function picomatch(glob, options, returnState = false) {
@@ -251,7 +180,7 @@ __webpack_require__.add({
251
180
  }
252
181
  };
253
182
  },
254
- "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js" (module, __unused_webpack_exports, __webpack_require__) {
183
+ "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
255
184
  const constants = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js");
256
185
  const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js");
257
186
  const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
@@ -1039,7 +968,7 @@ __webpack_require__.add({
1039
968
  };
1040
969
  module.exports = parse;
1041
970
  },
1042
- "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js" (module, __unused_webpack_exports, __webpack_require__) {
971
+ "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js" (module, __unused_rspack_exports, __webpack_require__) {
1043
972
  const scan = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js");
1044
973
  const parse = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js");
1045
974
  const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js");
@@ -1172,7 +1101,7 @@ __webpack_require__.add({
1172
1101
  picomatch.constants = constants;
1173
1102
  module.exports = picomatch;
1174
1103
  },
1175
- "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js" (module, __unused_webpack_exports, __webpack_require__) {
1104
+ "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js" (module, __unused_rspack_exports, __webpack_require__) {
1176
1105
  const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js");
1177
1106
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js");
1178
1107
  const isPathSeparator = (code)=>code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
@@ -1440,7 +1369,7 @@ __webpack_require__.add({
1440
1369
  };
1441
1370
  module.exports = scan;
1442
1371
  },
1443
- "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js" (__unused_webpack_module, exports, __webpack_require__) {
1372
+ "../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
1444
1373
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js");
1445
1374
  exports.isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val);
1446
1375
  exports.hasRegexChars = (str)=>REGEX_SPECIAL_CHARS.test(str);
@@ -1483,761 +1412,10 @@ __webpack_require__.add({
1483
1412
  if ('' === last) return segs[segs.length - 2];
1484
1413
  return last;
1485
1414
  };
1486
- },
1487
- "node:fs" (module) {
1488
- module.exports = __rspack_external_node_fs_5ea92f0c;
1489
- },
1490
- "node:os" (module) {
1491
- module.exports = __rspack_external_node_os_74b4b876;
1492
- },
1493
- "node:path" (module) {
1494
- module.exports = __rspack_external_node_path_c5b9b54f;
1495
- },
1496
- "node:tty" (module) {
1497
- module.exports = __rspack_external_node_tty_c64aab7e;
1498
- },
1499
- "node:util" (module) {
1500
- module.exports = __rspack_external_node_util_1b29d436;
1501
1415
  }
1502
1416
  });
1503
- const external_node_os_ = __webpack_require__("node:os");
1504
- const external_node_tty_ = __webpack_require__("node:tty");
1505
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process.argv) {
1506
- const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
1507
- const position = argv.indexOf(prefix + flag);
1508
- const terminatorPosition = argv.indexOf('--');
1509
- return -1 !== position && (-1 === terminatorPosition || position < terminatorPosition);
1510
- }
1511
- const { env: env } = node_process;
1512
- let flagForceColor;
1513
- if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) flagForceColor = 0;
1514
- else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) flagForceColor = 1;
1515
- function envForceColor() {
1516
- if (!('FORCE_COLOR' in env)) return;
1517
- if ('true' === env.FORCE_COLOR) return 1;
1518
- if ('false' === env.FORCE_COLOR) return 0;
1519
- if (0 === env.FORCE_COLOR.length) return 1;
1520
- const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
1521
- if (![
1522
- 0,
1523
- 1,
1524
- 2,
1525
- 3
1526
- ].includes(level)) return;
1527
- return level;
1528
- }
1529
- function translateLevel(level) {
1530
- if (0 === level) return false;
1531
- return {
1532
- level,
1533
- hasBasic: true,
1534
- has256: level >= 2,
1535
- has16m: level >= 3
1536
- };
1537
- }
1538
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
1539
- const noFlagForceColor = envForceColor();
1540
- if (void 0 !== noFlagForceColor) flagForceColor = noFlagForceColor;
1541
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
1542
- if (0 === forceColor) return 0;
1543
- if (sniffFlags) {
1544
- if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) return 3;
1545
- if (hasFlag('color=256')) return 2;
1546
- }
1547
- if ('TF_BUILD' in env && 'AGENT_NAME' in env) return 1;
1548
- if (haveStream && !streamIsTTY && void 0 === forceColor) return 0;
1549
- const min = forceColor || 0;
1550
- if ('dumb' === env.TERM) return min;
1551
- if ('win32' === node_process.platform) {
1552
- const osRelease = external_node_os_["default"].release().split('.');
1553
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
1554
- return 1;
1555
- }
1556
- if ('CI' in env) {
1557
- if ([
1558
- 'GITHUB_ACTIONS',
1559
- 'GITEA_ACTIONS',
1560
- 'CIRCLECI'
1561
- ].some((key)=>key in env)) return 3;
1562
- if ([
1563
- 'TRAVIS',
1564
- 'APPVEYOR',
1565
- 'GITLAB_CI',
1566
- 'BUILDKITE',
1567
- 'DRONE'
1568
- ].some((sign)=>sign in env) || 'codeship' === env.CI_NAME) return 1;
1569
- return min;
1570
- }
1571
- if ('TEAMCITY_VERSION' in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1572
- if ('truecolor' === env.COLORTERM) return 3;
1573
- if ('xterm-kitty' === env.TERM) return 3;
1574
- if ('xterm-ghostty' === env.TERM) return 3;
1575
- if ('wezterm' === env.TERM) return 3;
1576
- if ('TERM_PROGRAM' in env) {
1577
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
1578
- switch(env.TERM_PROGRAM){
1579
- case 'iTerm.app':
1580
- return version >= 3 ? 3 : 2;
1581
- case 'Apple_Terminal':
1582
- return 2;
1583
- }
1584
- }
1585
- if (/-256(color)?$/i.test(env.TERM)) return 2;
1586
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
1587
- if ('COLORTERM' in env) return 1;
1588
- return min;
1589
- }
1590
- function createSupportsColor(stream, options = {}) {
1591
- const level = _supportsColor(stream, {
1592
- streamIsTTY: stream && stream.isTTY,
1593
- ...options
1594
- });
1595
- return translateLevel(level);
1596
- }
1597
- const supportsColor = {
1598
- stdout: createSupportsColor({
1599
- isTTY: external_node_tty_["default"].isatty(1)
1600
- }),
1601
- stderr: createSupportsColor({
1602
- isTTY: external_node_tty_["default"].isatty(2)
1603
- })
1604
- };
1605
- const supports_color = supportsColor;
1606
- const colorLevel = supports_color.stdout ? supports_color.stdout.level : 0;
1607
- let errorStackRegExp = /at [^\r\n]{0,200}:\d+:\d+[\s\)]*$/;
1608
- let anonymousErrorStackRegExp = /at [^\r\n]{0,200}\(<anonymous>\)$/;
1609
- let indexErrorStackRegExp = /at [^\r\n]{0,200}\(index\s\d+\)$/;
1610
- let isErrorStackMessage = (message)=>errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message) || indexErrorStackRegExp.test(message);
1611
- let formatter = (open, close, replace = open)=>colorLevel >= 2 ? (input)=>{
1612
- let string = '' + input;
1613
- let index = string.indexOf(close, open.length);
1614
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
1615
- } : String;
1616
- let replaceClose = (string, close, replace, index)=>{
1617
- let start = string.substring(0, index) + replace;
1618
- let end = string.substring(index + close.length);
1619
- let nextIndex = end.indexOf(close);
1620
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
1621
- };
1622
- const bold = formatter('\x1b[1m', '\x1b[22m', '\x1b[22m\x1b[1m');
1623
- const red = formatter('\x1b[31m', '\x1b[39m');
1624
- const green = formatter('\x1b[32m', '\x1b[39m');
1625
- const yellow = formatter('\x1b[33m', '\x1b[39m');
1626
- const magenta = formatter('\x1b[35m', '\x1b[39m');
1627
- const cyan = formatter('\x1b[36m', '\x1b[39m');
1628
- const gray = formatter('\x1b[90m', '\x1b[39m');
1629
- let startColor = [
1630
- 189,
1631
- 255,
1632
- 243
1633
- ];
1634
- let endColor = [
1635
- 74,
1636
- 194,
1637
- 154
1638
- ];
1639
- let isWord = (char)=>!/[\s\n]/.test(char);
1640
- let gradient = (message)=>{
1641
- if (colorLevel < 3) return 2 === colorLevel ? bold(cyan(message)) : message;
1642
- let chars = [
1643
- ...message
1644
- ];
1645
- let steps = chars.filter(isWord).length;
1646
- let r = startColor[0];
1647
- let g = startColor[1];
1648
- let b = startColor[2];
1649
- let rStep = (endColor[0] - r) / steps;
1650
- let gStep = (endColor[1] - g) / steps;
1651
- let bStep = (endColor[2] - b) / steps;
1652
- let output = '';
1653
- for (let char of chars){
1654
- if (isWord(char)) {
1655
- r += rStep;
1656
- g += gStep;
1657
- b += bStep;
1658
- }
1659
- output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
1660
- }
1661
- return bold(output);
1662
- };
1663
- let LOG_LEVEL = {
1664
- silent: -1,
1665
- error: 0,
1666
- warn: 1,
1667
- info: 2,
1668
- log: 2,
1669
- verbose: 3
1670
- };
1671
- let LOG_TYPES = {
1672
- error: {
1673
- label: 'error',
1674
- level: 'error',
1675
- color: red
1676
- },
1677
- warn: {
1678
- label: 'warn',
1679
- level: 'warn',
1680
- color: yellow
1681
- },
1682
- info: {
1683
- label: 'info',
1684
- level: 'info',
1685
- color: cyan
1686
- },
1687
- start: {
1688
- label: 'start',
1689
- level: 'info',
1690
- color: cyan
1691
- },
1692
- ready: {
1693
- label: 'ready',
1694
- level: 'info',
1695
- color: green
1696
- },
1697
- success: {
1698
- label: 'success',
1699
- level: 'info',
1700
- color: green
1701
- },
1702
- log: {
1703
- level: 'info'
1704
- },
1705
- debug: {
1706
- label: 'debug',
1707
- level: 'verbose',
1708
- color: magenta
1709
- }
1710
- };
1711
- const normalizeErrorMessage = (err)=>{
1712
- if (err.stack) {
1713
- let [name, ...rest] = err.stack.split('\n');
1714
- if (name.startsWith('Error: ')) name = name.slice(7);
1715
- return `${name}\n${gray(rest.join('\n'))}`;
1716
- }
1717
- return err.message;
1718
- };
1719
- let createLogger = (options = {})=>{
1720
- let maxLevel = options.level || 'info';
1721
- let log = (type, message, ...args)=>{
1722
- let logType = LOG_TYPES[type];
1723
- const { level } = logType;
1724
- if (LOG_LEVEL[level] > LOG_LEVEL[maxLevel]) return;
1725
- if (null == message) return console.log();
1726
- let label = '';
1727
- let text = '';
1728
- if ('label' in logType) {
1729
- label = (logType.label || '').padEnd(7);
1730
- label = bold(logType.color ? logType.color(label) : label);
1731
- }
1732
- if (message instanceof Error) {
1733
- text += normalizeErrorMessage(message);
1734
- const { cause } = message;
1735
- if (cause) {
1736
- text += yellow('\n [cause]: ');
1737
- text += cause instanceof Error ? normalizeErrorMessage(cause) : String(cause);
1738
- }
1739
- } else if ('error' === level && 'string' == typeof message) {
1740
- let lines = message.split('\n');
1741
- text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join('\n');
1742
- } else text = `${message}`;
1743
- const method = 'error' === level || 'warn' === level ? level : 'log';
1744
- console[method](label.length ? `${label} ${text}` : text, ...args);
1745
- };
1746
- let logger = {
1747
- greet: (message)=>log('log', gradient(message))
1748
- };
1749
- Object.keys(LOG_TYPES).forEach((key)=>{
1750
- logger[key] = (...args)=>log(key, ...args);
1751
- });
1752
- Object.defineProperty(logger, 'level', {
1753
- get: ()=>maxLevel,
1754
- set (val) {
1755
- maxLevel = val;
1756
- }
1757
- });
1758
- logger.override = (customLogger)=>{
1759
- Object.assign(logger, customLogger);
1760
- };
1761
- return logger;
1762
- };
1763
- let src_logger = createLogger();
1764
1417
  const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
1765
1418
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
1766
- const isDebug = ()=>{
1767
- if (!process.env.DEBUG) return false;
1768
- const values = process.env.DEBUG.toLocaleLowerCase().split(',');
1769
- return [
1770
- 'rstest',
1771
- 'rsbuild',
1772
- 'builder',
1773
- '*'
1774
- ].some((key)=>values.includes(key));
1775
- };
1776
- if (isDebug()) src_logger.level = 'verbose';
1777
- function getTime() {
1778
- const now = new Date();
1779
- const hours = String(now.getHours()).padStart(2, '0');
1780
- const minutes = String(now.getMinutes()).padStart(2, '0');
1781
- const seconds = String(now.getSeconds()).padStart(2, '0');
1782
- return `${hours}:${minutes}:${seconds}`;
1783
- }
1784
- src_logger.override({
1785
- debug: (message, ...args)=>{
1786
- if ('verbose' !== src_logger.level) return;
1787
- const time = picocolors_default().gray(getTime());
1788
- console.log(` ${picocolors_default().magenta('rstest')} ${time} ${message}`, ...args);
1789
- }
1790
- });
1791
- const clearScreen = (force = false)=>{
1792
- if (!isDebug() || force) console.log('\x1Bc');
1793
- };
1794
- let _lazyMatch = ()=>{
1795
- var __lib__ = (()=>{
1796
- var m = Object.defineProperty, V = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, q = (r, e)=>{
1797
- for(var n in e)m(r, n, {
1798
- get: e[n],
1799
- enumerable: true
1800
- });
1801
- }, H = (r, e, n, a)=>{
1802
- if (e && "object" == typeof e || "function" == typeof e) for (let t of G(e))T.call(r, t) || t === n || m(r, t, {
1803
- get: ()=>e[t],
1804
- enumerable: !(a = V(e, t)) || a.enumerable
1805
- });
1806
- return r;
1807
- }, J = (r)=>H(m({}, "__esModule", {
1808
- value: true
1809
- }), r), w = {};
1810
- q(w, {
1811
- default: ()=>re
1812
- });
1813
- var A = (r)=>Array.isArray(r), d = (r)=>"function" == typeof r, Q = (r)=>0 === r.length, W = (r)=>"number" == typeof r, K = (r)=>"object" == typeof r && null !== r, X = (r)=>r instanceof RegExp, b = (r)=>"string" == typeof r, h = (r)=>void 0 === r, Y = (r)=>{
1814
- const e = new Map;
1815
- return (n)=>{
1816
- const a = e.get(n);
1817
- if (a) return a;
1818
- const t = r(n);
1819
- return e.set(n, t), t;
1820
- };
1821
- }, rr = (r, e, n = {})=>{
1822
- const a = {
1823
- cache: {},
1824
- input: r,
1825
- index: 0,
1826
- indexMax: 0,
1827
- options: n,
1828
- output: []
1829
- };
1830
- if (v(e)(a) && a.index === r.length) return a.output;
1831
- throw new Error(`Failed to parse at index ${a.indexMax}`);
1832
- }, i = (r, e)=>A(r) ? er(r, e) : b(r) ? ar(r, e) : nr(r, e), er = (r, e)=>{
1833
- const n = {};
1834
- for (const a of r){
1835
- if (1 !== a.length) throw new Error(`Invalid character: "${a}"`);
1836
- const t = a.charCodeAt(0);
1837
- n[t] = true;
1838
- }
1839
- return (a)=>{
1840
- const t = a.index, o = a.input;
1841
- for(; a.index < o.length && o.charCodeAt(a.index) in n;)a.index += 1;
1842
- const u = a.index;
1843
- if (u > t) {
1844
- if (!h(e) && !a.options.silent) {
1845
- const s = a.input.slice(t, u), c = d(e) ? e(s, o, String(t)) : e;
1846
- h(c) || a.output.push(c);
1847
- }
1848
- a.indexMax = Math.max(a.indexMax, a.index);
1849
- }
1850
- return true;
1851
- };
1852
- }, nr = (r, e)=>{
1853
- const n = r.source, a = r.flags.replace(/y|$/, "y"), t = new RegExp(n, a);
1854
- return g((o)=>{
1855
- t.lastIndex = o.index;
1856
- const u = t.exec(o.input);
1857
- if (!u) return false;
1858
- if (!h(e) && !o.options.silent) {
1859
- const s = d(e) ? e(...u, o.input, String(o.index)) : e;
1860
- h(s) || o.output.push(s);
1861
- }
1862
- return o.index += u[0].length, o.indexMax = Math.max(o.indexMax, o.index), true;
1863
- });
1864
- }, ar = (r, e)=>(n)=>{
1865
- if (!n.input.startsWith(r, n.index)) return false;
1866
- if (!h(e) && !n.options.silent) {
1867
- const t = d(e) ? e(r, n.input, String(n.index)) : e;
1868
- h(t) || n.output.push(t);
1869
- }
1870
- return n.index += r.length, n.indexMax = Math.max(n.indexMax, n.index), true;
1871
- }, C = (r, e, n, a)=>{
1872
- const t = v(r);
1873
- return g(_(M((o)=>{
1874
- let u = 0;
1875
- for(; u < n;){
1876
- const s = o.index;
1877
- if (!t(o) || (u += 1, o.index === s)) break;
1878
- }
1879
- return u >= e;
1880
- })));
1881
- }, tr = (r, e)=>C(r, 0, 1), f = (r, e)=>C(r, 0, 1 / 0), x = (r, e)=>{
1882
- const n = r.map(v);
1883
- return g(_(M((a)=>{
1884
- for(let t = 0, o = n.length; t < o; t++)if (!n[t](a)) return false;
1885
- return true;
1886
- })));
1887
- }, l = (r, e)=>{
1888
- const n = r.map(v);
1889
- return g(_((a)=>{
1890
- for(let t = 0, o = n.length; t < o; t++)if (n[t](a)) return true;
1891
- return false;
1892
- }));
1893
- }, M = (r, e = false)=>{
1894
- const n = v(r);
1895
- return (a)=>{
1896
- const t = a.index, o = a.output.length, u = n(a);
1897
- return (!u || e) && (a.index = t, a.output.length !== o && (a.output.length = o)), u;
1898
- };
1899
- }, _ = (r, e)=>{
1900
- const n = v(r);
1901
- return n;
1902
- }, g = (()=>{
1903
- let r = 0;
1904
- return (e)=>{
1905
- const n = v(e), a = r += 1;
1906
- return (t)=>{
1907
- var o;
1908
- if (false === t.options.memoization) return n(t);
1909
- const u = t.index, s = (o = t.cache)[a] || (o[a] = new Map), c = s.get(u);
1910
- if (false === c) return false;
1911
- if (W(c)) return t.index = c, true;
1912
- if (c) return t.index = c.index, c.output?.length && t.output.push(...c.output), true;
1913
- {
1914
- const Z = t.output.length;
1915
- if (!n(t)) return s.set(u, false), false;
1916
- {
1917
- const D = t.index, U = t.output.length;
1918
- if (U > Z) {
1919
- const ee = t.output.slice(Z, U);
1920
- s.set(u, {
1921
- index: D,
1922
- output: ee
1923
- });
1924
- } else s.set(u, D);
1925
- return true;
1926
- }
1927
- }
1928
- };
1929
- };
1930
- })(), E = (r)=>{
1931
- let e;
1932
- return (n)=>(e || (e = v(r())), e(n));
1933
- }, v = Y((r)=>{
1934
- if (d(r)) return Q(r) ? E(r) : r;
1935
- if (b(r) || X(r)) return i(r);
1936
- if (A(r)) return x(r);
1937
- if (K(r)) return l(Object.values(r));
1938
- throw new Error("Invalid rule");
1939
- }), P = "abcdefghijklmnopqrstuvwxyz", ir = (r)=>{
1940
- let e = "";
1941
- for(; r > 0;){
1942
- const n = (r - 1) % 26;
1943
- e = P[n] + e, r = Math.floor((r - 1) / 26);
1944
- }
1945
- return e;
1946
- }, O = (r)=>{
1947
- let e = 0;
1948
- for(let n = 0, a = r.length; n < a; n++)e = 26 * e + P.indexOf(r[n]) + 1;
1949
- return e;
1950
- }, S = (r, e)=>{
1951
- if (e < r) return S(e, r);
1952
- const n = [];
1953
- for(; r <= e;)n.push(r++);
1954
- return n;
1955
- }, or = (r, e, n)=>S(r, e).map((a)=>String(a).padStart(n, "0")), R = (r, e)=>S(O(r), O(e)).map(ir), p = (r)=>r, z = (r)=>ur((e)=>rr(e, r, {
1956
- memoization: false
1957
- }).join("")), ur = (r)=>{
1958
- const e = {};
1959
- return (n)=>e[n] ?? (e[n] = r(n));
1960
- }, sr = i(/^\*\*\/\*$/, ".*"), cr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r, e, n)=>`.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}`), lr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r, e, n, a)=>`.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}(?:${a.replaceAll(",", "|").replaceAll(".", "\\.")})`), y = i(/\\./, p), pr = i(/[$.*+?^(){}[\]\|]/, (r)=>`\\${r}`), vr = i(/./, p), hr = i(/^(?:!!)*!(.*)$/, (r, e)=>`(?!^${L(e)}$).*?`), dr = i(/^(!!)+/, ""), fr = l([
1961
- hr,
1962
- dr
1963
- ]), xr = i(/\/(\*\*\/)+/, "(?:/.+/|/)"), gr = i(/^(\*\*\/)+/, "(?:^|.*/)"), mr = i(/\/(\*\*)$/, "(?:/.*|$)"), _r = i(/\*\*/, ".*"), j = l([
1964
- xr,
1965
- gr,
1966
- mr,
1967
- _r
1968
- ]), Sr = i(/\*\/(?!\*\*\/)/, "[^/]*/"), yr = i(/\*/, "[^/]*"), N = l([
1969
- Sr,
1970
- yr
1971
- ]), k = i("?", "[^/]"), $r = i("[", p), wr = i("]", p), Ar = i(/[!^]/, "^/"), br = i(/[a-z]-[a-z]|[0-9]-[0-9]/i, p), Cr = i(/[$.*+?^(){}[\|]/, (r)=>`\\${r}`), Mr = i(/[^\]]/, p), Er = l([
1972
- y,
1973
- Cr,
1974
- br,
1975
- Mr
1976
- ]), B = x([
1977
- $r,
1978
- tr(Ar),
1979
- f(Er),
1980
- wr
1981
- ]), Pr = i("{", "(?:"), Or = i("}", ")"), Rr = i(/(\d+)\.\.(\d+)/, (r, e, n)=>or(+e, +n, Math.min(e.length, n.length)).join("|")), zr = i(/([a-z]+)\.\.([a-z]+)/, (r, e, n)=>R(e, n).join("|")), jr = i(/([A-Z]+)\.\.([A-Z]+)/, (r, e, n)=>R(e.toLowerCase(), n.toLowerCase()).join("|").toUpperCase()), Nr = l([
1982
- Rr,
1983
- zr,
1984
- jr
1985
- ]), I = x([
1986
- Pr,
1987
- Nr,
1988
- Or
1989
- ]), kr = i("{", "(?:"), Br = i("}", ")"), Ir = i(",", "|"), Fr = i(/[$.*+?^(){[\]\|]/, (r)=>`\\${r}`), Lr = i(/[^}]/, p), Zr = E(()=>F), Dr = l([
1990
- j,
1991
- N,
1992
- k,
1993
- B,
1994
- I,
1995
- Zr,
1996
- y,
1997
- Fr,
1998
- Ir,
1999
- Lr
2000
- ]), F = x([
2001
- kr,
2002
- f(Dr),
2003
- Br
2004
- ]), Ur = f(l([
2005
- sr,
2006
- cr,
2007
- lr,
2008
- fr,
2009
- j,
2010
- N,
2011
- k,
2012
- B,
2013
- I,
2014
- F,
2015
- y,
2016
- pr,
2017
- vr
2018
- ])), Vr = Ur, Gr = z(Vr), L = Gr, Tr = i(/\\./, p), qr = i(/./, p), Hr = i(/\*\*\*+/, "*"), Jr = i(/([^/{[(!])\*\*/, (r, e)=>`${e}*`), Qr = i(/(^|.)\*\*(?=[^*/)\]}])/, (r, e)=>`${e}*`), Wr = f(l([
2019
- Tr,
2020
- Hr,
2021
- Jr,
2022
- Qr,
2023
- qr
2024
- ])), Kr = Wr, Xr = z(Kr), Yr = Xr, $ = (r, e)=>{
2025
- const n = Array.isArray(r) ? r : [
2026
- r
2027
- ];
2028
- if (!n.length) return false;
2029
- const a = n.map($.compile), t = n.every((s)=>/(\/(?:\*\*)?|\[\/\])$/.test(s)), o = e.replace(/[\\\/]+/g, "/").replace(/\/$/, t ? "/" : "");
2030
- return a.some((s)=>s.test(o));
2031
- };
2032
- $.compile = (r)=>new RegExp(`^${L(Yr(r))}$`, "s");
2033
- var re = $;
2034
- return J(w);
2035
- })();
2036
- return __lib__.default || __lib__;
2037
- };
2038
- let _match;
2039
- const zeptomatch = (path, pattern)=>{
2040
- if (!_match) {
2041
- _match = _lazyMatch();
2042
- _lazyMatch = null;
2043
- }
2044
- return _match(path, pattern);
2045
- };
2046
- const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
2047
- function normalizeWindowsPath(input = "") {
2048
- if (!input) return input;
2049
- return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r)=>r.toUpperCase());
2050
- }
2051
- const _UNC_REGEX = /^[/\\]{2}/;
2052
- const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
2053
- const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
2054
- const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
2055
- const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
2056
- const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
2057
- const sep = "/";
2058
- const normalize = function(path) {
2059
- if (0 === path.length) return ".";
2060
- path = normalizeWindowsPath(path);
2061
- const isUNCPath = path.match(_UNC_REGEX);
2062
- const isPathAbsolute = isAbsolute(path);
2063
- const trailingSeparator = "/" === path[path.length - 1];
2064
- path = normalizeString(path, !isPathAbsolute);
2065
- if (0 === path.length) {
2066
- if (isPathAbsolute) return "/";
2067
- return trailingSeparator ? "./" : ".";
2068
- }
2069
- if (trailingSeparator) path += "/";
2070
- if (_DRIVE_LETTER_RE.test(path)) path += "/";
2071
- if (isUNCPath) {
2072
- if (!isPathAbsolute) return `//./${path}`;
2073
- return `//${path}`;
2074
- }
2075
- return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
2076
- };
2077
- const join = function(...segments) {
2078
- let path = "";
2079
- for (const seg of segments)if (seg) if (path.length > 0) {
2080
- const pathTrailing = "/" === path[path.length - 1];
2081
- const segLeading = "/" === seg[0];
2082
- const both = pathTrailing && segLeading;
2083
- if (both) path += seg.slice(1);
2084
- else path += pathTrailing || segLeading ? seg : `/${seg}`;
2085
- } else path += seg;
2086
- return normalize(path);
2087
- };
2088
- function pathe_M_eThtNZ_cwd() {
2089
- if ("undefined" != typeof process && "function" == typeof process.cwd) return process.cwd().replace(/\\/g, "/");
2090
- return "/";
2091
- }
2092
- const resolve = function(...arguments_) {
2093
- arguments_ = arguments_.map((argument)=>normalizeWindowsPath(argument));
2094
- let resolvedPath = "";
2095
- let resolvedAbsolute = false;
2096
- for(let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--){
2097
- const path = index >= 0 ? arguments_[index] : pathe_M_eThtNZ_cwd();
2098
- if (path && 0 !== path.length) {
2099
- resolvedPath = `${path}/${resolvedPath}`;
2100
- resolvedAbsolute = isAbsolute(path);
2101
- }
2102
- }
2103
- resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
2104
- if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
2105
- return resolvedPath.length > 0 ? resolvedPath : ".";
2106
- };
2107
- function normalizeString(path, allowAboveRoot) {
2108
- let res = "";
2109
- let lastSegmentLength = 0;
2110
- let lastSlash = -1;
2111
- let dots = 0;
2112
- let char = null;
2113
- for(let index = 0; index <= path.length; ++index){
2114
- if (index < path.length) char = path[index];
2115
- else if ("/" === char) break;
2116
- else char = "/";
2117
- if ("/" === char) {
2118
- if (lastSlash === index - 1 || 1 === dots) ;
2119
- else if (2 === dots) {
2120
- if (res.length < 2 || 2 !== lastSegmentLength || "." !== res[res.length - 1] || "." !== res[res.length - 2]) {
2121
- if (res.length > 2) {
2122
- const lastSlashIndex = res.lastIndexOf("/");
2123
- if (-1 === lastSlashIndex) {
2124
- res = "";
2125
- lastSegmentLength = 0;
2126
- } else {
2127
- res = res.slice(0, lastSlashIndex);
2128
- lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
2129
- }
2130
- lastSlash = index;
2131
- dots = 0;
2132
- continue;
2133
- } else if (res.length > 0) {
2134
- res = "";
2135
- lastSegmentLength = 0;
2136
- lastSlash = index;
2137
- dots = 0;
2138
- continue;
2139
- }
2140
- }
2141
- if (allowAboveRoot) {
2142
- res += res.length > 0 ? "/.." : "..";
2143
- lastSegmentLength = 2;
2144
- }
2145
- } else {
2146
- if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
2147
- else res = path.slice(lastSlash + 1, index);
2148
- lastSegmentLength = index - lastSlash - 1;
2149
- }
2150
- lastSlash = index;
2151
- dots = 0;
2152
- } else if ("." === char && -1 !== dots) ++dots;
2153
- else dots = -1;
2154
- }
2155
- return res;
2156
- }
2157
- const isAbsolute = function(p) {
2158
- return _IS_ABSOLUTE_RE.test(p);
2159
- };
2160
- const toNamespacedPath = function(p) {
2161
- return normalizeWindowsPath(p);
2162
- };
2163
- const extname = function(p) {
2164
- if (".." === p) return "";
2165
- const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
2166
- return match && match[1] || "";
2167
- };
2168
- const pathe_M_eThtNZ_relative = function(from, to) {
2169
- const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
2170
- const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
2171
- if (":" === _to[0][1] && ":" === _from[0][1] && _from[0] !== _to[0]) return _to.join("/");
2172
- const _fromCopy = [
2173
- ..._from
2174
- ];
2175
- for (const segment of _fromCopy){
2176
- if (_to[0] !== segment) break;
2177
- _from.shift();
2178
- _to.shift();
2179
- }
2180
- return [
2181
- ..._from.map(()=>".."),
2182
- ..._to
2183
- ].join("/");
2184
- };
2185
- const dirname = function(p) {
2186
- const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
2187
- if (1 === segments.length && _DRIVE_LETTER_RE.test(segments[0])) segments[0] += "/";
2188
- return segments.join("/") || (isAbsolute(p) ? "/" : ".");
2189
- };
2190
- const pathe_M_eThtNZ_format = function(p) {
2191
- const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
2192
- const segments = [
2193
- p.root,
2194
- p.dir,
2195
- p.base ?? (p.name ?? "") + ext
2196
- ].filter(Boolean);
2197
- return normalizeWindowsPath(p.root ? resolve(...segments) : segments.join("/"));
2198
- };
2199
- const basename = function(p, extension) {
2200
- const segments = normalizeWindowsPath(p).split("/");
2201
- let lastSegment = "";
2202
- for(let i = segments.length - 1; i >= 0; i--){
2203
- const val = segments[i];
2204
- if (val) {
2205
- lastSegment = val;
2206
- break;
2207
- }
2208
- }
2209
- return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
2210
- };
2211
- const parse = function(p) {
2212
- const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
2213
- const base = basename(p);
2214
- const extension = extname(base);
2215
- return {
2216
- root,
2217
- dir: dirname(p),
2218
- base,
2219
- ext: extension,
2220
- name: base.slice(0, base.length - extension.length)
2221
- };
2222
- };
2223
- const matchesGlob = (path, pattern)=>zeptomatch(pattern, normalize(path));
2224
- const _path = {
2225
- __proto__: null,
2226
- basename: basename,
2227
- dirname: dirname,
2228
- extname: extname,
2229
- format: pathe_M_eThtNZ_format,
2230
- isAbsolute: isAbsolute,
2231
- join: join,
2232
- matchesGlob: matchesGlob,
2233
- normalize: normalize,
2234
- normalizeString: normalizeString,
2235
- parse: parse,
2236
- relative: pathe_M_eThtNZ_relative,
2237
- resolve: resolve,
2238
- sep: sep,
2239
- toNamespacedPath: toNamespacedPath
2240
- };
2241
1419
  const formatRootStr = (rootStr, root)=>rootStr.replace('<rootDir>', normalize(root));
2242
1420
  function getAbsolutePath(base, filepath) {
2243
1421
  return isAbsolute(filepath) ? filepath : join(base, filepath);
@@ -2348,7 +1526,7 @@ const bgColor = (background, str)=>{
2348
1526
  };
2349
1527
  const isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI;
2350
1528
  const external_node_path_ = __webpack_require__("node:path");
2351
- const external_node_fs_ = __webpack_require__("node:fs");
1529
+ const external_node_fs_ = __webpack_require__("fs");
2352
1530
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
2353
1531
  function cleanPath(path) {
2354
1532
  let normalized = (0, external_node_path_.normalize)(path);
@@ -2922,7 +2100,7 @@ function isDynamicPattern(pattern, options) {
2922
2100
  const scan = picomatch.scan(pattern);
2923
2101
  return scan.isGlob || scan.negated;
2924
2102
  }
2925
- function dist_log(...tasks) {
2103
+ function log(...tasks) {
2926
2104
  console.log(`[tinyglobby ${/* @__PURE__ */ new Date().toLocaleTimeString("es")}]`, ...tasks);
2927
2105
  }
2928
2106
  const PARENT_DIRECTORY = /^(\/?\.\.)+/;
@@ -3010,7 +2188,7 @@ function getCrawler(patterns, inputOptions = {}) {
3010
2188
  debug: true
3011
2189
  } : inputOptions;
3012
2190
  const cwd = normalizeCwd(options.cwd);
3013
- if (options.debug) dist_log("globbing with:", {
2191
+ if (options.debug) log("globbing with:", {
3014
2192
  patterns,
3015
2193
  options,
3016
2194
  cwd
@@ -3031,7 +2209,7 @@ function getCrawler(patterns, inputOptions = {}) {
3031
2209
  ...options,
3032
2210
  patterns
3033
2211
  }, cwd, props);
3034
- if (options.debug) dist_log("internal processing patterns:", processed);
2212
+ if (options.debug) log("internal processing patterns:", processed);
3035
2213
  const matchOptions = {
3036
2214
  dot: options.dot,
3037
2215
  nobrace: false === options.braceExpansion,
@@ -3053,14 +2231,14 @@ function getCrawler(patterns, inputOptions = {}) {
3053
2231
  options.debug ? (p, isDirectory)=>{
3054
2232
  const path$1 = format(p, isDirectory);
3055
2233
  const matches = matcher(path$1);
3056
- if (matches) dist_log(`matched ${path$1}`);
2234
+ if (matches) log(`matched ${path$1}`);
3057
2235
  return matches;
3058
2236
  } : (p, isDirectory)=>matcher(format(p, isDirectory))
3059
2237
  ],
3060
2238
  exclude: options.debug ? (_, p)=>{
3061
2239
  const relativePath = formatExclude(p, true);
3062
2240
  const skipped = "." !== relativePath && !partialMatcher(relativePath) || ignore(relativePath);
3063
- skipped ? dist_log(`skipped ${p}`) : dist_log(`crawling ${p}`);
2241
+ skipped ? log(`skipped ${p}`) : log(`crawling ${p}`);
3064
2242
  return skipped;
3065
2243
  } : (_, p)=>{
3066
2244
  const relativePath = formatExclude(p, true);
@@ -3095,7 +2273,7 @@ function getCrawler(patterns, inputOptions = {}) {
3095
2273
  } else if (false === options.onlyFiles) fdirOptions.includeDirs = true;
3096
2274
  props.root = props.root.replace(BACKSLASHES, "");
3097
2275
  const root = props.root;
3098
- if (options.debug) dist_log("internal properties:", props);
2276
+ if (options.debug) log("internal properties:", props);
3099
2277
  const relative = cwd !== root && !options.absolute && buildRelative(cwd, props.root);
3100
2278
  return [
3101
2279
  new Builder(fdirOptions).crawl(root),
@@ -3139,21 +2317,6 @@ const globalApis = [
3139
2317
  'onTestFailed'
3140
2318
  ];
3141
2319
  const TS_CONFIG_FILE = 'tsconfig.json';
3142
- const dist_delimiter = /* @__PURE__ */ (()=>globalThis.process?.platform === "win32" ? ";" : ":")();
3143
- const _platforms = {
3144
- posix: void 0,
3145
- win32: void 0
3146
- };
3147
- const mix = (del = dist_delimiter)=>new Proxy(_path, {
3148
- get (_, prop) {
3149
- if ("delimiter" === prop) return del;
3150
- if ("posix" === prop) return posix;
3151
- if ("win32" === prop) return win32;
3152
- return _platforms[prop] || _path[prop];
3153
- }
3154
- });
3155
- const posix = /* @__PURE__ */ mix(":");
3156
- const win32 = /* @__PURE__ */ mix(";");
3157
2320
  const filterFiles = (testFiles, filters, dir)=>{
3158
2321
  if (!filters.length) return testFiles;
3159
2322
  const fileFilters = 'win32' === process.platform ? filters.map((f)=>f.split(posix.sep).join('/')) : filters;
@@ -3259,4 +2422,4 @@ const formatTestPath = (root, testFilePath)=>{
3259
2422
  return prettyTestPath(testPath);
3260
2423
  };
3261
2424
  const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js");
3262
- export { ADDITIONAL_NODE_BUILTINS, DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME, ROOT_SUITE_NAME, TEMP_RSTEST_OUTPUT_DIR, TEMP_RSTEST_OUTPUT_DIR_GLOB, TS_CONFIG_FILE, basename, bgColor, castArray, clearScreen, dirname, external_node_module_createRequire, filterProjects, formatError, formatRootStr, formatTestPath, getAbsolutePath, getSetupFiles, getTaskNameWithPrefix, getTestEntries, glob, globalApis, isAbsolute, isBuiltin, isDebug, isDynamicPattern, isObject, isTTY, join, lstat, needFlagExperimentalDetectModule, node_process, normalize, pathe_M_eThtNZ_relative, posix, prettyTestPath, prettyTime, promises_stat, readdir, realpath, resolve, serializableConfig, src_logger, undoSerializableConfig, writeFile };
2425
+ export { ADDITIONAL_NODE_BUILTINS, DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME, ROOT_SUITE_NAME, TEMP_RSTEST_OUTPUT_DIR, TEMP_RSTEST_OUTPUT_DIR_GLOB, TS_CONFIG_FILE, bgColor, castArray, filterProjects, formatError, formatRootStr, formatTestPath, getAbsolutePath, getSetupFiles, getTaskNameWithPrefix, getTestEntries, glob, globalApis, isDynamicPattern, isObject, isTTY, lstat, needFlagExperimentalDetectModule, prettyTestPath, prettyTime, promises_stat, readdir, realpath, serializableConfig, undoSerializableConfig, writeFile };