@oclif/plugin-test-esbuild 0.5.139 → 0.5.141
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/README.md +1 -1
- package/dist/{chunk-YXPP4ZUR.js → chunk-7EKGHPU5.js} +44 -0
- package/dist/{chunk-CVYRJGDR.js → chunk-CDZ5O4CJ.js} +1 -1
- package/dist/{chunk-HPGMPWKK.js → chunk-LPEKLRLJ.js} +378 -161
- package/dist/{chunk-H3AOCJH2.js → chunk-SPJRFISZ.js} +1 -1
- package/dist/{chunk-NCSIJO3P.js → chunk-U3C275WD.js} +1 -1
- package/dist/{chunk-6JGJOB7P.js → chunk-X43BY2LQ.js} +1 -1
- package/dist/commands/esbuild.js +3 -3
- package/dist/commands/hello/index.js +3 -3
- package/dist/commands/hello/world.js +3 -3
- package/dist/hooks/init/init.js +3 -3
- package/dist/index.js +7 -7
- package/dist/{npa-JRZYFOMA.js → npa-MSYXREUM.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
|
|
|
17
17
|
$ bundle COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ bundle (--version)
|
|
20
|
-
@oclif/plugin-test-esbuild/0.5.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.141 linux-x64 node-v24.15.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -864,6 +864,48 @@ var require_coerce = __commonJS({
|
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
866
|
|
|
867
|
+
// node_modules/semver/functions/truncate.js
|
|
868
|
+
var require_truncate = __commonJS({
|
|
869
|
+
"node_modules/semver/functions/truncate.js"(exports, module) {
|
|
870
|
+
"use strict";
|
|
871
|
+
init_cjs_shims();
|
|
872
|
+
var parse = require_parse();
|
|
873
|
+
var constants = require_constants();
|
|
874
|
+
var SemVer = require_semver();
|
|
875
|
+
var truncate = (version, truncation, options) => {
|
|
876
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
|
877
|
+
return null;
|
|
878
|
+
}
|
|
879
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
880
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
881
|
+
};
|
|
882
|
+
var cloneInputVersion = (version, options) => {
|
|
883
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
884
|
+
return parse(versionStringToParse, options);
|
|
885
|
+
};
|
|
886
|
+
var doTruncation = (version, truncation) => {
|
|
887
|
+
if (isPrerelease(truncation)) {
|
|
888
|
+
return version.version;
|
|
889
|
+
}
|
|
890
|
+
version.prerelease = [];
|
|
891
|
+
switch (truncation) {
|
|
892
|
+
case "major":
|
|
893
|
+
version.minor = 0;
|
|
894
|
+
version.patch = 0;
|
|
895
|
+
break;
|
|
896
|
+
case "minor":
|
|
897
|
+
version.patch = 0;
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
return version.format();
|
|
901
|
+
};
|
|
902
|
+
var isPrerelease = (type) => {
|
|
903
|
+
return type.startsWith("pre");
|
|
904
|
+
};
|
|
905
|
+
module.exports = truncate;
|
|
906
|
+
}
|
|
907
|
+
});
|
|
908
|
+
|
|
867
909
|
// node_modules/semver/internal/lrucache.js
|
|
868
910
|
var require_lrucache = __commonJS({
|
|
869
911
|
"node_modules/semver/internal/lrucache.js"(exports, module) {
|
|
@@ -1914,6 +1956,7 @@ var require_semver2 = __commonJS({
|
|
|
1914
1956
|
var lte = require_lte();
|
|
1915
1957
|
var cmp = require_cmp();
|
|
1916
1958
|
var coerce = require_coerce();
|
|
1959
|
+
var truncate = require_truncate();
|
|
1917
1960
|
var Comparator = require_comparator();
|
|
1918
1961
|
var Range = require_range();
|
|
1919
1962
|
var satisfies = require_satisfies();
|
|
@@ -1952,6 +1995,7 @@ var require_semver2 = __commonJS({
|
|
|
1952
1995
|
lte,
|
|
1953
1996
|
cmp,
|
|
1954
1997
|
coerce,
|
|
1998
|
+
truncate,
|
|
1955
1999
|
Comparator,
|
|
1956
2000
|
Range,
|
|
1957
2001
|
satisfies,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_semver
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7EKGHPU5.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__require,
|
|
@@ -254,7 +254,7 @@ var require_package = __commonJS({
|
|
|
254
254
|
module.exports = {
|
|
255
255
|
name: "@oclif/core",
|
|
256
256
|
description: "base library for oclif CLIs",
|
|
257
|
-
version: "4.11.
|
|
257
|
+
version: "4.11.3",
|
|
258
258
|
author: "Salesforce",
|
|
259
259
|
bugs: "https://github.com/oclif/core/issues",
|
|
260
260
|
dependencies: {
|
|
@@ -269,10 +269,10 @@ var require_package = __commonJS({
|
|
|
269
269
|
"is-wsl": "^2.2.0",
|
|
270
270
|
lilconfig: "^3.1.3",
|
|
271
271
|
minimatch: "^10.2.5",
|
|
272
|
-
semver: "^7.
|
|
272
|
+
semver: "^7.8.0",
|
|
273
273
|
"string-width": "^4.2.3",
|
|
274
274
|
"supports-color": "^8",
|
|
275
|
-
tinyglobby: "^0.2.
|
|
275
|
+
tinyglobby: "^0.2.16",
|
|
276
276
|
"widest-line": "^3.1.0",
|
|
277
277
|
wordwrap: "^1.0.0",
|
|
278
278
|
"wrap-ansi": "^7.0.0"
|
|
@@ -293,6 +293,7 @@ var require_package = __commonJS({
|
|
|
293
293
|
"@types/indent-string": "^4.0.1",
|
|
294
294
|
"@types/mocha": "^10.0.10",
|
|
295
295
|
"@types/node": "^18",
|
|
296
|
+
"@types/picomatch": "^4.0.3",
|
|
296
297
|
"@types/pnpapi": "^0.0.5",
|
|
297
298
|
"@types/sinon": "^17.0.3",
|
|
298
299
|
"@types/supports-color": "^8.1.3",
|
|
@@ -219635,13 +219636,14 @@ var require_commonjs3 = __commonJS({
|
|
|
219635
219636
|
}
|
|
219636
219637
|
});
|
|
219637
219638
|
|
|
219638
|
-
// node_modules/picomatch/lib/constants.js
|
|
219639
|
+
// node_modules/@oclif/core/node_modules/picomatch/lib/constants.js
|
|
219639
219640
|
var require_constants = __commonJS({
|
|
219640
|
-
"node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
219641
|
+
"node_modules/@oclif/core/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
219641
219642
|
"use strict";
|
|
219642
219643
|
init_cjs_shims();
|
|
219643
219644
|
var WIN_SLASH = "\\\\/";
|
|
219644
219645
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
219646
|
+
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
219645
219647
|
var DOT_LITERAL = "\\.";
|
|
219646
219648
|
var PLUS_LITERAL = "\\+";
|
|
219647
219649
|
var QMARK_LITERAL = "\\?";
|
|
@@ -219692,6 +219694,7 @@ var require_constants = __commonJS({
|
|
|
219692
219694
|
SEP: "\\"
|
|
219693
219695
|
};
|
|
219694
219696
|
var POSIX_REGEX_SOURCE = {
|
|
219697
|
+
__proto__: null,
|
|
219695
219698
|
alnum: "a-zA-Z0-9",
|
|
219696
219699
|
alpha: "a-zA-Z",
|
|
219697
219700
|
ascii: "\\x00-\\x7F",
|
|
@@ -219708,6 +219711,7 @@ var require_constants = __commonJS({
|
|
|
219708
219711
|
xdigit: "A-Fa-f0-9"
|
|
219709
219712
|
};
|
|
219710
219713
|
module.exports = {
|
|
219714
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
219711
219715
|
MAX_LENGTH: 1024 * 64,
|
|
219712
219716
|
POSIX_REGEX_SOURCE,
|
|
219713
219717
|
// regular expressions
|
|
@@ -219835,9 +219839,9 @@ var require_constants = __commonJS({
|
|
|
219835
219839
|
}
|
|
219836
219840
|
});
|
|
219837
219841
|
|
|
219838
|
-
// node_modules/picomatch/lib/utils.js
|
|
219842
|
+
// node_modules/@oclif/core/node_modules/picomatch/lib/utils.js
|
|
219839
219843
|
var require_utils2 = __commonJS({
|
|
219840
|
-
"node_modules/picomatch/lib/utils.js"(exports) {
|
|
219844
|
+
"node_modules/@oclif/core/node_modules/picomatch/lib/utils.js"(exports) {
|
|
219841
219845
|
"use strict";
|
|
219842
219846
|
init_cjs_shims();
|
|
219843
219847
|
var {
|
|
@@ -219900,9 +219904,9 @@ var require_utils2 = __commonJS({
|
|
|
219900
219904
|
}
|
|
219901
219905
|
});
|
|
219902
219906
|
|
|
219903
|
-
// node_modules/picomatch/lib/scan.js
|
|
219907
|
+
// node_modules/@oclif/core/node_modules/picomatch/lib/scan.js
|
|
219904
219908
|
var require_scan = __commonJS({
|
|
219905
|
-
"node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
219909
|
+
"node_modules/@oclif/core/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
219906
219910
|
"use strict";
|
|
219907
219911
|
init_cjs_shims();
|
|
219908
219912
|
var utils = require_utils2();
|
|
@@ -220231,9 +220235,9 @@ var require_scan = __commonJS({
|
|
|
220231
220235
|
}
|
|
220232
220236
|
});
|
|
220233
220237
|
|
|
220234
|
-
// node_modules/picomatch/lib/parse.js
|
|
220238
|
+
// node_modules/@oclif/core/node_modules/picomatch/lib/parse.js
|
|
220235
220239
|
var require_parse = __commonJS({
|
|
220236
|
-
"node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
220240
|
+
"node_modules/@oclif/core/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
220237
220241
|
"use strict";
|
|
220238
220242
|
init_cjs_shims();
|
|
220239
220243
|
var constants = require_constants();
|
|
@@ -220261,6 +220265,213 @@ var require_parse = __commonJS({
|
|
|
220261
220265
|
var syntaxError = (type, char) => {
|
|
220262
220266
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
220263
220267
|
};
|
|
220268
|
+
var splitTopLevel = (input) => {
|
|
220269
|
+
const parts = [];
|
|
220270
|
+
let bracket = 0;
|
|
220271
|
+
let paren = 0;
|
|
220272
|
+
let quote = 0;
|
|
220273
|
+
let value = "";
|
|
220274
|
+
let escaped = false;
|
|
220275
|
+
for (const ch of input) {
|
|
220276
|
+
if (escaped === true) {
|
|
220277
|
+
value += ch;
|
|
220278
|
+
escaped = false;
|
|
220279
|
+
continue;
|
|
220280
|
+
}
|
|
220281
|
+
if (ch === "\\") {
|
|
220282
|
+
value += ch;
|
|
220283
|
+
escaped = true;
|
|
220284
|
+
continue;
|
|
220285
|
+
}
|
|
220286
|
+
if (ch === '"') {
|
|
220287
|
+
quote = quote === 1 ? 0 : 1;
|
|
220288
|
+
value += ch;
|
|
220289
|
+
continue;
|
|
220290
|
+
}
|
|
220291
|
+
if (quote === 0) {
|
|
220292
|
+
if (ch === "[") {
|
|
220293
|
+
bracket++;
|
|
220294
|
+
} else if (ch === "]" && bracket > 0) {
|
|
220295
|
+
bracket--;
|
|
220296
|
+
} else if (bracket === 0) {
|
|
220297
|
+
if (ch === "(") {
|
|
220298
|
+
paren++;
|
|
220299
|
+
} else if (ch === ")" && paren > 0) {
|
|
220300
|
+
paren--;
|
|
220301
|
+
} else if (ch === "|" && paren === 0) {
|
|
220302
|
+
parts.push(value);
|
|
220303
|
+
value = "";
|
|
220304
|
+
continue;
|
|
220305
|
+
}
|
|
220306
|
+
}
|
|
220307
|
+
}
|
|
220308
|
+
value += ch;
|
|
220309
|
+
}
|
|
220310
|
+
parts.push(value);
|
|
220311
|
+
return parts;
|
|
220312
|
+
};
|
|
220313
|
+
var isPlainBranch = (branch) => {
|
|
220314
|
+
let escaped = false;
|
|
220315
|
+
for (const ch of branch) {
|
|
220316
|
+
if (escaped === true) {
|
|
220317
|
+
escaped = false;
|
|
220318
|
+
continue;
|
|
220319
|
+
}
|
|
220320
|
+
if (ch === "\\") {
|
|
220321
|
+
escaped = true;
|
|
220322
|
+
continue;
|
|
220323
|
+
}
|
|
220324
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
220325
|
+
return false;
|
|
220326
|
+
}
|
|
220327
|
+
}
|
|
220328
|
+
return true;
|
|
220329
|
+
};
|
|
220330
|
+
var normalizeSimpleBranch = (branch) => {
|
|
220331
|
+
let value = branch.trim();
|
|
220332
|
+
let changed = true;
|
|
220333
|
+
while (changed === true) {
|
|
220334
|
+
changed = false;
|
|
220335
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
220336
|
+
value = value.slice(2, -1);
|
|
220337
|
+
changed = true;
|
|
220338
|
+
}
|
|
220339
|
+
}
|
|
220340
|
+
if (!isPlainBranch(value)) {
|
|
220341
|
+
return;
|
|
220342
|
+
}
|
|
220343
|
+
return value.replace(/\\(.)/g, "$1");
|
|
220344
|
+
};
|
|
220345
|
+
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
220346
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
220347
|
+
for (let i = 0; i < values.length; i++) {
|
|
220348
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
220349
|
+
const a = values[i];
|
|
220350
|
+
const b = values[j];
|
|
220351
|
+
const char = a[0];
|
|
220352
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
220353
|
+
continue;
|
|
220354
|
+
}
|
|
220355
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
220356
|
+
return true;
|
|
220357
|
+
}
|
|
220358
|
+
}
|
|
220359
|
+
}
|
|
220360
|
+
return false;
|
|
220361
|
+
};
|
|
220362
|
+
var parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
220363
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
|
|
220364
|
+
return;
|
|
220365
|
+
}
|
|
220366
|
+
let bracket = 0;
|
|
220367
|
+
let paren = 0;
|
|
220368
|
+
let quote = 0;
|
|
220369
|
+
let escaped = false;
|
|
220370
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
220371
|
+
const ch = pattern[i];
|
|
220372
|
+
if (escaped === true) {
|
|
220373
|
+
escaped = false;
|
|
220374
|
+
continue;
|
|
220375
|
+
}
|
|
220376
|
+
if (ch === "\\") {
|
|
220377
|
+
escaped = true;
|
|
220378
|
+
continue;
|
|
220379
|
+
}
|
|
220380
|
+
if (ch === '"') {
|
|
220381
|
+
quote = quote === 1 ? 0 : 1;
|
|
220382
|
+
continue;
|
|
220383
|
+
}
|
|
220384
|
+
if (quote === 1) {
|
|
220385
|
+
continue;
|
|
220386
|
+
}
|
|
220387
|
+
if (ch === "[") {
|
|
220388
|
+
bracket++;
|
|
220389
|
+
continue;
|
|
220390
|
+
}
|
|
220391
|
+
if (ch === "]" && bracket > 0) {
|
|
220392
|
+
bracket--;
|
|
220393
|
+
continue;
|
|
220394
|
+
}
|
|
220395
|
+
if (bracket > 0) {
|
|
220396
|
+
continue;
|
|
220397
|
+
}
|
|
220398
|
+
if (ch === "(") {
|
|
220399
|
+
paren++;
|
|
220400
|
+
continue;
|
|
220401
|
+
}
|
|
220402
|
+
if (ch === ")") {
|
|
220403
|
+
paren--;
|
|
220404
|
+
if (paren === 0) {
|
|
220405
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
220406
|
+
return;
|
|
220407
|
+
}
|
|
220408
|
+
return {
|
|
220409
|
+
type: pattern[0],
|
|
220410
|
+
body: pattern.slice(2, i),
|
|
220411
|
+
end: i
|
|
220412
|
+
};
|
|
220413
|
+
}
|
|
220414
|
+
}
|
|
220415
|
+
}
|
|
220416
|
+
};
|
|
220417
|
+
var getStarExtglobSequenceOutput = (pattern) => {
|
|
220418
|
+
let index = 0;
|
|
220419
|
+
const chars = [];
|
|
220420
|
+
while (index < pattern.length) {
|
|
220421
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
220422
|
+
if (!match || match.type !== "*") {
|
|
220423
|
+
return;
|
|
220424
|
+
}
|
|
220425
|
+
const branches = splitTopLevel(match.body).map((branch2) => branch2.trim());
|
|
220426
|
+
if (branches.length !== 1) {
|
|
220427
|
+
return;
|
|
220428
|
+
}
|
|
220429
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
220430
|
+
if (!branch || branch.length !== 1) {
|
|
220431
|
+
return;
|
|
220432
|
+
}
|
|
220433
|
+
chars.push(branch);
|
|
220434
|
+
index += match.end + 1;
|
|
220435
|
+
}
|
|
220436
|
+
if (chars.length < 1) {
|
|
220437
|
+
return;
|
|
220438
|
+
}
|
|
220439
|
+
const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
|
|
220440
|
+
return `${source}*`;
|
|
220441
|
+
};
|
|
220442
|
+
var repeatedExtglobRecursion = (pattern) => {
|
|
220443
|
+
let depth = 0;
|
|
220444
|
+
let value = pattern.trim();
|
|
220445
|
+
let match = parseRepeatedExtglob(value);
|
|
220446
|
+
while (match) {
|
|
220447
|
+
depth++;
|
|
220448
|
+
value = match.body.trim();
|
|
220449
|
+
match = parseRepeatedExtglob(value);
|
|
220450
|
+
}
|
|
220451
|
+
return depth;
|
|
220452
|
+
};
|
|
220453
|
+
var analyzeRepeatedExtglob = (body, options) => {
|
|
220454
|
+
if (options.maxExtglobRecursion === false) {
|
|
220455
|
+
return { risky: false };
|
|
220456
|
+
}
|
|
220457
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
220458
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
220459
|
+
if (branches.length > 1) {
|
|
220460
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
|
|
220461
|
+
return { risky: true };
|
|
220462
|
+
}
|
|
220463
|
+
}
|
|
220464
|
+
for (const branch of branches) {
|
|
220465
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
220466
|
+
if (safeOutput) {
|
|
220467
|
+
return { risky: true, safeOutput };
|
|
220468
|
+
}
|
|
220469
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
220470
|
+
return { risky: true };
|
|
220471
|
+
}
|
|
220472
|
+
}
|
|
220473
|
+
return { risky: false };
|
|
220474
|
+
};
|
|
220264
220475
|
var parse = (input, options) => {
|
|
220265
220476
|
if (typeof input !== "string") {
|
|
220266
220477
|
throw new TypeError("Expected a string");
|
|
@@ -220391,6 +220602,8 @@ var require_parse = __commonJS({
|
|
|
220391
220602
|
token.prev = prev;
|
|
220392
220603
|
token.parens = state.parens;
|
|
220393
220604
|
token.output = state.output;
|
|
220605
|
+
token.startIndex = state.index;
|
|
220606
|
+
token.tokensIndex = tokens.length;
|
|
220394
220607
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
220395
220608
|
increment("parens");
|
|
220396
220609
|
push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
|
|
@@ -220398,6 +220611,26 @@ var require_parse = __commonJS({
|
|
|
220398
220611
|
extglobs.push(token);
|
|
220399
220612
|
};
|
|
220400
220613
|
const extglobClose = (token) => {
|
|
220614
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
220615
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
220616
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
220617
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
220618
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
220619
|
+
const open = tokens[token.tokensIndex];
|
|
220620
|
+
open.type = "text";
|
|
220621
|
+
open.value = literal;
|
|
220622
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
220623
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
220624
|
+
tokens[i].value = "";
|
|
220625
|
+
tokens[i].output = "";
|
|
220626
|
+
delete tokens[i].suffix;
|
|
220627
|
+
}
|
|
220628
|
+
state.output = token.output + open.output;
|
|
220629
|
+
state.backtrack = true;
|
|
220630
|
+
push({ type: "paren", extglob: true, value, output: "" });
|
|
220631
|
+
decrement("parens");
|
|
220632
|
+
return;
|
|
220633
|
+
}
|
|
220401
220634
|
let output = token.close + (opts.capture ? ")" : "");
|
|
220402
220635
|
let rest;
|
|
220403
220636
|
if (token.type === "negate") {
|
|
@@ -221000,9 +221233,9 @@ var require_parse = __commonJS({
|
|
|
221000
221233
|
}
|
|
221001
221234
|
});
|
|
221002
221235
|
|
|
221003
|
-
// node_modules/picomatch/lib/picomatch.js
|
|
221236
|
+
// node_modules/@oclif/core/node_modules/picomatch/lib/picomatch.js
|
|
221004
221237
|
var require_picomatch = __commonJS({
|
|
221005
|
-
"node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
221238
|
+
"node_modules/@oclif/core/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
221006
221239
|
"use strict";
|
|
221007
221240
|
init_cjs_shims();
|
|
221008
221241
|
var scan = require_scan();
|
|
@@ -221141,9 +221374,9 @@ var require_picomatch = __commonJS({
|
|
|
221141
221374
|
}
|
|
221142
221375
|
});
|
|
221143
221376
|
|
|
221144
|
-
// node_modules/picomatch/index.js
|
|
221377
|
+
// node_modules/@oclif/core/node_modules/picomatch/index.js
|
|
221145
221378
|
var require_picomatch2 = __commonJS({
|
|
221146
|
-
"node_modules/picomatch/index.js"(exports, module) {
|
|
221379
|
+
"node_modules/@oclif/core/node_modules/picomatch/index.js"(exports, module) {
|
|
221147
221380
|
"use strict";
|
|
221148
221381
|
init_cjs_shims();
|
|
221149
221382
|
var pico = require_picomatch();
|
|
@@ -221159,9 +221392,9 @@ var require_picomatch2 = __commonJS({
|
|
|
221159
221392
|
}
|
|
221160
221393
|
});
|
|
221161
221394
|
|
|
221162
|
-
// node_modules/fdir/dist/index.cjs
|
|
221395
|
+
// node_modules/@oclif/core/node_modules/fdir/dist/index.cjs
|
|
221163
221396
|
var require_dist = __commonJS({
|
|
221164
|
-
"node_modules/fdir/dist/index.cjs"(exports) {
|
|
221397
|
+
"node_modules/@oclif/core/node_modules/fdir/dist/index.cjs"(exports) {
|
|
221165
221398
|
init_cjs_shims();
|
|
221166
221399
|
var __create = Object.create;
|
|
221167
221400
|
var __defProp = Object.defineProperty;
|
|
@@ -221692,10 +221925,11 @@ var require_dist = __commonJS({
|
|
|
221692
221925
|
}
|
|
221693
221926
|
});
|
|
221694
221927
|
|
|
221695
|
-
// node_modules/tinyglobby/dist/index.cjs
|
|
221928
|
+
// node_modules/@oclif/core/node_modules/tinyglobby/dist/index.cjs
|
|
221696
221929
|
var require_dist2 = __commonJS({
|
|
221697
|
-
"node_modules/tinyglobby/dist/index.cjs"(exports) {
|
|
221930
|
+
"node_modules/@oclif/core/node_modules/tinyglobby/dist/index.cjs"(exports) {
|
|
221698
221931
|
init_cjs_shims();
|
|
221932
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
221699
221933
|
var __create = Object.create;
|
|
221700
221934
|
var __defProp = Object.defineProperty;
|
|
221701
221935
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -221717,46 +221951,42 @@ var require_dist2 = __commonJS({
|
|
|
221717
221951
|
enumerable: true
|
|
221718
221952
|
}) : target, mod));
|
|
221719
221953
|
var fs = __require("fs");
|
|
221720
|
-
fs = __toESM(fs);
|
|
221721
221954
|
var path = __require("path");
|
|
221722
|
-
path = __toESM(path);
|
|
221723
221955
|
var url = __require("url");
|
|
221724
|
-
url = __toESM(url);
|
|
221725
221956
|
var fdir = require_dist();
|
|
221726
|
-
fdir = __toESM(fdir);
|
|
221727
221957
|
var picomatch = require_picomatch2();
|
|
221728
221958
|
picomatch = __toESM(picomatch);
|
|
221729
221959
|
var isReadonlyArray = Array.isArray;
|
|
221960
|
+
var BACKSLASHES = /\\/g;
|
|
221730
221961
|
var isWin = process.platform === "win32";
|
|
221731
221962
|
var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
|
|
221732
221963
|
function getPartialMatcher(patterns, options = {}) {
|
|
221733
221964
|
const patternsCount = patterns.length;
|
|
221734
221965
|
const patternsParts = Array(patternsCount);
|
|
221735
221966
|
const matchers = Array(patternsCount);
|
|
221736
|
-
|
|
221737
|
-
for (
|
|
221967
|
+
let i, j;
|
|
221968
|
+
for (i = 0; i < patternsCount; i++) {
|
|
221738
221969
|
const parts = splitPattern(patterns[i]);
|
|
221739
221970
|
patternsParts[i] = parts;
|
|
221740
221971
|
const partsCount = parts.length;
|
|
221741
221972
|
const partMatchers = Array(partsCount);
|
|
221742
|
-
for (
|
|
221973
|
+
for (j = 0; j < partsCount; j++) partMatchers[j] = (0, picomatch.default)(parts[j], options);
|
|
221743
221974
|
matchers[i] = partMatchers;
|
|
221744
221975
|
}
|
|
221745
221976
|
return (input) => {
|
|
221746
221977
|
const inputParts = input.split("/");
|
|
221747
221978
|
if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
|
|
221748
|
-
for (
|
|
221979
|
+
for (i = 0; i < patternsCount; i++) {
|
|
221749
221980
|
const patternParts = patternsParts[i];
|
|
221750
221981
|
const matcher = matchers[i];
|
|
221751
221982
|
const inputPatternCount = inputParts.length;
|
|
221752
221983
|
const minParts = Math.min(inputPatternCount, patternParts.length);
|
|
221753
|
-
|
|
221984
|
+
j = 0;
|
|
221754
221985
|
while (j < minParts) {
|
|
221755
221986
|
const part = patternParts[j];
|
|
221756
221987
|
if (part.includes("/")) return true;
|
|
221757
|
-
|
|
221758
|
-
if (!
|
|
221759
|
-
if (globstarEnabled && part === "**") return true;
|
|
221988
|
+
if (!matcher[j](inputParts[j])) break;
|
|
221989
|
+
if (!options.noglobstar && part === "**") return true;
|
|
221760
221990
|
j++;
|
|
221761
221991
|
}
|
|
221762
221992
|
if (j === inputPatternCount) return true;
|
|
@@ -221769,7 +221999,7 @@ var require_dist2 = __commonJS({
|
|
|
221769
221999
|
function buildFormat(cwd, root, absolute) {
|
|
221770
222000
|
if (cwd === root || root.startsWith(`${cwd}/`)) {
|
|
221771
222001
|
if (absolute) {
|
|
221772
|
-
const start =
|
|
222002
|
+
const start = cwd.length + +!isRoot(cwd);
|
|
221773
222003
|
return (p, isDir) => p.slice(start, isDir ? -1 : void 0) || ".";
|
|
221774
222004
|
}
|
|
221775
222005
|
const prefix = root.slice(cwd.length + 1);
|
|
@@ -221790,28 +222020,27 @@ var require_dist2 = __commonJS({
|
|
|
221790
222020
|
}
|
|
221791
222021
|
return (p) => {
|
|
221792
222022
|
const result = path.posix.relative(cwd, `${root}/${p}`);
|
|
221793
|
-
|
|
221794
|
-
return result || ".";
|
|
222023
|
+
return p[p.length - 1] === "/" && result !== "" ? `${result}/` : result || ".";
|
|
221795
222024
|
};
|
|
221796
222025
|
}
|
|
221797
222026
|
var splitPatternOptions = { parts: true };
|
|
221798
|
-
function splitPattern(path$
|
|
222027
|
+
function splitPattern(path$1) {
|
|
221799
222028
|
var _result$parts;
|
|
221800
|
-
const result = picomatch.default.scan(path$
|
|
221801
|
-
return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$
|
|
222029
|
+
const result = picomatch.default.scan(path$1, splitPatternOptions);
|
|
222030
|
+
return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$1];
|
|
221802
222031
|
}
|
|
221803
222032
|
var ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
|
|
221804
222033
|
function convertPosixPathToPattern(path$2) {
|
|
221805
222034
|
return escapePosixPath(path$2);
|
|
221806
222035
|
}
|
|
221807
|
-
function convertWin32PathToPattern(path$
|
|
221808
|
-
return escapeWin32Path(path$
|
|
222036
|
+
function convertWin32PathToPattern(path$3) {
|
|
222037
|
+
return escapeWin32Path(path$3).replace(ESCAPED_WIN32_BACKSLASHES, "/");
|
|
221809
222038
|
}
|
|
221810
222039
|
var convertPathToPattern = isWin ? convertWin32PathToPattern : convertPosixPathToPattern;
|
|
221811
222040
|
var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
|
|
221812
222041
|
var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
221813
|
-
var escapePosixPath = (path$
|
|
221814
|
-
var escapeWin32Path = (path$
|
|
222042
|
+
var escapePosixPath = (path$4) => path$4.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
222043
|
+
var escapeWin32Path = (path$5) => path$5.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
|
|
221815
222044
|
var escapePath = isWin ? escapeWin32Path : escapePosixPath;
|
|
221816
222045
|
function isDynamicPattern(pattern, options) {
|
|
221817
222046
|
if ((options === null || options === void 0 ? void 0 : options.caseSensitiveMatch) === false) return true;
|
|
@@ -221821,28 +222050,31 @@ var require_dist2 = __commonJS({
|
|
|
221821
222050
|
function log(...tasks) {
|
|
221822
222051
|
console.log(`[tinyglobby ${(/* @__PURE__ */ new Date()).toLocaleTimeString("es")}]`, ...tasks);
|
|
221823
222052
|
}
|
|
222053
|
+
function ensureStringArray(value) {
|
|
222054
|
+
return typeof value === "string" ? [value] : value !== null && value !== void 0 ? value : [];
|
|
222055
|
+
}
|
|
221824
222056
|
var PARENT_DIRECTORY = /^(\/?\.\.)+/;
|
|
221825
222057
|
var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
|
|
221826
|
-
|
|
221827
|
-
|
|
222058
|
+
function normalizePattern(pattern, opts, props, isIgnore) {
|
|
222059
|
+
var _PARENT_DIRECTORY$exe;
|
|
222060
|
+
const cwd = opts.cwd;
|
|
221828
222061
|
let result = pattern;
|
|
221829
|
-
if (pattern.
|
|
221830
|
-
if (
|
|
222062
|
+
if (pattern[pattern.length - 1] === "/") result = pattern.slice(0, -1);
|
|
222063
|
+
if (result[result.length - 1] !== "*" && opts.expandDirectories) result += "/**";
|
|
221831
222064
|
const escapedCwd = escapePath(cwd);
|
|
221832
|
-
|
|
221833
|
-
|
|
221834
|
-
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
222065
|
+
result = (0, path.isAbsolute)(result.replace(ESCAPING_BACKSLASHES, "")) ? path.posix.relative(escapedCwd, result) : path.posix.normalize(result);
|
|
222066
|
+
const parentDir = (_PARENT_DIRECTORY$exe = PARENT_DIRECTORY.exec(result)) === null || _PARENT_DIRECTORY$exe === void 0 ? void 0 : _PARENT_DIRECTORY$exe[0];
|
|
221835
222067
|
const parts = splitPattern(result);
|
|
221836
|
-
if (
|
|
221837
|
-
const n = (
|
|
222068
|
+
if (parentDir) {
|
|
222069
|
+
const n = (parentDir.length + 1) / 3;
|
|
221838
222070
|
let i = 0;
|
|
221839
222071
|
const cwdParts = escapedCwd.split("/");
|
|
221840
222072
|
while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
|
|
221841
222073
|
result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
|
|
221842
222074
|
i++;
|
|
221843
222075
|
}
|
|
221844
|
-
const potentialRoot = path.posix.join(cwd,
|
|
221845
|
-
if (
|
|
222076
|
+
const potentialRoot = path.posix.join(cwd, parentDir.slice(i * 3));
|
|
222077
|
+
if (potentialRoot[0] !== "." && props.root.length > potentialRoot.length) {
|
|
221846
222078
|
props.root = potentialRoot;
|
|
221847
222079
|
props.depthOffset = -n + i;
|
|
221848
222080
|
}
|
|
@@ -221858,7 +222090,7 @@ var require_dist2 = __commonJS({
|
|
|
221858
222090
|
newCommonPath.pop();
|
|
221859
222091
|
break;
|
|
221860
222092
|
}
|
|
221861
|
-
if (part !== props.commonPath[i] || isDynamicPattern(part)
|
|
222093
|
+
if (i === parts.length - 1 || part !== props.commonPath[i] || isDynamicPattern(part)) break;
|
|
221862
222094
|
newCommonPath.push(part);
|
|
221863
222095
|
}
|
|
221864
222096
|
props.depthOffset = newCommonPath.length;
|
|
@@ -221867,145 +222099,130 @@ var require_dist2 = __commonJS({
|
|
|
221867
222099
|
}
|
|
221868
222100
|
return result;
|
|
221869
222101
|
}
|
|
221870
|
-
function processPatterns(
|
|
221871
|
-
if (typeof patterns === "string") patterns = [patterns];
|
|
221872
|
-
if (typeof ignore === "string") ignore = [ignore];
|
|
222102
|
+
function processPatterns(options, patterns, props) {
|
|
221873
222103
|
const matchPatterns = [];
|
|
221874
222104
|
const ignorePatterns = [];
|
|
221875
|
-
for (const pattern of ignore) {
|
|
222105
|
+
for (const pattern of options.ignore) {
|
|
221876
222106
|
if (!pattern) continue;
|
|
221877
|
-
if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern,
|
|
222107
|
+
if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, options, props, true));
|
|
221878
222108
|
}
|
|
221879
222109
|
for (const pattern of patterns) {
|
|
221880
222110
|
if (!pattern) continue;
|
|
221881
|
-
if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern,
|
|
221882
|
-
else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1),
|
|
222111
|
+
if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, options, props, false));
|
|
222112
|
+
else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), options, props, true));
|
|
221883
222113
|
}
|
|
221884
222114
|
return {
|
|
221885
222115
|
match: matchPatterns,
|
|
221886
222116
|
ignore: ignorePatterns
|
|
221887
222117
|
};
|
|
221888
222118
|
}
|
|
221889
|
-
function
|
|
221890
|
-
|
|
221891
|
-
const path$2 = paths[i];
|
|
221892
|
-
paths[i] = relative(path$2);
|
|
221893
|
-
}
|
|
221894
|
-
return paths;
|
|
221895
|
-
}
|
|
221896
|
-
function normalizeCwd(cwd) {
|
|
221897
|
-
if (!cwd) return process.cwd().replace(BACKSLASHES, "/");
|
|
221898
|
-
if (cwd instanceof URL) return (0, url.fileURLToPath)(cwd).replace(BACKSLASHES, "/");
|
|
221899
|
-
return path.default.resolve(cwd).replace(BACKSLASHES, "/");
|
|
221900
|
-
}
|
|
221901
|
-
function getCrawler(patterns, inputOptions = {}) {
|
|
221902
|
-
const options = process.env.TINYGLOBBY_DEBUG ? {
|
|
221903
|
-
...inputOptions,
|
|
221904
|
-
debug: true
|
|
221905
|
-
} : inputOptions;
|
|
221906
|
-
const cwd = normalizeCwd(options.cwd);
|
|
221907
|
-
if (options.debug) log("globbing with:", {
|
|
221908
|
-
patterns,
|
|
221909
|
-
options,
|
|
221910
|
-
cwd
|
|
221911
|
-
});
|
|
221912
|
-
if (Array.isArray(patterns) && patterns.length === 0) return [{
|
|
221913
|
-
sync: () => [],
|
|
221914
|
-
withPromise: async () => []
|
|
221915
|
-
}, false];
|
|
222119
|
+
function buildCrawler(options, patterns) {
|
|
222120
|
+
const cwd = options.cwd;
|
|
221916
222121
|
const props = {
|
|
221917
222122
|
root: cwd,
|
|
221918
|
-
commonPath: null,
|
|
221919
222123
|
depthOffset: 0
|
|
221920
222124
|
};
|
|
221921
|
-
const processed = processPatterns(
|
|
221922
|
-
...options,
|
|
221923
|
-
patterns
|
|
221924
|
-
}, cwd, props);
|
|
222125
|
+
const processed = processPatterns(options, patterns, props);
|
|
221925
222126
|
if (options.debug) log("internal processing patterns:", processed);
|
|
222127
|
+
const { absolute, caseSensitiveMatch, debug, dot, followSymbolicLinks, onlyDirectories } = options;
|
|
222128
|
+
const root = props.root.replace(BACKSLASHES, "");
|
|
221926
222129
|
const matchOptions = {
|
|
221927
|
-
dot
|
|
222130
|
+
dot,
|
|
221928
222131
|
nobrace: options.braceExpansion === false,
|
|
221929
|
-
nocase:
|
|
222132
|
+
nocase: !caseSensitiveMatch,
|
|
221930
222133
|
noextglob: options.extglob === false,
|
|
221931
222134
|
noglobstar: options.globstar === false,
|
|
221932
222135
|
posix: true
|
|
221933
222136
|
};
|
|
221934
|
-
const matcher = (0, picomatch.default)(processed.match,
|
|
221935
|
-
...matchOptions,
|
|
221936
|
-
ignore: processed.ignore
|
|
221937
|
-
});
|
|
222137
|
+
const matcher = (0, picomatch.default)(processed.match, matchOptions);
|
|
221938
222138
|
const ignore = (0, picomatch.default)(processed.ignore, matchOptions);
|
|
221939
222139
|
const partialMatcher = getPartialMatcher(processed.match, matchOptions);
|
|
221940
|
-
const format = buildFormat(cwd,
|
|
221941
|
-
const
|
|
221942
|
-
const
|
|
221943
|
-
|
|
221944
|
-
|
|
221945
|
-
|
|
221946
|
-
|
|
222140
|
+
const format = buildFormat(cwd, root, absolute);
|
|
222141
|
+
const excludeFormatter = absolute ? format : buildFormat(cwd, root, true);
|
|
222142
|
+
const excludePredicate = (_, p) => {
|
|
222143
|
+
const relativePath = excludeFormatter(p, true);
|
|
222144
|
+
return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
|
|
222145
|
+
};
|
|
222146
|
+
let maxDepth;
|
|
222147
|
+
if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
|
|
222148
|
+
const crawler = new fdir.fdir({
|
|
222149
|
+
filters: [debug ? (p, isDirectory) => {
|
|
222150
|
+
const path2 = format(p, isDirectory);
|
|
222151
|
+
const matches = matcher(path2) && !ignore(path2);
|
|
222152
|
+
if (matches) log(`matched ${path2}`);
|
|
221947
222153
|
return matches;
|
|
221948
|
-
} : (p, isDirectory) =>
|
|
221949
|
-
|
|
221950
|
-
|
|
221951
|
-
|
|
221952
|
-
|
|
221953
|
-
|
|
222154
|
+
} : (p, isDirectory) => {
|
|
222155
|
+
const path2 = format(p, isDirectory);
|
|
222156
|
+
return matcher(path2) && !ignore(path2);
|
|
222157
|
+
}],
|
|
222158
|
+
exclude: debug ? (_, p) => {
|
|
222159
|
+
const skipped = excludePredicate(_, p);
|
|
222160
|
+
log(`${skipped ? "skipped" : "crawling"} ${p}`);
|
|
221954
222161
|
return skipped;
|
|
221955
|
-
} :
|
|
221956
|
-
|
|
221957
|
-
return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
|
|
221958
|
-
},
|
|
221959
|
-
fs: options.fs ? {
|
|
221960
|
-
readdir: options.fs.readdir || fs.default.readdir,
|
|
221961
|
-
readdirSync: options.fs.readdirSync || fs.default.readdirSync,
|
|
221962
|
-
realpath: options.fs.realpath || fs.default.realpath,
|
|
221963
|
-
realpathSync: options.fs.realpathSync || fs.default.realpathSync,
|
|
221964
|
-
stat: options.fs.stat || fs.default.stat,
|
|
221965
|
-
statSync: options.fs.statSync || fs.default.statSync
|
|
221966
|
-
} : void 0,
|
|
222162
|
+
} : excludePredicate,
|
|
222163
|
+
fs: options.fs,
|
|
221967
222164
|
pathSeparator: "/",
|
|
221968
|
-
relativePaths:
|
|
221969
|
-
|
|
222165
|
+
relativePaths: !absolute,
|
|
222166
|
+
resolvePaths: absolute,
|
|
222167
|
+
includeBasePath: absolute,
|
|
222168
|
+
resolveSymlinks: followSymbolicLinks,
|
|
222169
|
+
excludeSymlinks: !followSymbolicLinks,
|
|
222170
|
+
excludeFiles: onlyDirectories,
|
|
222171
|
+
includeDirs: onlyDirectories || !options.onlyFiles,
|
|
222172
|
+
maxDepth,
|
|
221970
222173
|
signal: options.signal
|
|
222174
|
+
}).crawl(root);
|
|
222175
|
+
if (options.debug) log("internal properties:", {
|
|
222176
|
+
...props,
|
|
222177
|
+
root
|
|
222178
|
+
});
|
|
222179
|
+
return [crawler, cwd !== root && !absolute && buildRelative(cwd, root)];
|
|
222180
|
+
}
|
|
222181
|
+
function formatPaths(paths, mapper) {
|
|
222182
|
+
if (mapper) for (let i = paths.length - 1; i >= 0; i--) paths[i] = mapper(paths[i]);
|
|
222183
|
+
return paths;
|
|
222184
|
+
}
|
|
222185
|
+
var defaultOptions = {
|
|
222186
|
+
caseSensitiveMatch: true,
|
|
222187
|
+
cwd: process.cwd(),
|
|
222188
|
+
debug: !!process.env.TINYGLOBBY_DEBUG,
|
|
222189
|
+
expandDirectories: true,
|
|
222190
|
+
followSymbolicLinks: true,
|
|
222191
|
+
onlyFiles: true
|
|
222192
|
+
};
|
|
222193
|
+
function getOptions(options) {
|
|
222194
|
+
const opts = {
|
|
222195
|
+
...defaultOptions,
|
|
222196
|
+
...options
|
|
221971
222197
|
};
|
|
221972
|
-
|
|
221973
|
-
|
|
221974
|
-
|
|
221975
|
-
|
|
221976
|
-
|
|
221977
|
-
|
|
221978
|
-
|
|
221979
|
-
|
|
221980
|
-
|
|
221981
|
-
}
|
|
221982
|
-
if (
|
|
221983
|
-
|
|
221984
|
-
|
|
221985
|
-
|
|
221986
|
-
|
|
221987
|
-
|
|
221988
|
-
|
|
221989
|
-
const
|
|
221990
|
-
|
|
222198
|
+
opts.cwd = (opts.cwd instanceof URL ? (0, url.fileURLToPath)(opts.cwd) : (0, path.resolve)(opts.cwd)).replace(BACKSLASHES, "/");
|
|
222199
|
+
opts.ignore = ensureStringArray(opts.ignore);
|
|
222200
|
+
opts.fs && (opts.fs = {
|
|
222201
|
+
readdir: opts.fs.readdir || fs.readdir,
|
|
222202
|
+
readdirSync: opts.fs.readdirSync || fs.readdirSync,
|
|
222203
|
+
realpath: opts.fs.realpath || fs.realpath,
|
|
222204
|
+
realpathSync: opts.fs.realpathSync || fs.realpathSync,
|
|
222205
|
+
stat: opts.fs.stat || fs.stat,
|
|
222206
|
+
statSync: opts.fs.statSync || fs.statSync
|
|
222207
|
+
});
|
|
222208
|
+
if (opts.debug) log("globbing with options:", opts);
|
|
222209
|
+
return opts;
|
|
222210
|
+
}
|
|
222211
|
+
function getCrawler(globInput, inputOptions = {}) {
|
|
222212
|
+
var _ref;
|
|
222213
|
+
if (globInput && (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
|
|
222214
|
+
const isModern = isReadonlyArray(globInput) || typeof globInput === "string";
|
|
222215
|
+
const patterns = ensureStringArray((_ref = isModern ? globInput : globInput.patterns) !== null && _ref !== void 0 ? _ref : "**/*");
|
|
222216
|
+
const options = getOptions(isModern ? inputOptions : globInput);
|
|
222217
|
+
return patterns.length > 0 ? buildCrawler(options, patterns) : [];
|
|
221991
222218
|
}
|
|
221992
|
-
async function glob(
|
|
221993
|
-
|
|
221994
|
-
|
|
221995
|
-
const opts = isModern ? options : patternsOrOptions;
|
|
221996
|
-
const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
|
|
221997
|
-
const [crawler, relative] = getCrawler(patterns, opts);
|
|
221998
|
-
if (!relative) return crawler.withPromise();
|
|
221999
|
-
return formatPaths(await crawler.withPromise(), relative);
|
|
222219
|
+
async function glob(globInput, options) {
|
|
222220
|
+
const [crawler, relative] = getCrawler(globInput, options);
|
|
222221
|
+
return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
|
|
222000
222222
|
}
|
|
222001
|
-
function globSync(
|
|
222002
|
-
|
|
222003
|
-
|
|
222004
|
-
const opts = isModern ? options : patternsOrOptions;
|
|
222005
|
-
const patterns = isModern ? patternsOrOptions : patternsOrOptions.patterns;
|
|
222006
|
-
const [crawler, relative] = getCrawler(patterns, opts);
|
|
222007
|
-
if (!relative) return crawler.sync();
|
|
222008
|
-
return formatPaths(crawler.sync(), relative);
|
|
222223
|
+
function globSync(globInput, options) {
|
|
222224
|
+
const [crawler, relative] = getCrawler(globInput, options);
|
|
222225
|
+
return crawler ? formatPaths(crawler.sync(), relative) : [];
|
|
222009
222226
|
}
|
|
222010
222227
|
exports.convertPathToPattern = convertPathToPattern;
|
|
222011
222228
|
exports.escapePath = escapePath;
|
package/dist/commands/esbuild.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-X43BY2LQ.js";
|
|
4
|
+
import "../chunk-LPEKLRLJ.js";
|
|
5
|
+
import "../chunk-7EKGHPU5.js";
|
|
6
6
|
import "../chunk-RRP6KXWN.js";
|
|
7
7
|
export {
|
|
8
8
|
ESBuild as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Hello
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-SPJRFISZ.js";
|
|
4
|
+
import "../../chunk-LPEKLRLJ.js";
|
|
5
|
+
import "../../chunk-7EKGHPU5.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.js";
|
|
7
7
|
export {
|
|
8
8
|
Hello as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
World
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-U3C275WD.js";
|
|
4
|
+
import "../../chunk-LPEKLRLJ.js";
|
|
5
|
+
import "../../chunk-7EKGHPU5.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.js";
|
|
7
7
|
export {
|
|
8
8
|
World as default
|
package/dist/hooks/init/init.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_default
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-CDZ5O4CJ.js";
|
|
4
|
+
import "../../chunk-LPEKLRLJ.js";
|
|
5
|
+
import "../../chunk-7EKGHPU5.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.js";
|
|
7
7
|
export {
|
|
8
8
|
init_default as default
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X43BY2LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SPJRFISZ.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U3C275WD.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CDZ5O4CJ.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LPEKLRLJ.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2
|
|
20
20
|
} from "./chunk-SO2G2ODZ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7EKGHPU5.js";
|
|
24
24
|
import {
|
|
25
25
|
__toESM,
|
|
26
26
|
init_cjs_shims
|
|
@@ -515,7 +515,7 @@ var Plugins = class {
|
|
|
515
515
|
const url = name;
|
|
516
516
|
const output = await this.npm.install([...args, url], options);
|
|
517
517
|
const { dependencies } = await this.pjson();
|
|
518
|
-
const { default: npa } = await import("./npa-
|
|
518
|
+
const { default: npa } = await import("./npa-MSYXREUM.js");
|
|
519
519
|
const normalizedUrl = npa(url);
|
|
520
520
|
const matches = Object.entries(dependencies ?? {}).find(([, npmVersion]) => {
|
|
521
521
|
const normalized = npa(npmVersion);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.141",
|
|
4
4
|
"description": "Bundled plugin for testing",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
16
|
-
"@oclif/plugin-test-esm-1": "^0.8.
|
|
15
|
+
"@oclif/plugin-plugins": "^5.4.68",
|
|
16
|
+
"@oclif/plugin-test-esm-1": "^0.8.122"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@eslint/compat": "^1.4.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint-config-oclif": "^6.0.162",
|
|
29
29
|
"eslint-config-prettier": "^10.1.8",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.23.
|
|
31
|
+
"oclif": "^4.23.5",
|
|
32
32
|
"shx": "^0.4.0",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|