vercel 31.1.1 → 31.2.0
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/index.js +92 -12
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -223317,6 +223317,84 @@ const strip_ansi_1 = __importDefault(__webpack_require__(66884));
|
|
223317
223317
|
const constants_1 = __webpack_require__(98551);
|
223318
223318
|
const INDENT = ' '.repeat(2);
|
223319
223319
|
const NEWLINE = '\n';
|
223320
|
+
const globalCommandOptions = [
|
223321
|
+
{
|
223322
|
+
name: 'help',
|
223323
|
+
shorthand: 'h',
|
223324
|
+
type: 'string',
|
223325
|
+
description: 'Output usage information',
|
223326
|
+
deprecated: false,
|
223327
|
+
multi: false,
|
223328
|
+
},
|
223329
|
+
{
|
223330
|
+
name: 'version',
|
223331
|
+
shorthand: 'v',
|
223332
|
+
type: 'string',
|
223333
|
+
description: 'Output the version number',
|
223334
|
+
deprecated: false,
|
223335
|
+
multi: false,
|
223336
|
+
},
|
223337
|
+
{
|
223338
|
+
name: 'cwd',
|
223339
|
+
shorthand: null,
|
223340
|
+
type: 'string',
|
223341
|
+
argument: 'DIR',
|
223342
|
+
description: 'Sets the current working directory for a single run of a command',
|
223343
|
+
deprecated: false,
|
223344
|
+
multi: false,
|
223345
|
+
},
|
223346
|
+
{
|
223347
|
+
name: 'local-config',
|
223348
|
+
shorthand: 'A',
|
223349
|
+
type: 'string',
|
223350
|
+
argument: 'FILE',
|
223351
|
+
description: 'Path to the local `vercel.json` file',
|
223352
|
+
deprecated: false,
|
223353
|
+
multi: false,
|
223354
|
+
},
|
223355
|
+
{
|
223356
|
+
name: 'global-config',
|
223357
|
+
shorthand: 'Q',
|
223358
|
+
type: 'string',
|
223359
|
+
argument: 'DIR',
|
223360
|
+
description: 'Path to the global `.vercel` directory',
|
223361
|
+
deprecated: false,
|
223362
|
+
multi: false,
|
223363
|
+
},
|
223364
|
+
{
|
223365
|
+
name: 'debug',
|
223366
|
+
shorthand: 'd',
|
223367
|
+
type: 'string',
|
223368
|
+
description: 'Debug mode (default off)',
|
223369
|
+
deprecated: false,
|
223370
|
+
multi: false,
|
223371
|
+
},
|
223372
|
+
{
|
223373
|
+
name: 'no-color',
|
223374
|
+
shorthand: null,
|
223375
|
+
type: 'string',
|
223376
|
+
description: 'No color mode (default off)',
|
223377
|
+
deprecated: false,
|
223378
|
+
multi: false,
|
223379
|
+
},
|
223380
|
+
{
|
223381
|
+
name: 'scope',
|
223382
|
+
shorthand: 'S',
|
223383
|
+
type: 'string',
|
223384
|
+
description: 'Set a custom scope',
|
223385
|
+
deprecated: false,
|
223386
|
+
multi: false,
|
223387
|
+
},
|
223388
|
+
{
|
223389
|
+
name: 'token',
|
223390
|
+
shorthand: 't',
|
223391
|
+
type: 'string',
|
223392
|
+
argument: 'TOKEN',
|
223393
|
+
description: 'Login token',
|
223394
|
+
deprecated: false,
|
223395
|
+
multi: false,
|
223396
|
+
},
|
223397
|
+
];
|
223320
223398
|
function calcLineLength(line) {
|
223321
223399
|
return (0, strip_ansi_1.default)(lineToString(line)).length;
|
223322
223400
|
}
|
@@ -223362,19 +223440,22 @@ function buildCommandSynopsisLine(command) {
|
|
223362
223440
|
return lineToString(line);
|
223363
223441
|
}
|
223364
223442
|
exports.buildCommandSynopsisLine = buildCommandSynopsisLine;
|
223365
|
-
function buildCommandOptionLines(
|
223443
|
+
function buildCommandOptionLines(commandOptions, options, sectionTitle) {
|
223366
223444
|
// Filter out deprecated and intentionally undocumented options
|
223367
|
-
|
223445
|
+
commandOptions = commandOptions.filter(option => !option.deprecated && option.description !== undefined);
|
223446
|
+
if (commandOptions.length === 0) {
|
223447
|
+
return '';
|
223448
|
+
}
|
223368
223449
|
// Initialize output array with header and empty line
|
223369
|
-
const outputArray = [chalk_1.default.dim(
|
223450
|
+
const outputArray = [`${chalk_1.default.dim(sectionTitle)}:`, ''];
|
223370
223451
|
// Start building option lines
|
223371
223452
|
const optionLines = [];
|
223372
223453
|
// Sort command options alphabetically
|
223373
|
-
|
223454
|
+
commandOptions.sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
|
223374
223455
|
// Keep track of longest "start" of an option line to determine description spacing
|
223375
223456
|
let maxLineStartLength = 0;
|
223376
223457
|
// Iterate over options and create the "start" of each option (e.g. ` -b, --build-env <key=value>`)
|
223377
|
-
for (const option of
|
223458
|
+
for (const option of commandOptions) {
|
223378
223459
|
const startLine = [INDENT];
|
223379
223460
|
if (option.shorthand) {
|
223380
223461
|
startLine.push(`-${option.shorthand},`);
|
@@ -223414,7 +223495,7 @@ function buildCommandOptionLines(command, options) {
|
|
223414
223495
|
*/
|
223415
223496
|
for (let i = 0; i < optionLines.length; i++) {
|
223416
223497
|
const optionLine = optionLines[i];
|
223417
|
-
const option =
|
223498
|
+
const option = commandOptions[i];
|
223418
223499
|
// Add only 2 spaces to the longest line, and then make all shorter lines the same length.
|
223419
223500
|
optionLine.push(' '.repeat(2 + (maxLineStartLength - calcLineLength(optionLine))));
|
223420
223501
|
// Descriptions may be longer than max line length. Wrap them to the same column as the first description line
|
@@ -223436,9 +223517,6 @@ function buildCommandOptionLines(command, options) {
|
|
223436
223517
|
for (const line of lines) {
|
223437
223518
|
outputArray.push(lineToString(line));
|
223438
223519
|
}
|
223439
|
-
// add an empty line in between in each option block for readability (skip the last block)
|
223440
|
-
if (i !== optionLines.length - 1)
|
223441
|
-
outputArray.push('');
|
223442
223520
|
}
|
223443
223521
|
// return the entire list of options as a single string after delete the last '\n' added to the option list
|
223444
223522
|
return outputArrayToString(outputArray);
|
@@ -223476,7 +223554,9 @@ function buildHelpOutput(command, options) {
|
|
223476
223554
|
'',
|
223477
223555
|
command.description,
|
223478
223556
|
'',
|
223479
|
-
buildCommandOptionLines(command, options),
|
223557
|
+
buildCommandOptionLines(command.options, options, 'Options'),
|
223558
|
+
'',
|
223559
|
+
buildCommandOptionLines(globalCommandOptions, options, 'Global Options'),
|
223480
223560
|
'',
|
223481
223561
|
buildCommandExampleLines(command),
|
223482
223562
|
'',
|
@@ -230277,8 +230357,8 @@ exports.default = readConfig;
|
|
230277
230357
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
230278
230358
|
exports.SENTRY_DSN = exports.GA_TRACKING_ID = void 0;
|
230279
230359
|
// This file is auto-generated
|
230280
|
-
exports.GA_TRACKING_ID =
|
230281
|
-
exports.SENTRY_DSN =
|
230360
|
+
exports.GA_TRACKING_ID = "UA-117491914-3";
|
230361
|
+
exports.SENTRY_DSN = "https://26a24e59ba954011919a524b341b6ab5@sentry.io/1323225";
|
230282
230362
|
|
230283
230363
|
|
230284
230364
|
/***/ }),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "31.
|
3
|
+
"version": "31.2.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -25,11 +25,11 @@
|
|
25
25
|
"@vercel/build-utils": "6.8.2",
|
26
26
|
"@vercel/go": "2.5.1",
|
27
27
|
"@vercel/hydrogen": "0.0.64",
|
28
|
-
"@vercel/next": "3.9.
|
28
|
+
"@vercel/next": "3.9.3",
|
29
29
|
"@vercel/node": "2.15.6",
|
30
30
|
"@vercel/python": "3.1.60",
|
31
31
|
"@vercel/redwood": "1.1.15",
|
32
|
-
"@vercel/remix-builder": "1.
|
32
|
+
"@vercel/remix-builder": "1.9.0",
|
33
33
|
"@vercel/ruby": "1.3.76",
|
34
34
|
"@vercel/static-build": "1.3.42"
|
35
35
|
},
|