@ariestools/toolchain 8.7.26 → 8.7.28
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.
- package/dist/actions/analyze.d.ts +27 -9
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/api-exposure/config.d.ts +12 -4
- package/dist/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
- package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
- package/dist/actions/api-exposure/reporters.d.ts +3 -1
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
- package/dist/actions/api-exposure/scoring.d.ts +3 -1
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
- package/dist/actions/api-exposure/types.d.ts +48 -16
- package/dist/actions/api-exposure/types.d.ts.map +1 -1
- package/dist/actions/barrel/index.d.ts +0 -1
- package/dist/actions/barrel/index.d.ts.map +1 -1
- package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/dead/analyzePackage.d.ts +18 -6
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
- package/dist/actions/dead/collectSymbols.d.ts +12 -4
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
- package/dist/actions/dead/evaluateRules.d.ts +3 -1
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
- package/dist/actions/dead/ruleNames.d.ts +3 -1
- package/dist/actions/dead/ruleNames.d.ts.map +1 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
- package/dist/actions/dead/sourceEdits.d.ts +3 -1
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +24 -8
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts +9 -3
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts +3 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +7 -3
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +3 -1
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +13 -5
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +24 -8
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +68 -25
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/gitignore.d.ts +3 -1
- package/dist/actions/gitignore.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +15 -5
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +6 -2
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +36 -12
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +15 -5
- package/dist/actions/lintPackageFilter.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts +3 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +3 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +6 -2
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +6 -2
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +15 -5
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +162 -54
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts +3 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +26 -1
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/detectProfile.d.ts +8 -0
- package/dist/actions/skills/detectProfile.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +14 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +9 -3
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +3 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts +6 -2
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts +6 -2
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts +3 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts +3 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +15 -5
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +15 -5
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +1134 -2638
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +505 -2152
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +866 -2501
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +175 -100
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +175 -100
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +263 -151
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +263 -151
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +263 -151
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +619 -2198
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +892 -2511
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +263 -151
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +329 -2032
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +165 -88
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +4828 -851
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +3115 -4443
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/copyAssetFiles.d.ts +3 -1
- package/dist/lib/copyAssetFiles.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/match.d.ts +6 -2
- package/dist/lib/match.d.ts.map +1 -1
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts +3 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts +6 -2
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +15 -5
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/resolveVersions.d.ts +15 -5
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts +12 -4
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/pm/PackageManager.d.ts +45 -15
- package/dist/pm/PackageManager.d.ts.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/dist/xy/common/work/options.d.ts +3 -1
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -22,11 +22,41 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
25
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
26
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
27
|
+
let index = string.indexOf(substring);
|
|
28
|
+
if (index === -1) return string;
|
|
29
|
+
const substringLength = substring.length;
|
|
30
|
+
let endIndex = 0;
|
|
31
|
+
let returnValue = "";
|
|
32
|
+
do {
|
|
33
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
34
|
+
endIndex = index + substringLength;
|
|
35
|
+
index = string.indexOf(substring, endIndex);
|
|
36
|
+
} while (index !== -1);
|
|
37
|
+
returnValue += string.slice(endIndex);
|
|
38
|
+
return returnValue;
|
|
39
|
+
}
|
|
40
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
41
|
+
let endIndex = 0;
|
|
42
|
+
let returnValue = "";
|
|
43
|
+
do {
|
|
44
|
+
const isGotCR = string[index - 1] === "\r";
|
|
45
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
46
|
+
endIndex = index + 1;
|
|
47
|
+
index = string.indexOf("\n", endIndex);
|
|
48
|
+
} while (index !== -1);
|
|
49
|
+
returnValue += string.slice(endIndex);
|
|
50
|
+
return returnValue;
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
26
54
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
55
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
56
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
57
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
58
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
59
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
30
60
|
const styles$1 = {
|
|
31
61
|
modifier: {
|
|
32
62
|
reset: [0, 0],
|
|
@@ -34,6 +64,10 @@ const styles$1 = {
|
|
|
34
64
|
dim: [2, 22],
|
|
35
65
|
italic: [3, 23],
|
|
36
66
|
underline: [4, 24],
|
|
67
|
+
underlineDouble: ["4:2", 24],
|
|
68
|
+
underlineCurly: ["4:3", 24],
|
|
69
|
+
underlineDotted: ["4:4", 24],
|
|
70
|
+
underlineDashed: ["4:5", 24],
|
|
37
71
|
overline: [53, 55],
|
|
38
72
|
inverse: [7, 27],
|
|
39
73
|
hidden: [8, 28],
|
|
@@ -78,22 +112,43 @@ const styles$1 = {
|
|
|
78
112
|
bgMagentaBright: [105, 49],
|
|
79
113
|
bgCyanBright: [106, 49],
|
|
80
114
|
bgWhiteBright: [107, 49]
|
|
115
|
+
},
|
|
116
|
+
underlineColor: {
|
|
117
|
+
underlineBlack: ["58;5;0", 59],
|
|
118
|
+
underlineRed: ["58;5;1", 59],
|
|
119
|
+
underlineGreen: ["58;5;2", 59],
|
|
120
|
+
underlineYellow: ["58;5;3", 59],
|
|
121
|
+
underlineBlue: ["58;5;4", 59],
|
|
122
|
+
underlineMagenta: ["58;5;5", 59],
|
|
123
|
+
underlineCyan: ["58;5;6", 59],
|
|
124
|
+
underlineWhite: ["58;5;7", 59],
|
|
125
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
126
|
+
underlineGray: ["58;5;8", 59],
|
|
127
|
+
underlineGrey: ["58;5;8", 59],
|
|
128
|
+
underlineRedBright: ["58;5;9", 59],
|
|
129
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
130
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
131
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
132
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
133
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
134
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
81
135
|
}
|
|
82
136
|
};
|
|
83
137
|
Object.keys(styles$1.modifier);
|
|
84
138
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
85
139
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
140
|
+
Object.keys(styles$1.underlineColor);
|
|
86
141
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
87
142
|
function assembleStyles() {
|
|
88
143
|
const codes = /* @__PURE__ */ new Map();
|
|
89
144
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
90
145
|
for (const [styleName, style] of Object.entries(group)) {
|
|
91
146
|
styles$1[styleName] = {
|
|
92
|
-
open: `\
|
|
93
|
-
close: `\
|
|
147
|
+
open: `\u{1B}[${style[0]}m`,
|
|
148
|
+
close: `\u{1B}[${style[1]}m`
|
|
94
149
|
};
|
|
95
150
|
group[styleName] = styles$1[styleName];
|
|
96
|
-
codes.set(style[0], style[1]);
|
|
151
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
97
152
|
}
|
|
98
153
|
Object.defineProperty(styles$1, groupName, {
|
|
99
154
|
value: group,
|
|
@@ -106,12 +161,16 @@ function assembleStyles() {
|
|
|
106
161
|
});
|
|
107
162
|
styles$1.color.close = "\x1B[39m";
|
|
108
163
|
styles$1.bgColor.close = "\x1B[49m";
|
|
164
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
109
165
|
styles$1.color.ansi = wrapAnsi16();
|
|
110
166
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
111
167
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
112
168
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
113
169
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
114
170
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
171
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
172
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
173
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
115
174
|
Object.defineProperties(styles$1, {
|
|
116
175
|
rgbToAnsi256: {
|
|
117
176
|
value(red, green, blue) {
|
|
@@ -126,7 +185,7 @@ function assembleStyles() {
|
|
|
126
185
|
},
|
|
127
186
|
hexToRgb: {
|
|
128
187
|
value(hex) {
|
|
129
|
-
const matches = /[
|
|
188
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
130
189
|
if (!matches) return [
|
|
131
190
|
0,
|
|
132
191
|
0,
|
|
@@ -186,7 +245,7 @@ function assembleStyles() {
|
|
|
186
245
|
}
|
|
187
246
|
const ansiStyles = assembleStyles();
|
|
188
247
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
248
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
190
249
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
191
250
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
192
251
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -197,12 +256,15 @@ const { env } = process$1;
|
|
|
197
256
|
let flagForceColor;
|
|
198
257
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
199
258
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
259
|
+
function hasNumericForceColor() {
|
|
260
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
261
|
+
}
|
|
200
262
|
function envForceColor() {
|
|
201
|
-
if ("FORCE_COLOR" in env)
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
263
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
264
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
265
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
266
|
+
if (!hasNumericForceColor()) return;
|
|
267
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
206
268
|
}
|
|
207
269
|
function translateLevel(level) {
|
|
208
270
|
if (level === 0) return false;
|
|
@@ -222,6 +284,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
222
284
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
223
285
|
if (hasFlag("color=256")) return 2;
|
|
224
286
|
}
|
|
287
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
225
288
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
226
289
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
227
290
|
const min = forceColor || 0;
|
|
@@ -246,19 +309,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
246
309
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
247
310
|
return min;
|
|
248
311
|
}
|
|
249
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
312
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
250
313
|
if (env.COLORTERM === "truecolor") return 3;
|
|
251
314
|
if (env.TERM === "xterm-kitty") return 3;
|
|
252
315
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
253
316
|
if (env.TERM === "wezterm") return 3;
|
|
254
317
|
if ("TERM_PROGRAM" in env) {
|
|
255
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
318
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
256
319
|
switch (env.TERM_PROGRAM) {
|
|
257
320
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
258
321
|
case "Apple_Terminal": return 2;
|
|
259
322
|
}
|
|
260
323
|
}
|
|
261
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
324
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
262
325
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
263
326
|
if ("COLORTERM" in env) return 1;
|
|
264
327
|
return min;
|
|
@@ -269,55 +332,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
269
332
|
...options
|
|
270
333
|
}));
|
|
271
334
|
}
|
|
272
|
-
|
|
335
|
+
//#endregion
|
|
336
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
337
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
273
338
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
274
339
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
275
340
|
};
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
278
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
279
|
-
let index = string.indexOf(substring);
|
|
280
|
-
if (index === -1) return string;
|
|
281
|
-
const substringLength = substring.length;
|
|
282
|
-
let endIndex = 0;
|
|
283
|
-
let returnValue = "";
|
|
284
|
-
do {
|
|
285
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
286
|
-
endIndex = index + substringLength;
|
|
287
|
-
index = string.indexOf(substring, endIndex);
|
|
288
|
-
} while (index !== -1);
|
|
289
|
-
returnValue += string.slice(endIndex);
|
|
290
|
-
return returnValue;
|
|
291
|
-
}
|
|
292
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
293
|
-
let endIndex = 0;
|
|
294
|
-
let returnValue = "";
|
|
295
|
-
do {
|
|
296
|
-
const gotCR = string[index - 1] === "\r";
|
|
297
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
298
|
-
endIndex = index + 1;
|
|
299
|
-
index = string.indexOf("\n", endIndex);
|
|
300
|
-
} while (index !== -1);
|
|
301
|
-
returnValue += string.slice(endIndex);
|
|
302
|
-
return returnValue;
|
|
303
|
-
}
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
306
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
307
341
|
const GENERATOR = Symbol("GENERATOR");
|
|
308
342
|
const STYLER = Symbol("STYLER");
|
|
309
343
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
310
|
-
const
|
|
311
|
-
"ansi",
|
|
312
|
-
"ansi",
|
|
313
|
-
"ansi256",
|
|
314
|
-
"ansi16m"
|
|
315
|
-
];
|
|
344
|
+
const LEVEL = Symbol("LEVEL");
|
|
316
345
|
const styles = Object.create(null);
|
|
346
|
+
const assertValidLevel = (level) => {
|
|
347
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
348
|
+
};
|
|
349
|
+
const levelDescriptor = {
|
|
350
|
+
enumerable: true,
|
|
351
|
+
get() {
|
|
352
|
+
return this[LEVEL];
|
|
353
|
+
},
|
|
354
|
+
set(level) {
|
|
355
|
+
assertValidLevel(level);
|
|
356
|
+
this[LEVEL] = level;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
317
359
|
const applyOptions = (object, options = {}) => {
|
|
318
|
-
if (options.level
|
|
360
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
319
361
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
320
|
-
object
|
|
362
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
321
363
|
};
|
|
322
364
|
const chalkFactory = (options) => {
|
|
323
365
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -339,35 +381,58 @@ styles.visible = { get() {
|
|
|
339
381
|
Object.defineProperty(this, "visible", { value: builder });
|
|
340
382
|
return builder;
|
|
341
383
|
} };
|
|
342
|
-
const
|
|
384
|
+
const createModelConverters = (model, type) => {
|
|
385
|
+
const style = ansiStyles[type];
|
|
343
386
|
if (model === "rgb") {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return
|
|
387
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
388
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
389
|
+
return [
|
|
390
|
+
ansi,
|
|
391
|
+
ansi,
|
|
392
|
+
ansi256,
|
|
393
|
+
style.ansi16m
|
|
394
|
+
];
|
|
347
395
|
}
|
|
348
|
-
if (model === "hex")
|
|
349
|
-
|
|
396
|
+
if (model === "hex") {
|
|
397
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
398
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
399
|
+
return [
|
|
400
|
+
ansi,
|
|
401
|
+
ansi,
|
|
402
|
+
ansi256,
|
|
403
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
404
|
+
];
|
|
405
|
+
}
|
|
406
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
407
|
+
return [
|
|
408
|
+
ansi,
|
|
409
|
+
ansi,
|
|
410
|
+
style.ansi256,
|
|
411
|
+
style.ansi256
|
|
412
|
+
];
|
|
350
413
|
};
|
|
351
414
|
for (const model of [
|
|
352
415
|
"rgb",
|
|
353
416
|
"hex",
|
|
354
417
|
"ansi256"
|
|
355
418
|
]) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
419
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
420
|
+
for (const [styleName, type] of [
|
|
421
|
+
[model, "color"],
|
|
422
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
423
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
424
|
+
]) {
|
|
425
|
+
const { close } = ansiStyles[type];
|
|
426
|
+
const converters = createModelConverters(model, type);
|
|
427
|
+
styles[styleName] = { get() {
|
|
428
|
+
const styleFunction = function(first, second, third) {
|
|
429
|
+
const open = converters[this.level](first, second, third);
|
|
430
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
431
|
+
};
|
|
432
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
433
|
+
return styleFunction;
|
|
434
|
+
} };
|
|
435
|
+
}
|
|
371
436
|
}
|
|
372
437
|
const proto = Object.defineProperties(() => {}, {
|
|
373
438
|
...styles,
|
|
@@ -400,15 +465,19 @@ const createStyler = (open, close, parent) => {
|
|
|
400
465
|
};
|
|
401
466
|
};
|
|
402
467
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
403
|
-
const builder = (...arguments_) =>
|
|
468
|
+
const builder = (...arguments_) => {
|
|
469
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
470
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
471
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
472
|
+
};
|
|
404
473
|
Object.setPrototypeOf(builder, proto);
|
|
405
|
-
builder[GENERATOR] = self;
|
|
474
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
406
475
|
builder[STYLER] = _styler;
|
|
407
476
|
builder[IS_EMPTY] = _isEmpty;
|
|
408
477
|
return builder;
|
|
409
478
|
};
|
|
410
479
|
const applyStyle = (self, string) => {
|
|
411
|
-
if (self
|
|
480
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
412
481
|
let styler = self[STYLER];
|
|
413
482
|
if (styler === void 0) return string;
|
|
414
483
|
const { openAll, closeAll } = styler;
|
|
@@ -420,7 +489,10 @@ const applyStyle = (self, string) => {
|
|
|
420
489
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
421
490
|
return openAll + string + closeAll;
|
|
422
491
|
};
|
|
423
|
-
Object.defineProperties(createChalk.prototype,
|
|
492
|
+
Object.defineProperties(createChalk.prototype, {
|
|
493
|
+
...styles,
|
|
494
|
+
level: levelDescriptor
|
|
495
|
+
});
|
|
424
496
|
const chalk = createChalk();
|
|
425
497
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
426
498
|
//#endregion
|
|
@@ -521,7 +593,7 @@ function Ut(n, t = {}) {
|
|
|
521
593
|
function es(n, t = {}) {
|
|
522
594
|
return new I(n, t).iterate();
|
|
523
595
|
}
|
|
524
|
-
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
596
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
525
597
|
//#endregion
|
|
526
598
|
//#region src/lib/copyAssetFiles.ts
|
|
527
599
|
__esmMin((() => {
|
|
@@ -1498,7 +1570,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1498
1570
|
}
|
|
1499
1571
|
}
|
|
1500
1572
|
getRemainingTTL(t) {
|
|
1501
|
-
return this.#f.has(t) ?
|
|
1573
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1502
1574
|
}
|
|
1503
1575
|
#M() {
|
|
1504
1576
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1534,7 +1606,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1534
1606
|
let h = this.#f.get(o);
|
|
1535
1607
|
if (h === void 0) return 0;
|
|
1536
1608
|
let a = t[h], l = e[h];
|
|
1537
|
-
if (!a || !l) return
|
|
1609
|
+
if (!a || !l) return 1 / 0;
|
|
1538
1610
|
return a - ((i || r()) - l);
|
|
1539
1611
|
}, this.#v = (o) => {
|
|
1540
1612
|
let h = e[o], a = t[o];
|
|
@@ -2278,12 +2350,13 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2278
2350
|
return oi;
|
|
2279
2351
|
}
|
|
2280
2352
|
};
|
|
2353
|
+
vi = realpathSync.native;
|
|
2281
2354
|
wt = {
|
|
2282
2355
|
lstatSync,
|
|
2283
2356
|
readdir,
|
|
2284
2357
|
readdirSync,
|
|
2285
2358
|
readlinkSync,
|
|
2286
|
-
realpathSync:
|
|
2359
|
+
realpathSync: vi,
|
|
2287
2360
|
promises: {
|
|
2288
2361
|
lstat,
|
|
2289
2362
|
readdir: readdir$1,
|
|
@@ -2321,14 +2394,14 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2321
2394
|
Ie = yt | j | Lt;
|
|
2322
2395
|
Fi = 1023;
|
|
2323
2396
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2324
|
-
ze = new ft({ max:
|
|
2397
|
+
ze = new ft({ max: 4096 });
|
|
2325
2398
|
bt = (n) => {
|
|
2326
2399
|
let t = ze.get(n);
|
|
2327
2400
|
if (t) return t;
|
|
2328
2401
|
let e = n.normalize("NFKD");
|
|
2329
2402
|
return ze.set(n, e), e;
|
|
2330
2403
|
};
|
|
2331
|
-
Be = new ft({ max:
|
|
2404
|
+
Be = new ft({ max: 4096 });
|
|
2332
2405
|
_t = (n) => {
|
|
2333
2406
|
let t = Be.get(n);
|
|
2334
2407
|
if (t) return t;
|
|
@@ -2341,7 +2414,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2341
2414
|
}
|
|
2342
2415
|
};
|
|
2343
2416
|
ne = class extends ft {
|
|
2344
|
-
constructor(t =
|
|
2417
|
+
constructor(t = 16384) {
|
|
2345
2418
|
super({
|
|
2346
2419
|
maxSize: t,
|
|
2347
2420
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2810,7 +2883,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
2810
2883
|
#n;
|
|
2811
2884
|
nocase;
|
|
2812
2885
|
#r;
|
|
2813
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2886
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2814
2887
|
this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2815
2888
|
let h = e.resolve(t);
|
|
2816
2889
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
|
|
@@ -3378,7 +3451,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3378
3451
|
includeChildMatches;
|
|
3379
3452
|
constructor(t, e, s) {
|
|
3380
3453
|
if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
|
|
3381
|
-
this.maxDepth = s.maxDepth ||
|
|
3454
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3382
3455
|
this.#t.length = 0;
|
|
3383
3456
|
}));
|
|
3384
3457
|
}
|
|
@@ -3415,7 +3488,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3415
3488
|
return this.matchCheckTest(r, e);
|
|
3416
3489
|
}
|
|
3417
3490
|
matchCheckTest(t, e) {
|
|
3418
|
-
return t && (this.maxDepth ===
|
|
3491
|
+
return t && (this.maxDepth === 1 / 0 || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
|
|
3419
3492
|
}
|
|
3420
3493
|
matchCheckSync(t, e) {
|
|
3421
3494
|
if (e && this.opts.nodir) return;
|
|
@@ -3472,7 +3545,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3472
3545
|
};
|
|
3473
3546
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3474
3547
|
for (let h of s.subwalkTargets()) {
|
|
3475
|
-
if (this.maxDepth !==
|
|
3548
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3476
3549
|
r++;
|
|
3477
3550
|
let a = h.readdirCached();
|
|
3478
3551
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3503,7 +3576,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3503
3576
|
};
|
|
3504
3577
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3505
3578
|
for (let h of s.subwalkTargets()) {
|
|
3506
|
-
if (this.maxDepth !==
|
|
3579
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3507
3580
|
r++;
|
|
3508
3581
|
let a = h.readdirSync();
|
|
3509
3582
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3595,7 +3668,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3595
3668
|
patterns;
|
|
3596
3669
|
constructor(t, e) {
|
|
3597
3670
|
if (!e) throw new TypeError("glob options required");
|
|
3598
|
-
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth :
|
|
3671
|
+
if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
|
|
3599
3672
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3600
3673
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3601
3674
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3638,7 +3711,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3638
3711
|
async walk() {
|
|
3639
3712
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3640
3713
|
...this.opts,
|
|
3641
|
-
maxDepth: this.maxDepth !==
|
|
3714
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3642
3715
|
platform: this.platform,
|
|
3643
3716
|
nocase: this.nocase,
|
|
3644
3717
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3647,7 +3720,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3647
3720
|
walkSync() {
|
|
3648
3721
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3649
3722
|
...this.opts,
|
|
3650
|
-
maxDepth: this.maxDepth !==
|
|
3723
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3651
3724
|
platform: this.platform,
|
|
3652
3725
|
nocase: this.nocase,
|
|
3653
3726
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3656,7 +3729,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3656
3729
|
stream() {
|
|
3657
3730
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3658
3731
|
...this.opts,
|
|
3659
|
-
maxDepth: this.maxDepth !==
|
|
3732
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3660
3733
|
platform: this.platform,
|
|
3661
3734
|
nocase: this.nocase,
|
|
3662
3735
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3665,7 +3738,7 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3665
3738
|
streamSync() {
|
|
3666
3739
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3667
3740
|
...this.opts,
|
|
3668
|
-
maxDepth: this.maxDepth !==
|
|
3741
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3669
3742
|
platform: this.platform,
|
|
3670
3743
|
nocase: this.nocase,
|
|
3671
3744
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3716,7 +3789,9 @@ while (this[Le](this[Ft]()) && this[C].length);
|
|
|
3716
3789
|
});
|
|
3717
3790
|
Ze.glob = Ze;
|
|
3718
3791
|
}))();
|
|
3719
|
-
/**
|
|
3792
|
+
/**
|
|
3793
|
+
Glob patterns for binary/style assets copied alongside compiled output.
|
|
3794
|
+
*/
|
|
3720
3795
|
const ASSET_PATTERNS = [
|
|
3721
3796
|
"**/*.jpg",
|
|
3722
3797
|
"**/*.png",
|