@wise/wds-codemods 1.0.0-experimental-17e9cdb → 1.0.0-experimental-26848fb
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/{helpers-kGjqIu3N.js → helpers-auDAwIcO.js} +133 -127
- package/dist/helpers-auDAwIcO.js.map +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/transforms/button/transformer.js +8 -3
- package/dist/transforms/button/transformer.js.map +1 -1
- package/package.json +2 -2
- package/dist/helpers-kGjqIu3N.js.map +0 -1
|
@@ -9,16 +9,12 @@ var __commonJS = (cb, mod) => function() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
+
key = keys[i];
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
22
18
|
}
|
|
23
19
|
return to;
|
|
24
20
|
};
|
|
@@ -29,15 +25,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
25
|
|
|
30
26
|
//#endregion
|
|
31
27
|
let node_child_process = require("node:child_process");
|
|
28
|
+
node_child_process = __toESM(node_child_process);
|
|
32
29
|
let node_fs_promises = require("node:fs/promises");
|
|
33
30
|
node_fs_promises = __toESM(node_fs_promises);
|
|
34
31
|
let node_path = require("node:path");
|
|
35
32
|
node_path = __toESM(node_path);
|
|
36
33
|
let __inquirer_prompts = require("@inquirer/prompts");
|
|
34
|
+
__inquirer_prompts = __toESM(__inquirer_prompts);
|
|
37
35
|
let node_fs = require("node:fs");
|
|
36
|
+
node_fs = __toESM(node_fs);
|
|
38
37
|
|
|
39
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
40
|
-
var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
38
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js
|
|
39
|
+
var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js": ((exports, module) => {
|
|
41
40
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
42
41
|
const MAX_LENGTH$2 = 256;
|
|
43
42
|
const MAX_SAFE_INTEGER$1 = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -65,15 +64,15 @@ var require_constants = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@
|
|
|
65
64
|
}) });
|
|
66
65
|
|
|
67
66
|
//#endregion
|
|
68
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
69
|
-
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
67
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js
|
|
68
|
+
var require_debug = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js": ((exports, module) => {
|
|
70
69
|
const debug$4 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
71
70
|
module.exports = debug$4;
|
|
72
71
|
}) });
|
|
73
72
|
|
|
74
73
|
//#endregion
|
|
75
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
76
|
-
var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
74
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js
|
|
75
|
+
var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js": ((exports, module) => {
|
|
77
76
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH: MAX_LENGTH$1 } = require_constants();
|
|
78
77
|
const debug$3 = require_debug();
|
|
79
78
|
exports = module.exports = {};
|
|
@@ -152,8 +151,8 @@ var require_re = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/n
|
|
|
152
151
|
}) });
|
|
153
152
|
|
|
154
153
|
//#endregion
|
|
155
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
156
|
-
var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
154
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js
|
|
155
|
+
var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js": ((exports, module) => {
|
|
157
156
|
const looseOption = Object.freeze({ loose: true });
|
|
158
157
|
const emptyOpts = Object.freeze({});
|
|
159
158
|
const parseOptions$3 = (options) => {
|
|
@@ -165,11 +164,10 @@ var require_parse_options = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/sem
|
|
|
165
164
|
}) });
|
|
166
165
|
|
|
167
166
|
//#endregion
|
|
168
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
169
|
-
var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
167
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js
|
|
168
|
+
var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js": ((exports, module) => {
|
|
170
169
|
const numeric = /^[0-9]+$/;
|
|
171
170
|
const compareIdentifiers$1 = (a, b) => {
|
|
172
|
-
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
173
171
|
const anum = numeric.test(a);
|
|
174
172
|
const bnum = numeric.test(b);
|
|
175
173
|
if (anum && bnum) {
|
|
@@ -186,8 +184,8 @@ var require_identifiers = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semve
|
|
|
186
184
|
}) });
|
|
187
185
|
|
|
188
186
|
//#endregion
|
|
189
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
190
|
-
var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
187
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js
|
|
188
|
+
var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js": ((exports, module) => {
|
|
191
189
|
const debug$2 = require_debug();
|
|
192
190
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
193
191
|
const { safeRe: re$3, t: t$3 } = require_re();
|
|
@@ -243,13 +241,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
243
241
|
}
|
|
244
242
|
compareMain(other) {
|
|
245
243
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
246
|
-
|
|
247
|
-
if (this.major > other.major) return 1;
|
|
248
|
-
if (this.minor < other.minor) return -1;
|
|
249
|
-
if (this.minor > other.minor) return 1;
|
|
250
|
-
if (this.patch < other.patch) return -1;
|
|
251
|
-
if (this.patch > other.patch) return 1;
|
|
252
|
-
return 0;
|
|
244
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
253
245
|
}
|
|
254
246
|
comparePre(other) {
|
|
255
247
|
if (!(other instanceof SemVer$15)) other = new SemVer$15(other, this.options);
|
|
@@ -366,8 +358,8 @@ var require_semver$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
366
358
|
}) });
|
|
367
359
|
|
|
368
360
|
//#endregion
|
|
369
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
370
|
-
var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
361
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js
|
|
362
|
+
var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js": ((exports, module) => {
|
|
371
363
|
const SemVer$14 = require_semver$1();
|
|
372
364
|
const parse$6 = (version, options, throwErrors = false) => {
|
|
373
365
|
if (version instanceof SemVer$14) return version;
|
|
@@ -382,8 +374,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
382
374
|
}) });
|
|
383
375
|
|
|
384
376
|
//#endregion
|
|
385
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
386
|
-
var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
377
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js
|
|
378
|
+
var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js": ((exports, module) => {
|
|
387
379
|
const parse$5 = require_parse();
|
|
388
380
|
const valid$1 = (version, options) => {
|
|
389
381
|
const v = parse$5(version, options);
|
|
@@ -393,8 +385,8 @@ var require_valid$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.
|
|
|
393
385
|
}) });
|
|
394
386
|
|
|
395
387
|
//#endregion
|
|
396
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
397
|
-
var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
388
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js
|
|
389
|
+
var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js": ((exports, module) => {
|
|
398
390
|
const parse$4 = require_parse();
|
|
399
391
|
const clean$1 = (version, options) => {
|
|
400
392
|
const s = parse$4(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -404,8 +396,8 @@ var require_clean = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
404
396
|
}) });
|
|
405
397
|
|
|
406
398
|
//#endregion
|
|
407
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
408
|
-
var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
399
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js
|
|
400
|
+
var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js": ((exports, module) => {
|
|
409
401
|
const SemVer$13 = require_semver$1();
|
|
410
402
|
const inc$1 = (version, release, options, identifier, identifierBase) => {
|
|
411
403
|
if (typeof options === "string") {
|
|
@@ -423,8 +415,8 @@ var require_inc = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/
|
|
|
423
415
|
}) });
|
|
424
416
|
|
|
425
417
|
//#endregion
|
|
426
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
427
|
-
var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
418
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js
|
|
419
|
+
var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js": ((exports, module) => {
|
|
428
420
|
const parse$3 = require_parse();
|
|
429
421
|
const diff$1 = (version1, version2) => {
|
|
430
422
|
const v1 = parse$3(version1, null, true);
|
|
@@ -452,32 +444,32 @@ var require_diff = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3
|
|
|
452
444
|
}) });
|
|
453
445
|
|
|
454
446
|
//#endregion
|
|
455
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
456
|
-
var require_major = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
447
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js
|
|
448
|
+
var require_major = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js": ((exports, module) => {
|
|
457
449
|
const SemVer$12 = require_semver$1();
|
|
458
450
|
const major$1 = (a, loose) => new SemVer$12(a, loose).major;
|
|
459
451
|
module.exports = major$1;
|
|
460
452
|
}) });
|
|
461
453
|
|
|
462
454
|
//#endregion
|
|
463
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
464
|
-
var require_minor = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
455
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js
|
|
456
|
+
var require_minor = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js": ((exports, module) => {
|
|
465
457
|
const SemVer$11 = require_semver$1();
|
|
466
458
|
const minor$1 = (a, loose) => new SemVer$11(a, loose).minor;
|
|
467
459
|
module.exports = minor$1;
|
|
468
460
|
}) });
|
|
469
461
|
|
|
470
462
|
//#endregion
|
|
471
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
472
|
-
var require_patch = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
463
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js
|
|
464
|
+
var require_patch = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js": ((exports, module) => {
|
|
473
465
|
const SemVer$10 = require_semver$1();
|
|
474
466
|
const patch$1 = (a, loose) => new SemVer$10(a, loose).patch;
|
|
475
467
|
module.exports = patch$1;
|
|
476
468
|
}) });
|
|
477
469
|
|
|
478
470
|
//#endregion
|
|
479
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
480
|
-
var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
471
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js
|
|
472
|
+
var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js": ((exports, module) => {
|
|
481
473
|
const parse$2 = require_parse();
|
|
482
474
|
const prerelease$1 = (version, options) => {
|
|
483
475
|
const parsed = parse$2(version, options);
|
|
@@ -487,32 +479,32 @@ var require_prerelease = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
487
479
|
}) });
|
|
488
480
|
|
|
489
481
|
//#endregion
|
|
490
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
491
|
-
var require_compare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
482
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js
|
|
483
|
+
var require_compare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js": ((exports, module) => {
|
|
492
484
|
const SemVer$9 = require_semver$1();
|
|
493
485
|
const compare$11 = (a, b, loose) => new SemVer$9(a, loose).compare(new SemVer$9(b, loose));
|
|
494
486
|
module.exports = compare$11;
|
|
495
487
|
}) });
|
|
496
488
|
|
|
497
489
|
//#endregion
|
|
498
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
499
|
-
var require_rcompare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
490
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js
|
|
491
|
+
var require_rcompare = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js": ((exports, module) => {
|
|
500
492
|
const compare$10 = require_compare();
|
|
501
493
|
const rcompare$1 = (a, b, loose) => compare$10(b, a, loose);
|
|
502
494
|
module.exports = rcompare$1;
|
|
503
495
|
}) });
|
|
504
496
|
|
|
505
497
|
//#endregion
|
|
506
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
507
|
-
var require_compare_loose = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
498
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js
|
|
499
|
+
var require_compare_loose = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js": ((exports, module) => {
|
|
508
500
|
const compare$9 = require_compare();
|
|
509
501
|
const compareLoose$1 = (a, b) => compare$9(a, b, true);
|
|
510
502
|
module.exports = compareLoose$1;
|
|
511
503
|
}) });
|
|
512
504
|
|
|
513
505
|
//#endregion
|
|
514
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
515
|
-
var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
506
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js
|
|
507
|
+
var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js": ((exports, module) => {
|
|
516
508
|
const SemVer$8 = require_semver$1();
|
|
517
509
|
const compareBuild$3 = (a, b, loose) => {
|
|
518
510
|
const versionA = new SemVer$8(a, loose);
|
|
@@ -523,72 +515,72 @@ var require_compare_build = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/sem
|
|
|
523
515
|
}) });
|
|
524
516
|
|
|
525
517
|
//#endregion
|
|
526
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
527
|
-
var require_sort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
518
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js
|
|
519
|
+
var require_sort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js": ((exports, module) => {
|
|
528
520
|
const compareBuild$2 = require_compare_build();
|
|
529
521
|
const sort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$2(a, b, loose));
|
|
530
522
|
module.exports = sort$1;
|
|
531
523
|
}) });
|
|
532
524
|
|
|
533
525
|
//#endregion
|
|
534
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
535
|
-
var require_rsort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
526
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js
|
|
527
|
+
var require_rsort = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js": ((exports, module) => {
|
|
536
528
|
const compareBuild$1 = require_compare_build();
|
|
537
529
|
const rsort$1 = (list$1, loose) => list$1.sort((a, b) => compareBuild$1(b, a, loose));
|
|
538
530
|
module.exports = rsort$1;
|
|
539
531
|
}) });
|
|
540
532
|
|
|
541
533
|
//#endregion
|
|
542
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
543
|
-
var require_gt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
534
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js
|
|
535
|
+
var require_gt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js": ((exports, module) => {
|
|
544
536
|
const compare$8 = require_compare();
|
|
545
537
|
const gt$4 = (a, b, loose) => compare$8(a, b, loose) > 0;
|
|
546
538
|
module.exports = gt$4;
|
|
547
539
|
}) });
|
|
548
540
|
|
|
549
541
|
//#endregion
|
|
550
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
551
|
-
var require_lt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
542
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js
|
|
543
|
+
var require_lt = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js": ((exports, module) => {
|
|
552
544
|
const compare$7 = require_compare();
|
|
553
545
|
const lt$3 = (a, b, loose) => compare$7(a, b, loose) < 0;
|
|
554
546
|
module.exports = lt$3;
|
|
555
547
|
}) });
|
|
556
548
|
|
|
557
549
|
//#endregion
|
|
558
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
559
|
-
var require_eq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
550
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js
|
|
551
|
+
var require_eq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js": ((exports, module) => {
|
|
560
552
|
const compare$6 = require_compare();
|
|
561
553
|
const eq$2 = (a, b, loose) => compare$6(a, b, loose) === 0;
|
|
562
554
|
module.exports = eq$2;
|
|
563
555
|
}) });
|
|
564
556
|
|
|
565
557
|
//#endregion
|
|
566
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
567
|
-
var require_neq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
558
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js
|
|
559
|
+
var require_neq = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js": ((exports, module) => {
|
|
568
560
|
const compare$5 = require_compare();
|
|
569
561
|
const neq$2 = (a, b, loose) => compare$5(a, b, loose) !== 0;
|
|
570
562
|
module.exports = neq$2;
|
|
571
563
|
}) });
|
|
572
564
|
|
|
573
565
|
//#endregion
|
|
574
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
575
|
-
var require_gte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
566
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js
|
|
567
|
+
var require_gte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js": ((exports, module) => {
|
|
576
568
|
const compare$4 = require_compare();
|
|
577
569
|
const gte$3 = (a, b, loose) => compare$4(a, b, loose) >= 0;
|
|
578
570
|
module.exports = gte$3;
|
|
579
571
|
}) });
|
|
580
572
|
|
|
581
573
|
//#endregion
|
|
582
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
583
|
-
var require_lte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
574
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js
|
|
575
|
+
var require_lte = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js": ((exports, module) => {
|
|
584
576
|
const compare$3 = require_compare();
|
|
585
577
|
const lte$3 = (a, b, loose) => compare$3(a, b, loose) <= 0;
|
|
586
578
|
module.exports = lte$3;
|
|
587
579
|
}) });
|
|
588
580
|
|
|
589
581
|
//#endregion
|
|
590
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
591
|
-
var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
582
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js
|
|
583
|
+
var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js": ((exports, module) => {
|
|
592
584
|
const eq$1 = require_eq();
|
|
593
585
|
const neq$1 = require_neq();
|
|
594
586
|
const gt$3 = require_gt();
|
|
@@ -620,8 +612,8 @@ var require_cmp = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.3/
|
|
|
620
612
|
}) });
|
|
621
613
|
|
|
622
614
|
//#endregion
|
|
623
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
624
|
-
var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
615
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js
|
|
616
|
+
var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js": ((exports, module) => {
|
|
625
617
|
const SemVer$7 = require_semver$1();
|
|
626
618
|
const parse$1 = require_parse();
|
|
627
619
|
const { safeRe: re$2, t: t$2 } = require_re();
|
|
@@ -643,14 +635,18 @@ var require_coerce = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7
|
|
|
643
635
|
}
|
|
644
636
|
if (match === null) return null;
|
|
645
637
|
const major$2 = match[2];
|
|
646
|
-
|
|
638
|
+
const minor$2 = match[3] || "0";
|
|
639
|
+
const patch$2 = match[4] || "0";
|
|
640
|
+
const prerelease$2 = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
641
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
642
|
+
return parse$1(`${major$2}.${minor$2}.${patch$2}${prerelease$2}${build}`, options);
|
|
647
643
|
};
|
|
648
644
|
module.exports = coerce$1;
|
|
649
645
|
}) });
|
|
650
646
|
|
|
651
647
|
//#endregion
|
|
652
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
653
|
-
var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
648
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js
|
|
649
|
+
var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js": ((exports, module) => {
|
|
654
650
|
var LRUCache = class {
|
|
655
651
|
constructor() {
|
|
656
652
|
this.max = 1e3;
|
|
@@ -683,8 +679,8 @@ var require_lrucache = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
683
679
|
}) });
|
|
684
680
|
|
|
685
681
|
//#endregion
|
|
686
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
687
|
-
var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
682
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js
|
|
683
|
+
var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js": ((exports, module) => {
|
|
688
684
|
const SPACE_CHARACTERS = /\s+/g;
|
|
689
685
|
var Range$11 = class Range$11 {
|
|
690
686
|
constructor(range, options) {
|
|
@@ -813,7 +809,6 @@ var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
813
809
|
return result;
|
|
814
810
|
};
|
|
815
811
|
const parseComparator = (comp, options) => {
|
|
816
|
-
comp = comp.replace(re$1[t$1.BUILD], "");
|
|
817
812
|
debug$1("comp", comp, options);
|
|
818
813
|
comp = replaceCarets(comp, options);
|
|
819
814
|
debug$1("caret", comp);
|
|
@@ -957,8 +952,8 @@ var require_range = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
957
952
|
}) });
|
|
958
953
|
|
|
959
954
|
//#endregion
|
|
960
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
961
|
-
var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
955
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js
|
|
956
|
+
var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js": ((exports, module) => {
|
|
962
957
|
const ANY$2 = Symbol("SemVer ANY");
|
|
963
958
|
var Comparator$3 = class Comparator$3 {
|
|
964
959
|
static get ANY() {
|
|
@@ -1029,8 +1024,8 @@ var require_comparator = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
1029
1024
|
}) });
|
|
1030
1025
|
|
|
1031
1026
|
//#endregion
|
|
1032
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1033
|
-
var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1027
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js
|
|
1028
|
+
var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js": ((exports, module) => {
|
|
1034
1029
|
const Range$9 = require_range();
|
|
1035
1030
|
const satisfies$4 = (version, range, options) => {
|
|
1036
1031
|
try {
|
|
@@ -1044,16 +1039,16 @@ var require_satisfies = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@
|
|
|
1044
1039
|
}) });
|
|
1045
1040
|
|
|
1046
1041
|
//#endregion
|
|
1047
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1048
|
-
var require_to_comparators = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1042
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js
|
|
1043
|
+
var require_to_comparators = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js": ((exports, module) => {
|
|
1049
1044
|
const Range$8 = require_range();
|
|
1050
1045
|
const toComparators$1 = (range, options) => new Range$8(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1051
1046
|
module.exports = toComparators$1;
|
|
1052
1047
|
}) });
|
|
1053
1048
|
|
|
1054
1049
|
//#endregion
|
|
1055
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1056
|
-
var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1050
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js
|
|
1051
|
+
var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js": ((exports, module) => {
|
|
1057
1052
|
const SemVer$4 = require_semver$1();
|
|
1058
1053
|
const Range$7 = require_range();
|
|
1059
1054
|
const maxSatisfying$1 = (versions, range, options) => {
|
|
@@ -1079,8 +1074,8 @@ var require_max_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/se
|
|
|
1079
1074
|
}) });
|
|
1080
1075
|
|
|
1081
1076
|
//#endregion
|
|
1082
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1083
|
-
var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1077
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js
|
|
1078
|
+
var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js": ((exports, module) => {
|
|
1084
1079
|
const SemVer$3 = require_semver$1();
|
|
1085
1080
|
const Range$6 = require_range();
|
|
1086
1081
|
const minSatisfying$1 = (versions, range, options) => {
|
|
@@ -1106,8 +1101,8 @@ var require_min_satisfying = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/se
|
|
|
1106
1101
|
}) });
|
|
1107
1102
|
|
|
1108
1103
|
//#endregion
|
|
1109
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1110
|
-
var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1104
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js
|
|
1105
|
+
var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js": ((exports, module) => {
|
|
1111
1106
|
const SemVer$2 = require_semver$1();
|
|
1112
1107
|
const Range$5 = require_range();
|
|
1113
1108
|
const gt$2 = require_gt();
|
|
@@ -1146,8 +1141,8 @@ var require_min_version = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semve
|
|
|
1146
1141
|
}) });
|
|
1147
1142
|
|
|
1148
1143
|
//#endregion
|
|
1149
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1150
|
-
var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1144
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js
|
|
1145
|
+
var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js": ((exports, module) => {
|
|
1151
1146
|
const Range$4 = require_range();
|
|
1152
1147
|
const validRange$1 = (range, options) => {
|
|
1153
1148
|
try {
|
|
@@ -1160,8 +1155,8 @@ var require_valid = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
|
1160
1155
|
}) });
|
|
1161
1156
|
|
|
1162
1157
|
//#endregion
|
|
1163
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1164
|
-
var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1158
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js
|
|
1159
|
+
var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js": ((exports, module) => {
|
|
1165
1160
|
const SemVer$1 = require_semver$1();
|
|
1166
1161
|
const Comparator$2 = require_comparator();
|
|
1167
1162
|
const { ANY: ANY$1 } = Comparator$2;
|
|
@@ -1214,24 +1209,24 @@ var require_outside = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.
|
|
|
1214
1209
|
}) });
|
|
1215
1210
|
|
|
1216
1211
|
//#endregion
|
|
1217
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1218
|
-
var require_gtr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1212
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js
|
|
1213
|
+
var require_gtr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js": ((exports, module) => {
|
|
1219
1214
|
const outside$2 = require_outside();
|
|
1220
1215
|
const gtr$1 = (version, range, options) => outside$2(version, range, ">", options);
|
|
1221
1216
|
module.exports = gtr$1;
|
|
1222
1217
|
}) });
|
|
1223
1218
|
|
|
1224
1219
|
//#endregion
|
|
1225
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1226
|
-
var require_ltr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1220
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js
|
|
1221
|
+
var require_ltr = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js": ((exports, module) => {
|
|
1227
1222
|
const outside$1 = require_outside();
|
|
1228
1223
|
const ltr$1 = (version, range, options) => outside$1(version, range, "<", options);
|
|
1229
1224
|
module.exports = ltr$1;
|
|
1230
1225
|
}) });
|
|
1231
1226
|
|
|
1232
1227
|
//#endregion
|
|
1233
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1234
|
-
var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1228
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js
|
|
1229
|
+
var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js": ((exports, module) => {
|
|
1235
1230
|
const Range$2 = require_range();
|
|
1236
1231
|
const intersects$1 = (r1, r2, options) => {
|
|
1237
1232
|
r1 = new Range$2(r1, options);
|
|
@@ -1242,8 +1237,8 @@ var require_intersects = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver
|
|
|
1242
1237
|
}) });
|
|
1243
1238
|
|
|
1244
1239
|
//#endregion
|
|
1245
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1246
|
-
var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1240
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js
|
|
1241
|
+
var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js": ((exports, module) => {
|
|
1247
1242
|
const satisfies$2 = require_satisfies();
|
|
1248
1243
|
const compare$2 = require_compare();
|
|
1249
1244
|
module.exports = (versions, range, options) => {
|
|
@@ -1273,8 +1268,8 @@ var require_simplify = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7
|
|
|
1273
1268
|
}) });
|
|
1274
1269
|
|
|
1275
1270
|
//#endregion
|
|
1276
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1277
|
-
var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1271
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js
|
|
1272
|
+
var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js": ((exports, module) => {
|
|
1278
1273
|
const Range$1 = require_range();
|
|
1279
1274
|
const Comparator$1 = require_comparator();
|
|
1280
1275
|
const { ANY } = Comparator$1;
|
|
@@ -1369,8 +1364,8 @@ var require_subset = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7
|
|
|
1369
1364
|
}) });
|
|
1370
1365
|
|
|
1371
1366
|
//#endregion
|
|
1372
|
-
//#region node_modules/.pnpm/semver@7.7.
|
|
1373
|
-
var require_semver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.
|
|
1367
|
+
//#region node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js
|
|
1368
|
+
var require_semver = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js": ((exports, module) => {
|
|
1374
1369
|
const internalRe = require_re();
|
|
1375
1370
|
const constants = require_constants();
|
|
1376
1371
|
const SemVer = require_semver$1();
|
|
@@ -1558,7 +1553,9 @@ const renderTable = (data, indexHeading = "index") => {
|
|
|
1558
1553
|
const endSeparator = `└${firstCellLine}┴${remainingLines.join("┴")}┘`;
|
|
1559
1554
|
const formatRow = (cells) => {
|
|
1560
1555
|
return `│${cells.map((cell, index) => {
|
|
1561
|
-
const
|
|
1556
|
+
const width = columnWidths[index];
|
|
1557
|
+
const displayWidth = getDisplayWidth(cell);
|
|
1558
|
+
const padding = width - displayWidth;
|
|
1562
1559
|
return ` ${cell}${" ".repeat(Math.max(0, padding))} `;
|
|
1563
1560
|
}).join("│")}│`;
|
|
1564
1561
|
};
|
|
@@ -1601,7 +1598,8 @@ function getVersionFromNodeModules(packagePath, packageName) {
|
|
|
1601
1598
|
function findClosestPackageJson(currentPath) {
|
|
1602
1599
|
const resolvedPath = (0, node_path.resolve)(currentPath);
|
|
1603
1600
|
const projectRoot = findProjectRoot();
|
|
1604
|
-
|
|
1601
|
+
const packageJsonPath = (0, node_path.join)(resolvedPath, "package.json");
|
|
1602
|
+
if ((0, node_fs.existsSync)(packageJsonPath)) return resolvedPath;
|
|
1605
1603
|
if (projectRoot && resolvedPath === projectRoot) return null;
|
|
1606
1604
|
const parentPath = (0, node_path.dirname)(resolvedPath);
|
|
1607
1605
|
if (parentPath === resolvedPath) return null;
|
|
@@ -1723,7 +1721,8 @@ const queryPackages = async (packages) => {
|
|
|
1723
1721
|
const customPath = await (0, __inquirer_prompts.search)({
|
|
1724
1722
|
message: "Enter the folder path (relative to project root):",
|
|
1725
1723
|
source: async (searchInput) => {
|
|
1726
|
-
|
|
1724
|
+
const rootPath = process.cwd();
|
|
1725
|
+
return getDirectoryChoices(rootPath, searchInput || "").map((choice) => ({
|
|
1727
1726
|
name: choice === "." ? ". (entire project)" : choice,
|
|
1728
1727
|
value: choice,
|
|
1729
1728
|
description: choice === "." ? "Target the entire project" : `Target ${choice} directory`
|
|
@@ -1856,20 +1855,27 @@ const determineGitIgnore = async (args) => {
|
|
|
1856
1855
|
async function getOptions({ transformFiles, packages, root, preselectedTransformFile }) {
|
|
1857
1856
|
const args = process.argv.slice(2);
|
|
1858
1857
|
if (preselectedTransformFile && args[0] === preselectedTransformFile) args.shift();
|
|
1858
|
+
const transformFile = preselectedTransformFile || await determineTransformer({
|
|
1859
|
+
candidate: args[0] ?? "",
|
|
1860
|
+
transformFiles
|
|
1861
|
+
});
|
|
1862
|
+
const pathCandidate = preselectedTransformFile ? args[0] ?? "" : args[1] ?? "";
|
|
1863
|
+
const targetPaths = await determinePaths({
|
|
1864
|
+
candidate: pathCandidate,
|
|
1865
|
+
root,
|
|
1866
|
+
packages
|
|
1867
|
+
});
|
|
1868
|
+
const isDry = await determineIsDryMode(args);
|
|
1869
|
+
const isPrint = await determineIsPrint(args);
|
|
1870
|
+
const ignorePatterns = await determineIgnorePatterns(args);
|
|
1871
|
+
const useGitIgnore = await determineGitIgnore(args);
|
|
1859
1872
|
return {
|
|
1860
|
-
transformFile
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
root,
|
|
1867
|
-
packages
|
|
1868
|
-
}),
|
|
1869
|
-
isDry: await determineIsDryMode(args),
|
|
1870
|
-
isPrint: await determineIsPrint(args),
|
|
1871
|
-
ignorePatterns: await determineIgnorePatterns(args),
|
|
1872
|
-
useGitIgnore: await determineGitIgnore(args)
|
|
1873
|
+
transformFile,
|
|
1874
|
+
targetPaths,
|
|
1875
|
+
isDry,
|
|
1876
|
+
isPrint,
|
|
1877
|
+
ignorePatterns,
|
|
1878
|
+
useGitIgnore
|
|
1873
1879
|
};
|
|
1874
1880
|
}
|
|
1875
1881
|
var getOptions_default = getOptions;
|
|
@@ -2011,4 +2017,4 @@ Object.defineProperty(exports, 'runTransformPrompts', {
|
|
|
2011
2017
|
return runTransformPrompts;
|
|
2012
2018
|
}
|
|
2013
2019
|
});
|
|
2014
|
-
//# sourceMappingURL=helpers-
|
|
2020
|
+
//# sourceMappingURL=helpers-auDAwIcO.js.map
|