@arcgis/create 6.0.0-next.34 → 6.0.0-next.35
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/init.js +12 -8
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -176,9 +176,9 @@ class Ma {
|
|
|
176
176
|
if (l && !l.hidden) {
|
|
177
177
|
const p = l.short && t._findOption(l.short), s = l.long && t._findOption(l.long);
|
|
178
178
|
!p && !s ? i.push(l) : l.long && !s ? i.push(
|
|
179
|
-
t.createOption(l.long, l.description)
|
|
179
|
+
t.createOption(l.long, l.description).helpGroup(l.helpGroupHeading)
|
|
180
180
|
) : l.short && !p && i.push(
|
|
181
|
-
t.createOption(l.short, l.description)
|
|
181
|
+
t.createOption(l.short, l.description).helpGroup(l.helpGroupHeading)
|
|
182
182
|
);
|
|
183
183
|
}
|
|
184
184
|
return this.sortOptions && i.sort(this.compareOptions), i;
|
|
@@ -606,7 +606,7 @@ class Nt {
|
|
|
606
606
|
* @param {string} [description]
|
|
607
607
|
*/
|
|
608
608
|
constructor(t, i) {
|
|
609
|
-
this.flags = t, this.description = i || "", this.required = t.includes("<"), this.optional = t.includes("["), this.variadic =
|
|
609
|
+
this.flags = t, this.description = i || "", this.required = t.includes("<"), this.optional = t.includes("["), this.variadic = new RegExp("\\p{ID_Continue}\\.\\.\\.[>\\]]$", "u").test(t), this.mandatory = !1;
|
|
610
610
|
const l = Da(t);
|
|
611
611
|
this.short = l.shortFlag, this.long = l.longFlag, this.negate = !1, this.long && (this.negate = this.long.startsWith("--no-")), this.defaultValue = void 0, this.defaultValueDescription = void 0, this.presetArg = void 0, this.envVar = void 0, this.parseArg = void 0, this.hidden = !1, this.argChoices = void 0, this.conflictsWith = [], this.implied = void 0, this.helpGroupHeading = void 0;
|
|
612
612
|
}
|
|
@@ -1475,7 +1475,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1475
1475
|
getOptionValueSourceWithGlobals(t) {
|
|
1476
1476
|
let i;
|
|
1477
1477
|
return this._getCommandAndAncestors().forEach((l) => {
|
|
1478
|
-
l.
|
|
1478
|
+
Object.hasOwn(l._optionValueSources, t) && (i = l.getOptionValueSource(t));
|
|
1479
1479
|
}), i;
|
|
1480
1480
|
}
|
|
1481
1481
|
/**
|
|
@@ -1948,7 +1948,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
1948
1948
|
function s(n) {
|
|
1949
1949
|
return n.length > 1 && n[0] === "-";
|
|
1950
1950
|
}
|
|
1951
|
-
const c = (n) => /^-(\d+|\d*\.\d+)(
|
|
1951
|
+
const c = (n) => /^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(n) ? !this._getCommandAndAncestors().some(
|
|
1952
1952
|
(u) => u.options.map((a) => a.short).some((a) => /^-\d$/.test(a))
|
|
1953
1953
|
) : !1;
|
|
1954
1954
|
let h = null, o = null, m = 0;
|
|
@@ -2308,7 +2308,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
2308
2308
|
* (This does not override a group set directly on the subcommand using .helpGroup().)
|
|
2309
2309
|
*
|
|
2310
2310
|
* @example
|
|
2311
|
-
* program.commandsGroup('Development Commands:);
|
|
2311
|
+
* program.commandsGroup('Development Commands:');
|
|
2312
2312
|
* program.command('watch')...
|
|
2313
2313
|
* program.command('lint')...
|
|
2314
2314
|
* ...
|
|
@@ -2439,7 +2439,7 @@ Expecting one of '${l.join("', '")}'`);
|
|
|
2439
2439
|
* Pass in false to disable the built-in help option.
|
|
2440
2440
|
*
|
|
2441
2441
|
* @example
|
|
2442
|
-
* program.helpOption('-?, --help' 'show help'); // customise
|
|
2442
|
+
* program.helpOption('-?, --help', 'show help'); // customise
|
|
2443
2443
|
* program.helpOption(false); // disable
|
|
2444
2444
|
*
|
|
2445
2445
|
* @param {(string | boolean)} flags
|
|
@@ -2530,7 +2530,11 @@ function ns(e) {
|
|
|
2530
2530
|
if (!t.startsWith("--inspect"))
|
|
2531
2531
|
return t;
|
|
2532
2532
|
let i, l = "127.0.0.1", p = "9229", s;
|
|
2533
|
-
return (s = t.match(/^(--inspect(-brk
|
|
2533
|
+
return (s = t.match(/^(--inspect(-brk|-wait)?)$/)) !== null ? i = s[1] : (s = t.match(
|
|
2534
|
+
/^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/
|
|
2535
|
+
)) !== null ? (i = s[1], /^\d+$/.test(s[3]) ? p = s[3] : l = s[3]) : (s = t.match(
|
|
2536
|
+
/^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/
|
|
2537
|
+
)) !== null && (i = s[1], l = s[3], p = s[4]), i && p !== "0" ? `${i}=${l}:${parseInt(p) + 1}` : t;
|
|
2534
2538
|
});
|
|
2535
2539
|
}
|
|
2536
2540
|
function ss() {
|
package/package.json
CHANGED