vercel 44.0.0 → 44.1.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 +616 -364
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -4071,14 +4071,14 @@ var require_templates = __commonJS2({
|
|
4071
4071
|
}
|
4072
4072
|
return results;
|
4073
4073
|
}
|
4074
|
-
function buildStyle(
|
4074
|
+
function buildStyle(chalk124, styles) {
|
4075
4075
|
const enabled = {};
|
4076
4076
|
for (const layer of styles) {
|
4077
4077
|
for (const style of layer.styles) {
|
4078
4078
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
4079
4079
|
}
|
4080
4080
|
}
|
4081
|
-
let current =
|
4081
|
+
let current = chalk124;
|
4082
4082
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
4083
4083
|
if (!Array.isArray(styles2)) {
|
4084
4084
|
continue;
|
@@ -4090,7 +4090,7 @@ var require_templates = __commonJS2({
|
|
4090
4090
|
}
|
4091
4091
|
return current;
|
4092
4092
|
}
|
4093
|
-
module2.exports = (
|
4093
|
+
module2.exports = (chalk124, temporary) => {
|
4094
4094
|
const styles = [];
|
4095
4095
|
const chunks = [];
|
4096
4096
|
let chunk = [];
|
@@ -4100,13 +4100,13 @@ var require_templates = __commonJS2({
|
|
4100
4100
|
} else if (style) {
|
4101
4101
|
const string = chunk.join("");
|
4102
4102
|
chunk = [];
|
4103
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
4103
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk124, styles)(string));
|
4104
4104
|
styles.push({ inverse, styles: parseStyle(style) });
|
4105
4105
|
} else if (close2) {
|
4106
4106
|
if (styles.length === 0) {
|
4107
4107
|
throw new Error("Found extraneous } in Chalk template literal");
|
4108
4108
|
}
|
4109
|
-
chunks.push(buildStyle(
|
4109
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
4110
4110
|
chunk = [];
|
4111
4111
|
styles.pop();
|
4112
4112
|
} else {
|
@@ -4154,16 +4154,16 @@ var require_source = __commonJS2({
|
|
4154
4154
|
}
|
4155
4155
|
};
|
4156
4156
|
var chalkFactory = (options) => {
|
4157
|
-
const
|
4158
|
-
applyOptions(
|
4159
|
-
|
4160
|
-
Object.setPrototypeOf(
|
4161
|
-
Object.setPrototypeOf(
|
4162
|
-
|
4157
|
+
const chalk125 = {};
|
4158
|
+
applyOptions(chalk125, options);
|
4159
|
+
chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
|
4160
|
+
Object.setPrototypeOf(chalk125, Chalk.prototype);
|
4161
|
+
Object.setPrototypeOf(chalk125.template, chalk125);
|
4162
|
+
chalk125.template.constructor = () => {
|
4163
4163
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
4164
4164
|
};
|
4165
|
-
|
4166
|
-
return
|
4165
|
+
chalk125.template.Instance = ChalkClass;
|
4166
|
+
return chalk125.template;
|
4167
4167
|
};
|
4168
4168
|
function Chalk(options) {
|
4169
4169
|
return chalkFactory(options);
|
@@ -4274,7 +4274,7 @@ var require_source = __commonJS2({
|
|
4274
4274
|
return openAll + string + closeAll;
|
4275
4275
|
};
|
4276
4276
|
var template;
|
4277
|
-
var chalkTag = (
|
4277
|
+
var chalkTag = (chalk125, ...strings) => {
|
4278
4278
|
const [firstString] = strings;
|
4279
4279
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
4280
4280
|
return strings.join(" ");
|
@@ -4290,14 +4290,14 @@ var require_source = __commonJS2({
|
|
4290
4290
|
if (template === void 0) {
|
4291
4291
|
template = require_templates();
|
4292
4292
|
}
|
4293
|
-
return template(
|
4293
|
+
return template(chalk125, parts.join(""));
|
4294
4294
|
};
|
4295
4295
|
Object.defineProperties(Chalk.prototype, styles);
|
4296
|
-
var
|
4297
|
-
|
4298
|
-
|
4299
|
-
|
4300
|
-
module2.exports =
|
4296
|
+
var chalk124 = Chalk();
|
4297
|
+
chalk124.supportsColor = stdoutColor;
|
4298
|
+
chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
4299
|
+
chalk124.stderr.supportsColor = stderrColor;
|
4300
|
+
module2.exports = chalk124;
|
4301
4301
|
}
|
4302
4302
|
});
|
4303
4303
|
|
@@ -7208,14 +7208,14 @@ var require_templates2 = __commonJS2({
|
|
7208
7208
|
}
|
7209
7209
|
return results;
|
7210
7210
|
}
|
7211
|
-
function buildStyle(
|
7211
|
+
function buildStyle(chalk124, styles) {
|
7212
7212
|
const enabled = {};
|
7213
7213
|
for (const layer of styles) {
|
7214
7214
|
for (const style of layer.styles) {
|
7215
7215
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
7216
7216
|
}
|
7217
7217
|
}
|
7218
|
-
let current =
|
7218
|
+
let current = chalk124;
|
7219
7219
|
for (const styleName of Object.keys(enabled)) {
|
7220
7220
|
if (Array.isArray(enabled[styleName])) {
|
7221
7221
|
if (!(styleName in current)) {
|
@@ -7230,7 +7230,7 @@ var require_templates2 = __commonJS2({
|
|
7230
7230
|
}
|
7231
7231
|
return current;
|
7232
7232
|
}
|
7233
|
-
module2.exports = (
|
7233
|
+
module2.exports = (chalk124, tmp) => {
|
7234
7234
|
const styles = [];
|
7235
7235
|
const chunks = [];
|
7236
7236
|
let chunk = [];
|
@@ -7240,13 +7240,13 @@ var require_templates2 = __commonJS2({
|
|
7240
7240
|
} else if (style) {
|
7241
7241
|
const str = chunk.join("");
|
7242
7242
|
chunk = [];
|
7243
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
7243
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk124, styles)(str));
|
7244
7244
|
styles.push({ inverse, styles: parseStyle(style) });
|
7245
7245
|
} else if (close2) {
|
7246
7246
|
if (styles.length === 0) {
|
7247
7247
|
throw new Error("Found extraneous } in Chalk template literal");
|
7248
7248
|
}
|
7249
|
-
chunks.push(buildStyle(
|
7249
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
7250
7250
|
chunk = [];
|
7251
7251
|
styles.pop();
|
7252
7252
|
} else {
|
@@ -7283,16 +7283,16 @@ var require_chalk = __commonJS2({
|
|
7283
7283
|
}
|
7284
7284
|
function Chalk(options) {
|
7285
7285
|
if (!this || !(this instanceof Chalk) || this.template) {
|
7286
|
-
const
|
7287
|
-
applyOptions(
|
7288
|
-
|
7286
|
+
const chalk124 = {};
|
7287
|
+
applyOptions(chalk124, options);
|
7288
|
+
chalk124.template = function() {
|
7289
7289
|
const args2 = [].slice.call(arguments);
|
7290
|
-
return chalkTag.apply(null, [
|
7290
|
+
return chalkTag.apply(null, [chalk124.template].concat(args2));
|
7291
7291
|
};
|
7292
|
-
Object.setPrototypeOf(
|
7293
|
-
Object.setPrototypeOf(
|
7294
|
-
|
7295
|
-
return
|
7292
|
+
Object.setPrototypeOf(chalk124, Chalk.prototype);
|
7293
|
+
Object.setPrototypeOf(chalk124.template, chalk124);
|
7294
|
+
chalk124.template.constructor = Chalk;
|
7295
|
+
return chalk124.template;
|
7296
7296
|
}
|
7297
7297
|
applyOptions(this, options);
|
7298
7298
|
}
|
@@ -7411,7 +7411,7 @@ var require_chalk = __commonJS2({
|
|
7411
7411
|
ansiStyles.dim.open = originalDim;
|
7412
7412
|
return str;
|
7413
7413
|
}
|
7414
|
-
function chalkTag(
|
7414
|
+
function chalkTag(chalk124, strings) {
|
7415
7415
|
if (!Array.isArray(strings)) {
|
7416
7416
|
return [].slice.call(arguments, 1).join(" ");
|
7417
7417
|
}
|
@@ -7421,7 +7421,7 @@ var require_chalk = __commonJS2({
|
|
7421
7421
|
parts.push(String(args2[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
7422
7422
|
parts.push(String(strings.raw[i]));
|
7423
7423
|
}
|
7424
|
-
return template(
|
7424
|
+
return template(chalk124, parts.join(""));
|
7425
7425
|
}
|
7426
7426
|
Object.defineProperties(Chalk.prototype, styles);
|
7427
7427
|
module2.exports = Chalk();
|
@@ -9372,21 +9372,21 @@ var require_cli_spinners = __commonJS2({
|
|
9372
9372
|
var require_log_symbols = __commonJS2({
|
9373
9373
|
"../../node_modules/.pnpm/log-symbols@2.2.0/node_modules/log-symbols/index.js"(exports2, module2) {
|
9374
9374
|
"use strict";
|
9375
|
-
var
|
9375
|
+
var chalk124 = require_chalk();
|
9376
9376
|
var isSupported = process.platform !== "win32" || process.env.CI || process.env.TERM === "xterm-256color";
|
9377
|
-
var
|
9378
|
-
info:
|
9379
|
-
success:
|
9380
|
-
warning:
|
9381
|
-
error:
|
9377
|
+
var main16 = {
|
9378
|
+
info: chalk124.blue("\u2139"),
|
9379
|
+
success: chalk124.green("\u2714"),
|
9380
|
+
warning: chalk124.yellow("\u26A0"),
|
9381
|
+
error: chalk124.red("\u2716")
|
9382
9382
|
};
|
9383
9383
|
var fallbacks = {
|
9384
|
-
info:
|
9385
|
-
success:
|
9386
|
-
warning:
|
9387
|
-
error:
|
9384
|
+
info: chalk124.blue("i"),
|
9385
|
+
success: chalk124.green("\u221A"),
|
9386
|
+
warning: chalk124.yellow("\u203C"),
|
9387
|
+
error: chalk124.red("\xD7")
|
9388
9388
|
};
|
9389
|
-
module2.exports = isSupported ?
|
9389
|
+
module2.exports = isSupported ? main16 : fallbacks;
|
9390
9390
|
}
|
9391
9391
|
});
|
9392
9392
|
|
@@ -9780,7 +9780,7 @@ var require_wcwidth = __commonJS2({
|
|
9780
9780
|
var require_ora = __commonJS2({
|
9781
9781
|
"../../node_modules/.pnpm/ora@3.4.0/node_modules/ora/index.js"(exports2, module2) {
|
9782
9782
|
"use strict";
|
9783
|
-
var
|
9783
|
+
var chalk124 = require_chalk();
|
9784
9784
|
var cliCursor = require_cli_cursor();
|
9785
9785
|
var cliSpinners = require_cli_spinners();
|
9786
9786
|
var logSymbols = require_log_symbols();
|
@@ -9869,7 +9869,7 @@ var require_ora = __commonJS2({
|
|
9869
9869
|
const { frames } = this.spinner;
|
9870
9870
|
let frame = frames[this.frameIndex];
|
9871
9871
|
if (this.color) {
|
9872
|
-
frame =
|
9872
|
+
frame = chalk124[this.color](frame);
|
9873
9873
|
}
|
9874
9874
|
this.frameIndex = ++this.frameIndex % frames.length;
|
9875
9875
|
const fullPrefixText = typeof this.prefixText === "string" ? this.prefixText + " " : "";
|
@@ -12422,7 +12422,7 @@ var require_path = __commonJS2({
|
|
12422
12422
|
function isAbsolute2(path11) {
|
12423
12423
|
return path11.charAt(0) === "/";
|
12424
12424
|
}
|
12425
|
-
function
|
12425
|
+
function join24(...args2) {
|
12426
12426
|
return normalizePath6(args2.join("/"));
|
12427
12427
|
}
|
12428
12428
|
function dirname8(path11) {
|
@@ -12447,7 +12447,7 @@ var require_path = __commonJS2({
|
|
12447
12447
|
exports2.basename = basename9;
|
12448
12448
|
exports2.dirname = dirname8;
|
12449
12449
|
exports2.isAbsolute = isAbsolute2;
|
12450
|
-
exports2.join =
|
12450
|
+
exports2.join = join24;
|
12451
12451
|
exports2.normalizePath = normalizePath6;
|
12452
12452
|
exports2.relative = relative7;
|
12453
12453
|
exports2.resolve = resolve13;
|
@@ -33328,9 +33328,52 @@ var init_command20 = __esm({
|
|
33328
33328
|
}
|
33329
33329
|
});
|
33330
33330
|
|
33331
|
+
// src/commands/microfrontends/command.ts
|
33332
|
+
var pullSubcommand2, microfrontendsCommand;
|
33333
|
+
var init_command21 = __esm({
|
33334
|
+
"src/commands/microfrontends/command.ts"() {
|
33335
|
+
"use strict";
|
33336
|
+
init_pkg_name();
|
33337
|
+
pullSubcommand2 = {
|
33338
|
+
name: "pull",
|
33339
|
+
aliases: [],
|
33340
|
+
description: "Pull a Vercel Microfrontends configuration into your project",
|
33341
|
+
arguments: [],
|
33342
|
+
options: [
|
33343
|
+
{
|
33344
|
+
name: "dpl",
|
33345
|
+
shorthand: null,
|
33346
|
+
deprecated: false,
|
33347
|
+
type: String,
|
33348
|
+
description: "The deploymentId to use for pulling the microfrontends configuration"
|
33349
|
+
}
|
33350
|
+
],
|
33351
|
+
examples: [
|
33352
|
+
{
|
33353
|
+
name: "Pull a microfrontends configuration",
|
33354
|
+
value: `${packageName} microfrontends pull`
|
33355
|
+
},
|
33356
|
+
{
|
33357
|
+
name: "Pull a microfrontends configuration for a specific deployment",
|
33358
|
+
value: `${packageName} microfrontends pull --dpl=<deployment-id>`
|
33359
|
+
}
|
33360
|
+
]
|
33361
|
+
};
|
33362
|
+
microfrontendsCommand = {
|
33363
|
+
name: "microfrontends",
|
33364
|
+
aliases: ["mf"],
|
33365
|
+
description: "Manages your microfrontends",
|
33366
|
+
arguments: [],
|
33367
|
+
subcommands: [pullSubcommand2],
|
33368
|
+
options: [],
|
33369
|
+
examples: []
|
33370
|
+
};
|
33371
|
+
}
|
33372
|
+
});
|
33373
|
+
|
33331
33374
|
// src/commands/project/command.ts
|
33332
33375
|
var addSubcommand6, inspectSubcommand2, listSubcommand7, removeSubcommand8, projectCommand;
|
33333
|
-
var
|
33376
|
+
var init_command22 = __esm({
|
33334
33377
|
"src/commands/project/command.ts"() {
|
33335
33378
|
"use strict";
|
33336
33379
|
init_pkg_name();
|
@@ -33430,7 +33473,7 @@ var init_command21 = __esm({
|
|
33430
33473
|
|
33431
33474
|
// src/commands/promote/command.ts
|
33432
33475
|
var statusSubcommand, promoteCommand;
|
33433
|
-
var
|
33476
|
+
var init_command23 = __esm({
|
33434
33477
|
"src/commands/promote/command.ts"() {
|
33435
33478
|
"use strict";
|
33436
33479
|
init_pkg_name();
|
@@ -33499,7 +33542,7 @@ var init_command22 = __esm({
|
|
33499
33542
|
|
33500
33543
|
// src/commands/pull/command.ts
|
33501
33544
|
var pullCommand;
|
33502
|
-
var
|
33545
|
+
var init_command24 = __esm({
|
33503
33546
|
"src/commands/pull/command.ts"() {
|
33504
33547
|
"use strict";
|
33505
33548
|
init_pkg_name();
|
@@ -33571,7 +33614,7 @@ var init_command23 = __esm({
|
|
33571
33614
|
|
33572
33615
|
// src/commands/redeploy/command.ts
|
33573
33616
|
var redeployCommand;
|
33574
|
-
var
|
33617
|
+
var init_command25 = __esm({
|
33575
33618
|
"src/commands/redeploy/command.ts"() {
|
33576
33619
|
"use strict";
|
33577
33620
|
init_pkg_name();
|
@@ -33622,7 +33665,7 @@ var init_command24 = __esm({
|
|
33622
33665
|
|
33623
33666
|
// src/commands/remove/command.ts
|
33624
33667
|
var removeCommand;
|
33625
|
-
var
|
33668
|
+
var init_command26 = __esm({
|
33626
33669
|
"src/commands/remove/command.ts"() {
|
33627
33670
|
"use strict";
|
33628
33671
|
init_pkg_name();
|
@@ -33672,7 +33715,7 @@ var init_command25 = __esm({
|
|
33672
33715
|
|
33673
33716
|
// src/commands/rollback/command.ts
|
33674
33717
|
var statusSubcommand2, rollbackCommand;
|
33675
|
-
var
|
33718
|
+
var init_command27 = __esm({
|
33676
33719
|
"src/commands/rollback/command.ts"() {
|
33677
33720
|
"use strict";
|
33678
33721
|
init_pkg_name();
|
@@ -33733,7 +33776,7 @@ var init_command26 = __esm({
|
|
33733
33776
|
|
33734
33777
|
// src/commands/rolling-release/command.ts
|
33735
33778
|
var configureSubcommand, startSubcommand, approveSubcommand, abortSubcommand, completeSubcommand, fetchSubcommand, rollingReleaseCommand;
|
33736
|
-
var
|
33779
|
+
var init_command28 = __esm({
|
33737
33780
|
"src/commands/rolling-release/command.ts"() {
|
33738
33781
|
"use strict";
|
33739
33782
|
init_arg_common();
|
@@ -33927,7 +33970,7 @@ var init_command27 = __esm({
|
|
33927
33970
|
|
33928
33971
|
// src/commands/target/command.ts
|
33929
33972
|
var listSubcommand8, targetCommand;
|
33930
|
-
var
|
33973
|
+
var init_command29 = __esm({
|
33931
33974
|
"src/commands/target/command.ts"() {
|
33932
33975
|
"use strict";
|
33933
33976
|
init_pkg_name();
|
@@ -33958,7 +34001,7 @@ var init_command28 = __esm({
|
|
33958
34001
|
|
33959
34002
|
// src/commands/teams/command.ts
|
33960
34003
|
var addSubcommand7, listSubcommand9, switchSubcommand, inviteSubcommand, teamsCommand;
|
33961
|
-
var
|
34004
|
+
var init_command30 = __esm({
|
33962
34005
|
"src/commands/teams/command.ts"() {
|
33963
34006
|
"use strict";
|
33964
34007
|
init_pkg_name();
|
@@ -34049,7 +34092,7 @@ var init_command29 = __esm({
|
|
34049
34092
|
|
34050
34093
|
// src/commands/telemetry/command.ts
|
34051
34094
|
var statusSubcommand3, enableSubcommand, flushSubcommand, disableSubcommand, telemetryCommand;
|
34052
|
-
var
|
34095
|
+
var init_command31 = __esm({
|
34053
34096
|
"src/commands/telemetry/command.ts"() {
|
34054
34097
|
"use strict";
|
34055
34098
|
statusSubcommand3 = {
|
@@ -34104,7 +34147,7 @@ var init_command30 = __esm({
|
|
34104
34147
|
|
34105
34148
|
// src/commands/whoami/command.ts
|
34106
34149
|
var whoamiCommand;
|
34107
|
-
var
|
34150
|
+
var init_command32 = __esm({
|
34108
34151
|
"src/commands/whoami/command.ts"() {
|
34109
34152
|
"use strict";
|
34110
34153
|
init_pkg_name();
|
@@ -34126,7 +34169,7 @@ var init_command31 = __esm({
|
|
34126
34169
|
|
34127
34170
|
// src/commands/blob/command.ts
|
34128
34171
|
var listSubcommand10, putSubcommand, delSubcommand, copySubcommand, addStoreSubcommand, removeStoreSubcommand, getStoreSubcommand, storeSubcommand, blobCommand;
|
34129
|
-
var
|
34172
|
+
var init_command33 = __esm({
|
34130
34173
|
"src/commands/blob/command.ts"() {
|
34131
34174
|
"use strict";
|
34132
34175
|
listSubcommand10 = {
|
@@ -34403,6 +34446,7 @@ var init_commands = __esm({
|
|
34403
34446
|
init_command30();
|
34404
34447
|
init_command31();
|
34405
34448
|
init_command32();
|
34449
|
+
init_command33();
|
34406
34450
|
init_output_manager();
|
34407
34451
|
commandsStructs = [
|
34408
34452
|
aliasCommand,
|
@@ -34426,6 +34470,7 @@ var init_commands = __esm({
|
|
34426
34470
|
loginCommand,
|
34427
34471
|
logoutCommand,
|
34428
34472
|
logsCommand,
|
34473
|
+
microfrontendsCommand,
|
34429
34474
|
projectCommand,
|
34430
34475
|
promoteCommand,
|
34431
34476
|
pullCommand,
|
@@ -35749,14 +35794,14 @@ var require_templates3 = __commonJS2({
|
|
35749
35794
|
}
|
35750
35795
|
return results;
|
35751
35796
|
}
|
35752
|
-
function buildStyle(
|
35797
|
+
function buildStyle(chalk124, styles) {
|
35753
35798
|
const enabled = {};
|
35754
35799
|
for (const layer of styles) {
|
35755
35800
|
for (const style of layer.styles) {
|
35756
35801
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
35757
35802
|
}
|
35758
35803
|
}
|
35759
|
-
let current =
|
35804
|
+
let current = chalk124;
|
35760
35805
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
35761
35806
|
if (!Array.isArray(styles2)) {
|
35762
35807
|
continue;
|
@@ -35768,7 +35813,7 @@ var require_templates3 = __commonJS2({
|
|
35768
35813
|
}
|
35769
35814
|
return current;
|
35770
35815
|
}
|
35771
|
-
module2.exports = (
|
35816
|
+
module2.exports = (chalk124, temporary) => {
|
35772
35817
|
const styles = [];
|
35773
35818
|
const chunks = [];
|
35774
35819
|
let chunk = [];
|
@@ -35778,13 +35823,13 @@ var require_templates3 = __commonJS2({
|
|
35778
35823
|
} else if (style) {
|
35779
35824
|
const string = chunk.join("");
|
35780
35825
|
chunk = [];
|
35781
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
35826
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk124, styles)(string));
|
35782
35827
|
styles.push({ inverse, styles: parseStyle(style) });
|
35783
35828
|
} else if (close2) {
|
35784
35829
|
if (styles.length === 0) {
|
35785
35830
|
throw new Error("Found extraneous } in Chalk template literal");
|
35786
35831
|
}
|
35787
|
-
chunks.push(buildStyle(
|
35832
|
+
chunks.push(buildStyle(chalk124, styles)(chunk.join("")));
|
35788
35833
|
chunk = [];
|
35789
35834
|
styles.pop();
|
35790
35835
|
} else {
|
@@ -35832,16 +35877,16 @@ var require_source2 = __commonJS2({
|
|
35832
35877
|
}
|
35833
35878
|
};
|
35834
35879
|
var chalkFactory = (options) => {
|
35835
|
-
const
|
35836
|
-
applyOptions(
|
35837
|
-
|
35838
|
-
Object.setPrototypeOf(
|
35839
|
-
Object.setPrototypeOf(
|
35840
|
-
|
35880
|
+
const chalk125 = {};
|
35881
|
+
applyOptions(chalk125, options);
|
35882
|
+
chalk125.template = (...arguments_) => chalkTag(chalk125.template, ...arguments_);
|
35883
|
+
Object.setPrototypeOf(chalk125, Chalk.prototype);
|
35884
|
+
Object.setPrototypeOf(chalk125.template, chalk125);
|
35885
|
+
chalk125.template.constructor = () => {
|
35841
35886
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
35842
35887
|
};
|
35843
|
-
|
35844
|
-
return
|
35888
|
+
chalk125.template.Instance = ChalkClass;
|
35889
|
+
return chalk125.template;
|
35845
35890
|
};
|
35846
35891
|
function Chalk(options) {
|
35847
35892
|
return chalkFactory(options);
|
@@ -35952,7 +35997,7 @@ var require_source2 = __commonJS2({
|
|
35952
35997
|
return openAll + string + closeAll;
|
35953
35998
|
};
|
35954
35999
|
var template;
|
35955
|
-
var chalkTag = (
|
36000
|
+
var chalkTag = (chalk125, ...strings) => {
|
35956
36001
|
const [firstString] = strings;
|
35957
36002
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
35958
36003
|
return strings.join(" ");
|
@@ -35968,14 +36013,14 @@ var require_source2 = __commonJS2({
|
|
35968
36013
|
if (template === void 0) {
|
35969
36014
|
template = require_templates3();
|
35970
36015
|
}
|
35971
|
-
return template(
|
36016
|
+
return template(chalk125, parts.join(""));
|
35972
36017
|
};
|
35973
36018
|
Object.defineProperties(Chalk.prototype, styles);
|
35974
|
-
var
|
35975
|
-
|
35976
|
-
|
35977
|
-
|
35978
|
-
module2.exports =
|
36019
|
+
var chalk124 = Chalk();
|
36020
|
+
chalk124.supportsColor = stdoutColor;
|
36021
|
+
chalk124.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
36022
|
+
chalk124.stderr.supportsColor = stderrColor;
|
36023
|
+
module2.exports = chalk124;
|
35979
36024
|
}
|
35980
36025
|
});
|
35981
36026
|
|
@@ -37454,7 +37499,7 @@ var require_figures = __commonJS2({
|
|
37454
37499
|
"use strict";
|
37455
37500
|
var escapeStringRegexp = require_escape_string_regexp();
|
37456
37501
|
var { platform } = process;
|
37457
|
-
var
|
37502
|
+
var main16 = {
|
37458
37503
|
tick: "\u2714",
|
37459
37504
|
cross: "\u2716",
|
37460
37505
|
star: "\u2605",
|
@@ -37540,12 +37585,12 @@ var require_figures = __commonJS2({
|
|
37540
37585
|
hamburger: "\u2261",
|
37541
37586
|
smiley: "\u263A",
|
37542
37587
|
mustache: "\u250C\u2500\u2510",
|
37543
|
-
heart:
|
37588
|
+
heart: main16.heart,
|
37544
37589
|
nodejs: "\u2666",
|
37545
|
-
arrowUp:
|
37546
|
-
arrowDown:
|
37547
|
-
arrowLeft:
|
37548
|
-
arrowRight:
|
37590
|
+
arrowUp: main16.arrowUp,
|
37591
|
+
arrowDown: main16.arrowDown,
|
37592
|
+
arrowLeft: main16.arrowLeft,
|
37593
|
+
arrowRight: main16.arrowRight,
|
37549
37594
|
radioOn: "(*)",
|
37550
37595
|
radioOff: "( )",
|
37551
37596
|
checkboxOn: "[\xD7]",
|
@@ -37573,14 +37618,14 @@ var require_figures = __commonJS2({
|
|
37573
37618
|
sevenEighths: "7/8"
|
37574
37619
|
};
|
37575
37620
|
if (platform === "linux") {
|
37576
|
-
|
37621
|
+
main16.questionMarkPrefix = "?";
|
37577
37622
|
}
|
37578
|
-
var figures4 = platform === "win32" ? windows :
|
37623
|
+
var figures4 = platform === "win32" ? windows : main16;
|
37579
37624
|
var fn2 = (string) => {
|
37580
|
-
if (figures4 ===
|
37625
|
+
if (figures4 === main16) {
|
37581
37626
|
return string;
|
37582
37627
|
}
|
37583
|
-
for (const [key, value] of Object.entries(
|
37628
|
+
for (const [key, value] of Object.entries(main16)) {
|
37584
37629
|
if (value === figures4[key]) {
|
37585
37630
|
continue;
|
37586
37631
|
}
|
@@ -37589,7 +37634,7 @@ var require_figures = __commonJS2({
|
|
37589
37634
|
return string;
|
37590
37635
|
};
|
37591
37636
|
module2.exports = Object.assign(fn2, figures4);
|
37592
|
-
module2.exports.main =
|
37637
|
+
module2.exports.main = main16;
|
37593
37638
|
module2.exports.windows = windows;
|
37594
37639
|
}
|
37595
37640
|
});
|
@@ -43869,7 +43914,7 @@ var require_write_json_file = __commonJS2({
|
|
43869
43914
|
};
|
43870
43915
|
var readFile6 = (fp) => pify(fs15.readFile)(fp, "utf8").catch(() => {
|
43871
43916
|
});
|
43872
|
-
var
|
43917
|
+
var main16 = (fp, data, opts) => {
|
43873
43918
|
return (opts.detectIndent ? readFile6(fp) : Promise.resolve()).then((str) => {
|
43874
43919
|
const indent = str ? detectIndent(str).indent : opts.indent;
|
43875
43920
|
const json = JSON.stringify(data, opts.replacer, indent);
|
@@ -43894,7 +43939,7 @@ var require_write_json_file = __commonJS2({
|
|
43894
43939
|
`, { mode: opts.mode });
|
43895
43940
|
};
|
43896
43941
|
module2.exports = (fp, data, opts) => {
|
43897
|
-
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(
|
43942
|
+
return makeDir(path11.dirname(fp), { fs: fs15 }).then(() => init3(main16, fp, data, opts));
|
43898
43943
|
};
|
43899
43944
|
module2.exports.sync = (fp, data, opts) => {
|
43900
43945
|
makeDir.sync(path11.dirname(fp), { fs: fs15 });
|
@@ -46101,7 +46146,7 @@ var require_hashes = __commonJS2({
|
|
46101
46146
|
});
|
46102
46147
|
module2.exports = __toCommonJS4(hashes_exports);
|
46103
46148
|
var import_crypto3 = require("crypto");
|
46104
|
-
var
|
46149
|
+
var import_fs_extra25 = __toESM4(require_lib8());
|
46105
46150
|
var import_async_sema = require_lib9();
|
46106
46151
|
function hash(buf) {
|
46107
46152
|
return (0, import_crypto3.createHash)("sha1").update(buf).digest("hex");
|
@@ -46120,17 +46165,17 @@ var require_hashes = __commonJS2({
|
|
46120
46165
|
await Promise.all(
|
46121
46166
|
files.map(async (name) => {
|
46122
46167
|
await semaphore.acquire();
|
46123
|
-
const stat2 = await
|
46168
|
+
const stat2 = await import_fs_extra25.default.lstat(name);
|
46124
46169
|
const mode = stat2.mode;
|
46125
46170
|
let data;
|
46126
46171
|
const isDirectory2 = stat2.isDirectory();
|
46127
46172
|
let h;
|
46128
46173
|
if (!isDirectory2) {
|
46129
46174
|
if (stat2.isSymbolicLink()) {
|
46130
|
-
const link4 = await
|
46175
|
+
const link4 = await import_fs_extra25.default.readlink(name);
|
46131
46176
|
data = Buffer.from(link4, "utf8");
|
46132
46177
|
} else {
|
46133
|
-
data = await
|
46178
|
+
data = await import_fs_extra25.default.readFile(name);
|
46134
46179
|
}
|
46135
46180
|
h = hash(data);
|
46136
46181
|
}
|
@@ -54910,14 +54955,14 @@ var require_utils12 = __commonJS2({
|
|
54910
54955
|
});
|
54911
54956
|
module2.exports = __toCommonJS4(utils_exports);
|
54912
54957
|
var import_node_fs3 = __toESM4(require("fs"), 1);
|
54913
|
-
var
|
54958
|
+
var import_node_path6 = require("path");
|
54914
54959
|
var CONFIGURATION_FILENAMES = [
|
54915
54960
|
"microfrontends.jsonc",
|
54916
54961
|
"microfrontends.json"
|
54917
54962
|
];
|
54918
54963
|
function findConfig({ dir }) {
|
54919
54964
|
for (const filename of CONFIGURATION_FILENAMES) {
|
54920
|
-
const maybeConfig = (0,
|
54965
|
+
const maybeConfig = (0, import_node_path6.join)(dir, filename);
|
54921
54966
|
if (import_node_fs3.default.existsSync(maybeConfig)) {
|
54922
54967
|
return maybeConfig;
|
54923
54968
|
}
|
@@ -55144,7 +55189,7 @@ var require_utils13 = __commonJS2({
|
|
55144
55189
|
var import_pkg5 = require_pkg();
|
55145
55190
|
var import_build_utils18 = require("@vercel/build-utils");
|
55146
55191
|
var import_async_sema = require_lib9();
|
55147
|
-
var
|
55192
|
+
var import_fs_extra25 = require_lib8();
|
55148
55193
|
var import_readdir_recursive = __toESM4(require_readdir_recursive());
|
55149
55194
|
var import_utils4 = require_utils12();
|
55150
55195
|
var semaphore = new import_async_sema.Sema(10);
|
@@ -55183,7 +55228,7 @@ var require_utils13 = __commonJS2({
|
|
55183
55228
|
return {};
|
55184
55229
|
}
|
55185
55230
|
try {
|
55186
|
-
const jsonString = await (0,
|
55231
|
+
const jsonString = await (0, import_fs_extra25.readFile)(filePath, "utf8");
|
55187
55232
|
return JSON.parse(jsonString);
|
55188
55233
|
} catch (e2) {
|
55189
55234
|
console.error(e2);
|
@@ -55192,7 +55237,7 @@ var require_utils13 = __commonJS2({
|
|
55192
55237
|
}
|
55193
55238
|
var maybeRead = async function(path11, default_) {
|
55194
55239
|
try {
|
55195
|
-
return await (0,
|
55240
|
+
return await (0, import_fs_extra25.readFile)(path11, "utf8");
|
55196
55241
|
} catch (err) {
|
55197
55242
|
return default_;
|
55198
55243
|
}
|
@@ -55226,7 +55271,7 @@ var require_utils13 = __commonJS2({
|
|
55226
55271
|
);
|
55227
55272
|
await Promise.all(
|
55228
55273
|
vcConfigFilePaths.map(async (p) => {
|
55229
|
-
const configJson = await (0,
|
55274
|
+
const configJson = await (0, import_fs_extra25.readFile)(p, "utf8");
|
55230
55275
|
const config2 = JSON.parse(configJson);
|
55231
55276
|
if (!config2.filePathMap)
|
55232
55277
|
return;
|
@@ -56587,7 +56632,7 @@ var require_BufferList = __commonJS2({
|
|
56587
56632
|
this.head = this.tail = null;
|
56588
56633
|
this.length = 0;
|
56589
56634
|
};
|
56590
|
-
BufferList.prototype.join = function
|
56635
|
+
BufferList.prototype.join = function join24(s) {
|
56591
56636
|
if (this.length === 0)
|
56592
56637
|
return "";
|
56593
56638
|
var p = this.head;
|
@@ -60341,7 +60386,7 @@ var require_create_deployment = __commonJS2({
|
|
60341
60386
|
default: () => buildCreateDeployment
|
60342
60387
|
});
|
60343
60388
|
module2.exports = __toCommonJS4(create_deployment_exports);
|
60344
|
-
var
|
60389
|
+
var import_fs_extra25 = require_lib8();
|
60345
60390
|
var import_path41 = require("path");
|
60346
60391
|
var import_hashes = require_hashes();
|
60347
60392
|
var import_upload = require_upload();
|
@@ -60374,7 +60419,7 @@ var require_create_deployment = __commonJS2({
|
|
60374
60419
|
message: "Options object must include a `token`"
|
60375
60420
|
});
|
60376
60421
|
}
|
60377
|
-
clientOptions.isDirectory = !Array.isArray(path11) && (0,
|
60422
|
+
clientOptions.isDirectory = !Array.isArray(path11) && (0, import_fs_extra25.lstatSync)(path11).isDirectory();
|
60378
60423
|
if (Array.isArray(path11)) {
|
60379
60424
|
for (const filePath of path11) {
|
60380
60425
|
if (!(0, import_path41.isAbsolute)(filePath)) {
|
@@ -67112,7 +67157,7 @@ var require_util4 = __commonJS2({
|
|
67112
67157
|
return path11;
|
67113
67158
|
}
|
67114
67159
|
exports2.normalize = normalize4;
|
67115
|
-
function
|
67160
|
+
function join24(aRoot, aPath) {
|
67116
67161
|
if (aRoot === "") {
|
67117
67162
|
aRoot = ".";
|
67118
67163
|
}
|
@@ -67144,7 +67189,7 @@ var require_util4 = __commonJS2({
|
|
67144
67189
|
}
|
67145
67190
|
return joined;
|
67146
67191
|
}
|
67147
|
-
exports2.join =
|
67192
|
+
exports2.join = join24;
|
67148
67193
|
exports2.isAbsolute = function(aPath) {
|
67149
67194
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
67150
67195
|
};
|
@@ -67317,7 +67362,7 @@ var require_util4 = __commonJS2({
|
|
67317
67362
|
parsed.path = parsed.path.substring(0, index + 1);
|
67318
67363
|
}
|
67319
67364
|
}
|
67320
|
-
sourceURL =
|
67365
|
+
sourceURL = join24(urlGenerate(parsed), sourceURL);
|
67321
67366
|
}
|
67322
67367
|
return normalize4(sourceURL);
|
67323
67368
|
}
|
@@ -69120,7 +69165,7 @@ var require_escodegen = __commonJS2({
|
|
69120
69165
|
function noEmptySpace() {
|
69121
69166
|
return space ? space : " ";
|
69122
69167
|
}
|
69123
|
-
function
|
69168
|
+
function join24(left, right) {
|
69124
69169
|
var leftSource, rightSource, leftCharCode, rightCharCode;
|
69125
69170
|
leftSource = toSourceNodeWhenNeeded(left).toString();
|
69126
69171
|
if (leftSource.length === 0) {
|
@@ -69451,8 +69496,8 @@ var require_escodegen = __commonJS2({
|
|
69451
69496
|
} else {
|
69452
69497
|
result.push(that.generateExpression(stmt.left, Precedence.Call, E_TTT));
|
69453
69498
|
}
|
69454
|
-
result =
|
69455
|
-
result = [
|
69499
|
+
result = join24(result, operator);
|
69500
|
+
result = [join24(
|
69456
69501
|
result,
|
69457
69502
|
that.generateExpression(stmt.right, Precedence.Assignment, E_TTT)
|
69458
69503
|
), ")"];
|
@@ -69595,11 +69640,11 @@ var require_escodegen = __commonJS2({
|
|
69595
69640
|
var result, fragment;
|
69596
69641
|
result = ["class"];
|
69597
69642
|
if (stmt.id) {
|
69598
|
-
result =
|
69643
|
+
result = join24(result, this.generateExpression(stmt.id, Precedence.Sequence, E_TTT));
|
69599
69644
|
}
|
69600
69645
|
if (stmt.superClass) {
|
69601
|
-
fragment =
|
69602
|
-
result =
|
69646
|
+
fragment = join24("extends", this.generateExpression(stmt.superClass, Precedence.Unary, E_TTT));
|
69647
|
+
result = join24(result, fragment);
|
69603
69648
|
}
|
69604
69649
|
result.push(space);
|
69605
69650
|
result.push(this.generateStatement(stmt.body, S_TFFT));
|
@@ -69612,9 +69657,9 @@ var require_escodegen = __commonJS2({
|
|
69612
69657
|
return escapeDirective(stmt.directive) + this.semicolon(flags);
|
69613
69658
|
},
|
69614
69659
|
DoWhileStatement: function(stmt, flags) {
|
69615
|
-
var result =
|
69660
|
+
var result = join24("do", this.maybeBlock(stmt.body, S_TFFF));
|
69616
69661
|
result = this.maybeBlockSuffix(stmt.body, result);
|
69617
|
-
return
|
69662
|
+
return join24(result, [
|
69618
69663
|
"while" + space + "(",
|
69619
69664
|
this.generateExpression(stmt.test, Precedence.Sequence, E_TTT),
|
69620
69665
|
")" + this.semicolon(flags)
|
@@ -69650,11 +69695,11 @@ var require_escodegen = __commonJS2({
|
|
69650
69695
|
ExportDefaultDeclaration: function(stmt, flags) {
|
69651
69696
|
var result = ["export"], bodyFlags;
|
69652
69697
|
bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
|
69653
|
-
result =
|
69698
|
+
result = join24(result, "default");
|
69654
69699
|
if (isStatement(stmt.declaration)) {
|
69655
|
-
result =
|
69700
|
+
result = join24(result, this.generateStatement(stmt.declaration, bodyFlags));
|
69656
69701
|
} else {
|
69657
|
-
result =
|
69702
|
+
result = join24(result, this.generateExpression(stmt.declaration, Precedence.Assignment, E_TTT) + this.semicolon(flags));
|
69658
69703
|
}
|
69659
69704
|
return result;
|
69660
69705
|
},
|
@@ -69662,15 +69707,15 @@ var require_escodegen = __commonJS2({
|
|
69662
69707
|
var result = ["export"], bodyFlags, that = this;
|
69663
69708
|
bodyFlags = flags & F_SEMICOLON_OPT ? S_TFFT : S_TFFF;
|
69664
69709
|
if (stmt.declaration) {
|
69665
|
-
return
|
69710
|
+
return join24(result, this.generateStatement(stmt.declaration, bodyFlags));
|
69666
69711
|
}
|
69667
69712
|
if (stmt.specifiers) {
|
69668
69713
|
if (stmt.specifiers.length === 0) {
|
69669
|
-
result =
|
69714
|
+
result = join24(result, "{" + space + "}");
|
69670
69715
|
} else if (stmt.specifiers[0].type === Syntax.ExportBatchSpecifier) {
|
69671
|
-
result =
|
69716
|
+
result = join24(result, this.generateExpression(stmt.specifiers[0], Precedence.Sequence, E_TTT));
|
69672
69717
|
} else {
|
69673
|
-
result =
|
69718
|
+
result = join24(result, "{");
|
69674
69719
|
withIndent(function(indent2) {
|
69675
69720
|
var i, iz;
|
69676
69721
|
result.push(newline);
|
@@ -69688,7 +69733,7 @@ var require_escodegen = __commonJS2({
|
|
69688
69733
|
result.push(base + "}");
|
69689
69734
|
}
|
69690
69735
|
if (stmt.source) {
|
69691
|
-
result =
|
69736
|
+
result = join24(result, [
|
69692
69737
|
"from" + space,
|
69693
69738
|
// ModuleSpecifier
|
69694
69739
|
this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
|
@@ -69776,7 +69821,7 @@ var require_escodegen = __commonJS2({
|
|
69776
69821
|
];
|
69777
69822
|
cursor = 0;
|
69778
69823
|
if (stmt.specifiers[cursor].type === Syntax.ImportDefaultSpecifier) {
|
69779
|
-
result =
|
69824
|
+
result = join24(result, [
|
69780
69825
|
this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
|
69781
69826
|
]);
|
69782
69827
|
++cursor;
|
@@ -69786,7 +69831,7 @@ var require_escodegen = __commonJS2({
|
|
69786
69831
|
result.push(",");
|
69787
69832
|
}
|
69788
69833
|
if (stmt.specifiers[cursor].type === Syntax.ImportNamespaceSpecifier) {
|
69789
|
-
result =
|
69834
|
+
result = join24(result, [
|
69790
69835
|
space,
|
69791
69836
|
this.generateExpression(stmt.specifiers[cursor], Precedence.Sequence, E_TTT)
|
69792
69837
|
]);
|
@@ -69815,7 +69860,7 @@ var require_escodegen = __commonJS2({
|
|
69815
69860
|
}
|
69816
69861
|
}
|
69817
69862
|
}
|
69818
|
-
result =
|
69863
|
+
result = join24(result, [
|
69819
69864
|
"from" + space,
|
69820
69865
|
// ModuleSpecifier
|
69821
69866
|
this.generateExpression(stmt.source, Precedence.Sequence, E_TTT),
|
@@ -69869,7 +69914,7 @@ var require_escodegen = __commonJS2({
|
|
69869
69914
|
return result;
|
69870
69915
|
},
|
69871
69916
|
ThrowStatement: function(stmt, flags) {
|
69872
|
-
return [
|
69917
|
+
return [join24(
|
69873
69918
|
"throw",
|
69874
69919
|
this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
|
69875
69920
|
), this.semicolon(flags)];
|
@@ -69880,7 +69925,7 @@ var require_escodegen = __commonJS2({
|
|
69880
69925
|
result = this.maybeBlockSuffix(stmt.block, result);
|
69881
69926
|
if (stmt.handlers) {
|
69882
69927
|
for (i = 0, iz = stmt.handlers.length; i < iz; ++i) {
|
69883
|
-
result =
|
69928
|
+
result = join24(result, this.generateStatement(stmt.handlers[i], S_TFFF));
|
69884
69929
|
if (stmt.finalizer || i + 1 !== iz) {
|
69885
69930
|
result = this.maybeBlockSuffix(stmt.handlers[i].body, result);
|
69886
69931
|
}
|
@@ -69888,7 +69933,7 @@ var require_escodegen = __commonJS2({
|
|
69888
69933
|
} else {
|
69889
69934
|
guardedHandlers = stmt.guardedHandlers || [];
|
69890
69935
|
for (i = 0, iz = guardedHandlers.length; i < iz; ++i) {
|
69891
|
-
result =
|
69936
|
+
result = join24(result, this.generateStatement(guardedHandlers[i], S_TFFF));
|
69892
69937
|
if (stmt.finalizer || i + 1 !== iz) {
|
69893
69938
|
result = this.maybeBlockSuffix(guardedHandlers[i].body, result);
|
69894
69939
|
}
|
@@ -69896,13 +69941,13 @@ var require_escodegen = __commonJS2({
|
|
69896
69941
|
if (stmt.handler) {
|
69897
69942
|
if (Array.isArray(stmt.handler)) {
|
69898
69943
|
for (i = 0, iz = stmt.handler.length; i < iz; ++i) {
|
69899
|
-
result =
|
69944
|
+
result = join24(result, this.generateStatement(stmt.handler[i], S_TFFF));
|
69900
69945
|
if (stmt.finalizer || i + 1 !== iz) {
|
69901
69946
|
result = this.maybeBlockSuffix(stmt.handler[i].body, result);
|
69902
69947
|
}
|
69903
69948
|
}
|
69904
69949
|
} else {
|
69905
|
-
result =
|
69950
|
+
result = join24(result, this.generateStatement(stmt.handler, S_TFFF));
|
69906
69951
|
if (stmt.finalizer) {
|
69907
69952
|
result = this.maybeBlockSuffix(stmt.handler.body, result);
|
69908
69953
|
}
|
@@ -69910,7 +69955,7 @@ var require_escodegen = __commonJS2({
|
|
69910
69955
|
}
|
69911
69956
|
}
|
69912
69957
|
if (stmt.finalizer) {
|
69913
|
-
result =
|
69958
|
+
result = join24(result, ["finally", this.maybeBlock(stmt.finalizer, S_TFFF)]);
|
69914
69959
|
}
|
69915
69960
|
return result;
|
69916
69961
|
},
|
@@ -69944,7 +69989,7 @@ var require_escodegen = __commonJS2({
|
|
69944
69989
|
withIndent(function() {
|
69945
69990
|
if (stmt.test) {
|
69946
69991
|
result = [
|
69947
|
-
|
69992
|
+
join24("case", that.generateExpression(stmt.test, Precedence.Sequence, E_TTT)),
|
69948
69993
|
":"
|
69949
69994
|
];
|
69950
69995
|
} else {
|
@@ -69992,9 +70037,9 @@ var require_escodegen = __commonJS2({
|
|
69992
70037
|
result.push(this.maybeBlock(stmt.consequent, S_TFFF));
|
69993
70038
|
result = this.maybeBlockSuffix(stmt.consequent, result);
|
69994
70039
|
if (stmt.alternate.type === Syntax.IfStatement) {
|
69995
|
-
result =
|
70040
|
+
result = join24(result, ["else ", this.generateStatement(stmt.alternate, bodyFlags)]);
|
69996
70041
|
} else {
|
69997
|
-
result =
|
70042
|
+
result = join24(result, join24("else", this.maybeBlock(stmt.alternate, bodyFlags)));
|
69998
70043
|
}
|
69999
70044
|
} else {
|
70000
70045
|
result.push(this.maybeBlock(stmt.consequent, bodyFlags));
|
@@ -70095,7 +70140,7 @@ var require_escodegen = __commonJS2({
|
|
70095
70140
|
},
|
70096
70141
|
ReturnStatement: function(stmt, flags) {
|
70097
70142
|
if (stmt.argument) {
|
70098
|
-
return [
|
70143
|
+
return [join24(
|
70099
70144
|
"return",
|
70100
70145
|
this.generateExpression(stmt.argument, Precedence.Sequence, E_TTT)
|
70101
70146
|
), this.semicolon(flags)];
|
@@ -70184,14 +70229,14 @@ var require_escodegen = __commonJS2({
|
|
70184
70229
|
if (leftSource.charCodeAt(leftSource.length - 1) === 47 && esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))) {
|
70185
70230
|
result = [fragment, noEmptySpace(), expr.operator];
|
70186
70231
|
} else {
|
70187
|
-
result =
|
70232
|
+
result = join24(fragment, expr.operator);
|
70188
70233
|
}
|
70189
70234
|
fragment = this.generateExpression(expr.right, rightPrecedence, flags);
|
70190
70235
|
if (expr.operator === "/" && fragment.toString().charAt(0) === "/" || expr.operator.slice(-1) === "<" && fragment.toString().slice(0, 3) === "!--") {
|
70191
70236
|
result.push(noEmptySpace());
|
70192
70237
|
result.push(fragment);
|
70193
70238
|
} else {
|
70194
|
-
result =
|
70239
|
+
result = join24(result, fragment);
|
70195
70240
|
}
|
70196
70241
|
if (expr.operator === "in" && !(flags & F_ALLOW_IN)) {
|
70197
70242
|
return ["(", result, ")"];
|
@@ -70231,7 +70276,7 @@ var require_escodegen = __commonJS2({
|
|
70231
70276
|
var result, length, i, iz, itemFlags;
|
70232
70277
|
length = expr["arguments"].length;
|
70233
70278
|
itemFlags = flags & F_ALLOW_UNPARATH_NEW && !parentheses && length === 0 ? E_TFT : E_TFF;
|
70234
|
-
result =
|
70279
|
+
result = join24(
|
70235
70280
|
"new",
|
70236
70281
|
this.generateExpression(expr.callee, Precedence.New, itemFlags)
|
70237
70282
|
);
|
@@ -70281,11 +70326,11 @@ var require_escodegen = __commonJS2({
|
|
70281
70326
|
var result, fragment, rightCharCode, leftSource, leftCharCode;
|
70282
70327
|
fragment = this.generateExpression(expr.argument, Precedence.Unary, E_TTT);
|
70283
70328
|
if (space === "") {
|
70284
|
-
result =
|
70329
|
+
result = join24(expr.operator, fragment);
|
70285
70330
|
} else {
|
70286
70331
|
result = [expr.operator];
|
70287
70332
|
if (expr.operator.length > 2) {
|
70288
|
-
result =
|
70333
|
+
result = join24(result, fragment);
|
70289
70334
|
} else {
|
70290
70335
|
leftSource = toSourceNodeWhenNeeded(result).toString();
|
70291
70336
|
leftCharCode = leftSource.charCodeAt(leftSource.length - 1);
|
@@ -70308,7 +70353,7 @@ var require_escodegen = __commonJS2({
|
|
70308
70353
|
result = "yield";
|
70309
70354
|
}
|
70310
70355
|
if (expr.argument) {
|
70311
|
-
result =
|
70356
|
+
result = join24(
|
70312
70357
|
result,
|
70313
70358
|
this.generateExpression(expr.argument, Precedence.Yield, E_TTT)
|
70314
70359
|
);
|
@@ -70316,7 +70361,7 @@ var require_escodegen = __commonJS2({
|
|
70316
70361
|
return parenthesize(result, Precedence.Yield, precedence);
|
70317
70362
|
},
|
70318
70363
|
AwaitExpression: function(expr, precedence, flags) {
|
70319
|
-
var result =
|
70364
|
+
var result = join24(
|
70320
70365
|
expr.all ? "await*" : "await",
|
70321
70366
|
this.generateExpression(expr.argument, Precedence.Await, E_TTT)
|
70322
70367
|
);
|
@@ -70399,11 +70444,11 @@ var require_escodegen = __commonJS2({
|
|
70399
70444
|
var result, fragment;
|
70400
70445
|
result = ["class"];
|
70401
70446
|
if (expr.id) {
|
70402
|
-
result =
|
70447
|
+
result = join24(result, this.generateExpression(expr.id, Precedence.Sequence, E_TTT));
|
70403
70448
|
}
|
70404
70449
|
if (expr.superClass) {
|
70405
|
-
fragment =
|
70406
|
-
result =
|
70450
|
+
fragment = join24("extends", this.generateExpression(expr.superClass, Precedence.Unary, E_TTT));
|
70451
|
+
result = join24(result, fragment);
|
70407
70452
|
}
|
70408
70453
|
result.push(space);
|
70409
70454
|
result.push(this.generateStatement(expr.body, S_TFFT));
|
@@ -70418,7 +70463,7 @@ var require_escodegen = __commonJS2({
|
|
70418
70463
|
}
|
70419
70464
|
if (expr.kind === "get" || expr.kind === "set") {
|
70420
70465
|
fragment = [
|
70421
|
-
|
70466
|
+
join24(expr.kind, this.generatePropertyKey(expr.key, expr.computed)),
|
70422
70467
|
this.generateFunctionBody(expr.value)
|
70423
70468
|
];
|
70424
70469
|
} else {
|
@@ -70428,7 +70473,7 @@ var require_escodegen = __commonJS2({
|
|
70428
70473
|
this.generateFunctionBody(expr.value)
|
70429
70474
|
];
|
70430
70475
|
}
|
70431
|
-
return
|
70476
|
+
return join24(result, fragment);
|
70432
70477
|
},
|
70433
70478
|
Property: function(expr, precedence, flags) {
|
70434
70479
|
if (expr.kind === "get" || expr.kind === "set") {
|
@@ -70623,7 +70668,7 @@ var require_escodegen = __commonJS2({
|
|
70623
70668
|
for (i = 0, iz = expr.blocks.length; i < iz; ++i) {
|
70624
70669
|
fragment = that.generateExpression(expr.blocks[i], Precedence.Sequence, E_TTT);
|
70625
70670
|
if (i > 0 || extra.moz.comprehensionExpressionStartsWithAssignment) {
|
70626
|
-
result =
|
70671
|
+
result = join24(result, fragment);
|
70627
70672
|
} else {
|
70628
70673
|
result.push(fragment);
|
70629
70674
|
}
|
@@ -70631,13 +70676,13 @@ var require_escodegen = __commonJS2({
|
|
70631
70676
|
});
|
70632
70677
|
}
|
70633
70678
|
if (expr.filter) {
|
70634
|
-
result =
|
70679
|
+
result = join24(result, "if" + space);
|
70635
70680
|
fragment = this.generateExpression(expr.filter, Precedence.Sequence, E_TTT);
|
70636
|
-
result =
|
70681
|
+
result = join24(result, ["(", fragment, ")"]);
|
70637
70682
|
}
|
70638
70683
|
if (!extra.moz.comprehensionExpressionStartsWithAssignment) {
|
70639
70684
|
fragment = this.generateExpression(expr.body, Precedence.Assignment, E_TTT);
|
70640
|
-
result =
|
70685
|
+
result = join24(result, fragment);
|
70641
70686
|
}
|
70642
70687
|
result.push(expr.type === Syntax.GeneratorExpression ? ")" : "]");
|
70643
70688
|
return result;
|
@@ -70653,8 +70698,8 @@ var require_escodegen = __commonJS2({
|
|
70653
70698
|
} else {
|
70654
70699
|
fragment = this.generateExpression(expr.left, Precedence.Call, E_TTT);
|
70655
70700
|
}
|
70656
|
-
fragment =
|
70657
|
-
fragment =
|
70701
|
+
fragment = join24(fragment, expr.of ? "of" : "in");
|
70702
|
+
fragment = join24(fragment, this.generateExpression(expr.right, Precedence.Sequence, E_TTT));
|
70658
70703
|
return ["for" + space + "(", fragment, ")"];
|
70659
70704
|
},
|
70660
70705
|
SpreadElement: function(expr, precedence, flags) {
|
@@ -91073,7 +91118,7 @@ var require_isexe = __commonJS2({
|
|
91073
91118
|
var require_lib11 = __commonJS2({
|
91074
91119
|
"../../node_modules/.pnpm/which@3.0.0/node_modules/which/lib/index.js"(exports2, module2) {
|
91075
91120
|
var isexe = require_isexe();
|
91076
|
-
var { join:
|
91121
|
+
var { join: join24, delimiter: delimiter3, sep: sep3, posix: posix2 } = require("path");
|
91077
91122
|
var isWindows = process.platform === "win32";
|
91078
91123
|
var rSlash = new RegExp(`[${posix2.sep}${sep3 === posix2.sep ? "" : sep3}]`.replace(/(\\)/g, "\\$1"));
|
91079
91124
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
@@ -91102,7 +91147,7 @@ var require_lib11 = __commonJS2({
|
|
91102
91147
|
var getPathPart = (raw, cmd2) => {
|
91103
91148
|
const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
91104
91149
|
const prefix = !pathPart && rRel.test(cmd2) ? cmd2.slice(0, 2) : "";
|
91105
|
-
return prefix +
|
91150
|
+
return prefix + join24(pathPart, cmd2);
|
91106
91151
|
};
|
91107
91152
|
var which2 = async (cmd2, opt = {}) => {
|
91108
91153
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd2, opt);
|
@@ -100573,7 +100618,7 @@ var init_list4 = __esm({
|
|
100573
100618
|
init_get_command_flags();
|
100574
100619
|
init_get_args();
|
100575
100620
|
init_get_flags_specification();
|
100576
|
-
|
100621
|
+
init_command33();
|
100577
100622
|
init_pkg_name();
|
100578
100623
|
init_list3();
|
100579
100624
|
init_error2();
|
@@ -100783,7 +100828,7 @@ var init_put2 = __esm({
|
|
100783
100828
|
blob2 = __toESM3(require("@vercel/blob"));
|
100784
100829
|
init_get_args();
|
100785
100830
|
init_get_flags_specification();
|
100786
|
-
|
100831
|
+
init_command33();
|
100787
100832
|
import_node_fs = require("fs");
|
100788
100833
|
import_error_utils12 = __toESM3(require_dist2());
|
100789
100834
|
import_node_path = require("path");
|
@@ -100856,7 +100901,7 @@ var init_del2 = __esm({
|
|
100856
100901
|
blob3 = __toESM3(require("@vercel/blob"));
|
100857
100902
|
init_get_args();
|
100858
100903
|
init_get_flags_specification();
|
100859
|
-
|
100904
|
+
init_command33();
|
100860
100905
|
init_del();
|
100861
100906
|
init_error2();
|
100862
100907
|
init_pkg_name();
|
@@ -100975,7 +101020,7 @@ var init_copy2 = __esm({
|
|
100975
101020
|
blob4 = __toESM3(require("@vercel/blob"));
|
100976
101021
|
init_get_args();
|
100977
101022
|
init_get_flags_specification();
|
100978
|
-
|
101023
|
+
init_command33();
|
100979
101024
|
init_copy();
|
100980
101025
|
init_pkg_name();
|
100981
101026
|
}
|
@@ -118922,7 +118967,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
118922
118967
|
});
|
118923
118968
|
module2.exports = __toCommonJS4(detect_file_system_api_exports);
|
118924
118969
|
var import_semver4 = __toESM4(require_semver2());
|
118925
|
-
var
|
118970
|
+
var import__93 = require_dist20();
|
118926
118971
|
async function detectFileSystemAPI2({
|
118927
118972
|
files,
|
118928
118973
|
projectSettings,
|
@@ -118988,7 +119033,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
118988
119033
|
};
|
118989
119034
|
}
|
118990
119035
|
const invalidBuilder = builders.find(({ use }) => {
|
118991
|
-
const valid = (0,
|
119036
|
+
const valid = (0, import__93.isOfficialRuntime)("go", use) || (0, import__93.isOfficialRuntime)("python", use) || (0, import__93.isOfficialRuntime)("ruby", use) || (0, import__93.isOfficialRuntime)("node", use) || (0, import__93.isOfficialRuntime)("next", use) || (0, import__93.isOfficialRuntime)("static", use) || (0, import__93.isOfficialRuntime)("static-build", use);
|
118992
119037
|
return !valid;
|
118993
119038
|
});
|
118994
119039
|
if (invalidBuilder) {
|
@@ -119001,7 +119046,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
119001
119046
|
for (const lang of ["go", "python", "ruby"]) {
|
119002
119047
|
for (const { use } of builders) {
|
119003
119048
|
const plugin = "vercel-plugin-" + lang;
|
119004
|
-
if ((0,
|
119049
|
+
if ((0, import__93.isOfficialRuntime)(lang, use) && !deps[plugin]) {
|
119005
119050
|
return {
|
119006
119051
|
metadata,
|
119007
119052
|
fsApiBuilder: null,
|
@@ -119058,7 +119103,7 @@ var require_detect_file_system_api = __commonJS2({
|
|
119058
119103
|
}
|
119059
119104
|
}
|
119060
119105
|
const frontendBuilder = builders.find(
|
119061
|
-
({ use }) => (0,
|
119106
|
+
({ use }) => (0, import__93.isOfficialRuntime)("next", use) || (0, import__93.isOfficialRuntime)("static", use) || (0, import__93.isOfficialRuntime)("static-build", use)
|
119062
119107
|
);
|
119063
119108
|
const config2 = frontendBuilder?.config || {};
|
119064
119109
|
const withTag = tag ? `@${tag}` : "";
|
@@ -126809,7 +126854,7 @@ var init_store_add2 = __esm({
|
|
126809
126854
|
init_pkg_name();
|
126810
126855
|
init_get_flags_specification();
|
126811
126856
|
init_get_args();
|
126812
|
-
|
126857
|
+
init_command33();
|
126813
126858
|
init_store_add();
|
126814
126859
|
init_error2();
|
126815
126860
|
}
|
@@ -126885,7 +126930,7 @@ var init_store_remove = __esm({
|
|
126885
126930
|
init_error2();
|
126886
126931
|
init_output_manager();
|
126887
126932
|
init_get_flags_specification();
|
126888
|
-
|
126933
|
+
init_command33();
|
126889
126934
|
init_get_args();
|
126890
126935
|
init_link2();
|
126891
126936
|
}
|
@@ -129306,7 +129351,7 @@ var init_store_get2 = __esm({
|
|
129306
129351
|
init_get_args();
|
129307
129352
|
init_get_flags_specification();
|
129308
129353
|
init_link2();
|
129309
|
-
|
129354
|
+
init_command33();
|
129310
129355
|
import_date_fns = __toESM3(require_date_fns());
|
129311
129356
|
import_chalk40 = __toESM3(require_source());
|
129312
129357
|
init_store_get();
|
@@ -129385,7 +129430,7 @@ var init_store2 = __esm({
|
|
129385
129430
|
init_get_invalid_subcommand();
|
129386
129431
|
init_get_subcommand();
|
129387
129432
|
init_help();
|
129388
|
-
|
129433
|
+
init_command33();
|
129389
129434
|
init_get_flags_specification();
|
129390
129435
|
init_output_manager();
|
129391
129436
|
init_commands();
|
@@ -129543,7 +129588,7 @@ var init_token = __esm({
|
|
129543
129588
|
import_node_path2 = require("path");
|
129544
129589
|
init_diff_env_files();
|
129545
129590
|
init_get_flags_specification();
|
129546
|
-
|
129591
|
+
init_command33();
|
129547
129592
|
init_get_args();
|
129548
129593
|
init_pkg_name();
|
129549
129594
|
init_cmd();
|
@@ -129661,7 +129706,7 @@ var init_blob2 = __esm({
|
|
129661
129706
|
init_get_subcommand();
|
129662
129707
|
init_help();
|
129663
129708
|
init_list4();
|
129664
|
-
|
129709
|
+
init_command33();
|
129665
129710
|
init_get_flags_specification();
|
129666
129711
|
init_output_manager();
|
129667
129712
|
init_commands();
|
@@ -145237,7 +145282,7 @@ var init_pull4 = __esm({
|
|
145237
145282
|
init_ensure_link();
|
145238
145283
|
init_humanize_path();
|
145239
145284
|
init_help();
|
145240
|
-
|
145285
|
+
init_command24();
|
145241
145286
|
init_parse_target();
|
145242
145287
|
init_get_flags_specification();
|
145243
145288
|
init_error2();
|
@@ -173960,8 +174005,8 @@ var init_builds = __esm({
|
|
173960
174005
|
}
|
173961
174006
|
}
|
173962
174007
|
const corner = isLast ? "\u2514\u2500\u2500" : "\u251C\u2500\u2500";
|
173963
|
-
const
|
173964
|
-
return `${import_chalk92.default.grey(corner)} ${color(
|
174008
|
+
const main16 = prefix + path11 + finalSize + finalRegion;
|
174009
|
+
return `${import_chalk92.default.grey(corner)} ${color(main16)}`;
|
173965
174010
|
};
|
173966
174011
|
getDirPath = (path11, level = 0, highestLevel = null) => {
|
173967
174012
|
const parts = path11.split("/").slice(0, -1);
|
@@ -178232,6 +178277,202 @@ var init_logout2 = __esm({
|
|
178232
178277
|
}
|
178233
178278
|
});
|
178234
178279
|
|
178280
|
+
// src/commands/microfrontends/pull.ts
|
178281
|
+
async function pull2(client2) {
|
178282
|
+
const link4 = await ensureLink("microfrontends", client2, client2.cwd);
|
178283
|
+
if (typeof link4 === "number") {
|
178284
|
+
return link4;
|
178285
|
+
}
|
178286
|
+
const { project, org, repoRoot } = link4;
|
178287
|
+
let currentDirectory;
|
178288
|
+
if (repoRoot) {
|
178289
|
+
currentDirectory = (0, import_node_path5.join)(repoRoot, project.rootDirectory || "");
|
178290
|
+
} else {
|
178291
|
+
currentDirectory = client2.cwd;
|
178292
|
+
}
|
178293
|
+
client2.config.currentTeam = org.type === "team" ? org.id : void 0;
|
178294
|
+
const { contextName } = await getScope(client2);
|
178295
|
+
output_manager_default.spinner(
|
178296
|
+
`Fetching microfrontends configuration in ${import_chalk107.default.bold(contextName)}`
|
178297
|
+
);
|
178298
|
+
let parsedArgs;
|
178299
|
+
const flagsSpecification = getFlagsSpecification(pullSubcommand2.options);
|
178300
|
+
try {
|
178301
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification, {
|
178302
|
+
permissive: true
|
178303
|
+
});
|
178304
|
+
} catch (error3) {
|
178305
|
+
printError(error3);
|
178306
|
+
return 1;
|
178307
|
+
}
|
178308
|
+
const dpl = parsedArgs.flags["--dpl"] ?? project.targets?.production?.id ?? project.latestDeployments?.[0]?.id;
|
178309
|
+
if (!dpl) {
|
178310
|
+
output_manager_default.stopSpinner();
|
178311
|
+
output_manager_default.error(`No deployment found for project ${import_chalk107.default.bold(project.name)}`);
|
178312
|
+
return 1;
|
178313
|
+
}
|
178314
|
+
const microfrontendsConfigUrl = `/v1/microfrontends/${dpl}/config`;
|
178315
|
+
try {
|
178316
|
+
const { config: config2 } = await client2.fetch(microfrontendsConfigUrl, {
|
178317
|
+
method: "GET"
|
178318
|
+
});
|
178319
|
+
const sanitizedConfig = {
|
178320
|
+
...config2,
|
178321
|
+
applications: Object.fromEntries(
|
178322
|
+
Object.entries(config2.applications).map(([name, app]) => [
|
178323
|
+
name,
|
178324
|
+
{
|
178325
|
+
...app,
|
178326
|
+
projectId: void 0
|
178327
|
+
// remove projectId
|
178328
|
+
}
|
178329
|
+
])
|
178330
|
+
)
|
178331
|
+
};
|
178332
|
+
output_manager_default.stopSpinner();
|
178333
|
+
const path11 = (0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS);
|
178334
|
+
await (0, import_fs_extra23.outputJSON)(path11, sanitizedConfig, {
|
178335
|
+
spaces: 2
|
178336
|
+
});
|
178337
|
+
const microfrontendsStamp = stamp_default();
|
178338
|
+
output_manager_default.print(
|
178339
|
+
`${prependEmoji(
|
178340
|
+
`Downloaded microfrontends configuration to ${import_chalk107.default.bold(
|
178341
|
+
humanizePath(
|
178342
|
+
(0, import_node_path5.join)(currentDirectory, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS)
|
178343
|
+
)
|
178344
|
+
)} ${import_chalk107.default.gray(microfrontendsStamp())}`,
|
178345
|
+
emoji("success")
|
178346
|
+
)}
|
178347
|
+
`
|
178348
|
+
);
|
178349
|
+
return 0;
|
178350
|
+
} catch (error3) {
|
178351
|
+
output_manager_default.stopSpinner();
|
178352
|
+
printError(error3);
|
178353
|
+
return 1;
|
178354
|
+
}
|
178355
|
+
}
|
178356
|
+
var import_chalk107, import_node_path5, import_fs_extra23, VERCEL_DIR3, VERCEL_DIR_MICROFRONTENDS;
|
178357
|
+
var init_pull5 = __esm({
|
178358
|
+
"src/commands/microfrontends/pull.ts"() {
|
178359
|
+
"use strict";
|
178360
|
+
import_chalk107 = __toESM3(require_source());
|
178361
|
+
import_node_path5 = require("path");
|
178362
|
+
init_output_manager();
|
178363
|
+
init_get_scope();
|
178364
|
+
init_ensure_link();
|
178365
|
+
init_emoji();
|
178366
|
+
init_humanize_path();
|
178367
|
+
init_stamp();
|
178368
|
+
import_fs_extra23 = __toESM3(require_lib());
|
178369
|
+
init_command21();
|
178370
|
+
init_get_flags_specification();
|
178371
|
+
init_get_args();
|
178372
|
+
init_error2();
|
178373
|
+
VERCEL_DIR3 = ".vercel";
|
178374
|
+
VERCEL_DIR_MICROFRONTENDS = "microfrontends.json";
|
178375
|
+
}
|
178376
|
+
});
|
178377
|
+
|
178378
|
+
// src/util/telemetry/commands/microfrontends/index.ts
|
178379
|
+
var MicrofrontendsTelemetryClient;
|
178380
|
+
var init_microfrontends = __esm({
|
178381
|
+
"src/util/telemetry/commands/microfrontends/index.ts"() {
|
178382
|
+
"use strict";
|
178383
|
+
init_telemetry();
|
178384
|
+
MicrofrontendsTelemetryClient = class extends TelemetryClient {
|
178385
|
+
trackCliSubcommandPull(actual) {
|
178386
|
+
this.trackCliSubcommand({
|
178387
|
+
subcommand: "pull",
|
178388
|
+
value: actual
|
178389
|
+
});
|
178390
|
+
}
|
178391
|
+
};
|
178392
|
+
}
|
178393
|
+
});
|
178394
|
+
|
178395
|
+
// src/commands/microfrontends/index.ts
|
178396
|
+
var microfrontends_exports = {};
|
178397
|
+
__export3(microfrontends_exports, {
|
178398
|
+
default: () => main12
|
178399
|
+
});
|
178400
|
+
async function main12(client2) {
|
178401
|
+
const telemetry2 = new MicrofrontendsTelemetryClient({
|
178402
|
+
opts: {
|
178403
|
+
store: client2.telemetryEventStore
|
178404
|
+
}
|
178405
|
+
});
|
178406
|
+
let parsedArgs;
|
178407
|
+
const flagsSpecification = getFlagsSpecification(
|
178408
|
+
microfrontendsCommand.options
|
178409
|
+
);
|
178410
|
+
try {
|
178411
|
+
parsedArgs = parseArguments(client2.argv.slice(2), flagsSpecification, {
|
178412
|
+
permissive: true
|
178413
|
+
});
|
178414
|
+
} catch (error3) {
|
178415
|
+
printError(error3);
|
178416
|
+
return 1;
|
178417
|
+
}
|
178418
|
+
let { subcommand, subcommandOriginal } = getSubcommand(
|
178419
|
+
parsedArgs.args.slice(1),
|
178420
|
+
COMMAND_CONFIG13
|
178421
|
+
);
|
178422
|
+
const needHelp = parsedArgs.flags["--help"];
|
178423
|
+
if (!subcommand && needHelp) {
|
178424
|
+
telemetry2.trackCliFlagHelp("microfrontends");
|
178425
|
+
output_manager_default.print(
|
178426
|
+
help2(microfrontendsCommand, { columns: client2.stderr.columns })
|
178427
|
+
);
|
178428
|
+
return 2;
|
178429
|
+
}
|
178430
|
+
function printHelp(command) {
|
178431
|
+
output_manager_default.print(
|
178432
|
+
help2(command, {
|
178433
|
+
parent: microfrontendsCommand,
|
178434
|
+
columns: client2.stderr.columns
|
178435
|
+
})
|
178436
|
+
);
|
178437
|
+
return 2;
|
178438
|
+
}
|
178439
|
+
switch (subcommand) {
|
178440
|
+
case "pull":
|
178441
|
+
if (needHelp) {
|
178442
|
+
telemetry2.trackCliFlagHelp("microfrontends", subcommandOriginal);
|
178443
|
+
return printHelp(pullSubcommand2);
|
178444
|
+
}
|
178445
|
+
telemetry2.trackCliSubcommandPull(subcommandOriginal);
|
178446
|
+
return pull2(client2);
|
178447
|
+
default:
|
178448
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG13));
|
178449
|
+
output_manager_default.print(
|
178450
|
+
help2(microfrontendsCommand, { columns: client2.stderr.columns })
|
178451
|
+
);
|
178452
|
+
return 2;
|
178453
|
+
}
|
178454
|
+
}
|
178455
|
+
var COMMAND_CONFIG13;
|
178456
|
+
var init_microfrontends2 = __esm({
|
178457
|
+
"src/commands/microfrontends/index.ts"() {
|
178458
|
+
"use strict";
|
178459
|
+
init_get_args();
|
178460
|
+
init_get_invalid_subcommand();
|
178461
|
+
init_error2();
|
178462
|
+
init_help();
|
178463
|
+
init_pull5();
|
178464
|
+
init_command21();
|
178465
|
+
init_get_flags_specification();
|
178466
|
+
init_output_manager();
|
178467
|
+
init_commands();
|
178468
|
+
init_get_subcommand();
|
178469
|
+
init_microfrontends();
|
178470
|
+
COMMAND_CONFIG13 = {
|
178471
|
+
pull: getCommandAliases(pullSubcommand2)
|
178472
|
+
};
|
178473
|
+
}
|
178474
|
+
});
|
178475
|
+
|
178235
178476
|
// src/util/telemetry/commands/project/add.ts
|
178236
178477
|
var ProjectAddTelemetryClient;
|
178237
178478
|
var init_add11 = __esm({
|
@@ -178269,12 +178510,12 @@ async function add6(client2, argv) {
|
|
178269
178510
|
const { args: args2 } = parsedArgs;
|
178270
178511
|
if (args2.length !== 1) {
|
178271
178512
|
output_manager_default.error(
|
178272
|
-
`Invalid number of arguments. Usage: ${
|
178513
|
+
`Invalid number of arguments. Usage: ${import_chalk108.default.cyan(
|
178273
178514
|
`${getCommandName("project add <name>")}`
|
178274
178515
|
)}`
|
178275
178516
|
);
|
178276
178517
|
if (args2.length > 1) {
|
178277
|
-
const example =
|
178518
|
+
const example = import_chalk108.default.cyan(
|
178278
178519
|
`${getCommandName(`project add "${args2.join(" ")}"`)}`
|
178279
178520
|
);
|
178280
178521
|
output_manager_default.log(
|
@@ -178302,24 +178543,24 @@ async function add6(client2, argv) {
|
|
178302
178543
|
const elapsed2 = (0, import_ms22.default)(Date.now() - start);
|
178303
178544
|
const { contextName } = await getScope(client2);
|
178304
178545
|
output_manager_default.log(
|
178305
|
-
`${
|
178546
|
+
`${import_chalk108.default.cyan("Success!")} Project ${import_chalk108.default.bold(
|
178306
178547
|
name.toLowerCase()
|
178307
|
-
)} added (${
|
178548
|
+
)} added (${import_chalk108.default.bold(contextName)}) ${import_chalk108.default.gray(`[${elapsed2}]`)}`
|
178308
178549
|
);
|
178309
178550
|
return 0;
|
178310
178551
|
}
|
178311
|
-
var
|
178552
|
+
var import_chalk108, import_ms22;
|
178312
178553
|
var init_add12 = __esm({
|
178313
178554
|
"src/commands/project/add.ts"() {
|
178314
178555
|
"use strict";
|
178315
|
-
|
178556
|
+
import_chalk108 = __toESM3(require_source());
|
178316
178557
|
import_ms22 = __toESM3(require_ms());
|
178317
178558
|
init_errors_ts();
|
178318
178559
|
init_pkg_name();
|
178319
178560
|
init_create_project();
|
178320
178561
|
init_output_manager();
|
178321
178562
|
init_add11();
|
178322
|
-
|
178563
|
+
init_command22();
|
178323
178564
|
init_get_args();
|
178324
178565
|
init_get_flags_specification();
|
178325
178566
|
init_error2();
|
@@ -178411,7 +178652,7 @@ async function inspect4(client2, argv) {
|
|
178411
178652
|
telemetry2.trackCliFlagYes(parsedArgs.flags["--yes"]);
|
178412
178653
|
if (args2.length !== 0 && args2.length !== 1) {
|
178413
178654
|
output_manager_default.error(
|
178414
|
-
`Invalid number of arguments. Usage: ${
|
178655
|
+
`Invalid number of arguments. Usage: ${import_chalk109.default.cyan(
|
178415
178656
|
`${getCommandName("project inspect <name>")}`
|
178416
178657
|
)}`
|
178417
178658
|
);
|
@@ -178426,57 +178667,57 @@ async function inspect4(client2, argv) {
|
|
178426
178667
|
});
|
178427
178668
|
const org = await getTeamById(client2, project.accountId);
|
178428
178669
|
const projectSlugLink = formatProject(org.slug, project.name);
|
178429
|
-
output_manager_default.log(`Found Project ${projectSlugLink} ${
|
178670
|
+
output_manager_default.log(`Found Project ${projectSlugLink} ${import_chalk109.default.gray(inspectStamp())}`);
|
178430
178671
|
output_manager_default.print("\n");
|
178431
|
-
output_manager_default.print(
|
178432
|
-
output_manager_default.print(` ${
|
178672
|
+
output_manager_default.print(import_chalk109.default.bold(" General\n\n"));
|
178673
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("ID")} ${project.id}
|
178433
178674
|
`);
|
178434
|
-
output_manager_default.print(` ${
|
178675
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Name")} ${project.name}
|
178435
178676
|
`);
|
178436
|
-
output_manager_default.print(` ${
|
178677
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Owner")} ${org.name}
|
178437
178678
|
`);
|
178438
178679
|
output_manager_default.print(
|
178439
|
-
` ${
|
178680
|
+
` ${import_chalk109.default.cyan("Created At")} ${formatDate(project.createdAt)}
|
178440
178681
|
`
|
178441
178682
|
);
|
178442
178683
|
output_manager_default.print(
|
178443
|
-
` ${
|
178684
|
+
` ${import_chalk109.default.cyan("Root Directory")} ${project.rootDirectory ?? "."}
|
178444
178685
|
`
|
178445
178686
|
);
|
178446
178687
|
output_manager_default.print(
|
178447
|
-
` ${
|
178688
|
+
` ${import_chalk109.default.cyan("Node.js Version")} ${project.nodeVersion}
|
178448
178689
|
`
|
178449
178690
|
);
|
178450
178691
|
const framework = import_frameworks7.frameworkList.find((f) => f.slug === project.framework);
|
178451
178692
|
output_manager_default.print("\n");
|
178452
|
-
output_manager_default.print(
|
178453
|
-
output_manager_default.print(` ${
|
178693
|
+
output_manager_default.print(import_chalk109.default.bold(" Framework Settings\n\n"));
|
178694
|
+
output_manager_default.print(` ${import_chalk109.default.cyan("Framework Preset")} ${framework?.name}
|
178454
178695
|
`);
|
178455
178696
|
output_manager_default.print(
|
178456
|
-
` ${
|
178697
|
+
` ${import_chalk109.default.cyan("Build Command")} ${project.buildCommand ?? import_chalk109.default.dim(framework?.settings?.buildCommand.placeholder ?? "None")}
|
178457
178698
|
`
|
178458
178699
|
);
|
178459
178700
|
output_manager_default.print(
|
178460
|
-
` ${
|
178701
|
+
` ${import_chalk109.default.cyan("Output Directory")} ${project.outputDirectory ?? import_chalk109.default.dim(framework?.settings?.outputDirectory.placeholder ?? "None")}
|
178461
178702
|
`
|
178462
178703
|
);
|
178463
178704
|
output_manager_default.print(
|
178464
|
-
` ${
|
178705
|
+
` ${import_chalk109.default.cyan("Install Command")} ${project.installCommand ?? import_chalk109.default.dim(framework?.settings?.installCommand.placeholder ?? "None")}
|
178465
178706
|
`
|
178466
178707
|
);
|
178467
178708
|
output_manager_default.print("\n");
|
178468
178709
|
return 0;
|
178469
178710
|
}
|
178470
|
-
var
|
178711
|
+
var import_chalk109, import_frameworks7;
|
178471
178712
|
var init_inspect6 = __esm({
|
178472
178713
|
"src/commands/project/inspect.ts"() {
|
178473
178714
|
"use strict";
|
178474
|
-
|
178715
|
+
import_chalk109 = __toESM3(require_source());
|
178475
178716
|
import_frameworks7 = __toESM3(require_frameworks());
|
178476
178717
|
init_pkg_name();
|
178477
178718
|
init_inspect5();
|
178478
178719
|
init_output_manager();
|
178479
|
-
|
178720
|
+
init_command22();
|
178480
178721
|
init_get_args();
|
178481
178722
|
init_get_flags_specification();
|
178482
178723
|
init_error2();
|
@@ -178530,7 +178771,7 @@ async function list6(client2, argv) {
|
|
178530
178771
|
const { args: args2, flags: opts } = parsedArgs;
|
178531
178772
|
if (args2.length !== 0) {
|
178532
178773
|
output_manager_default.error(
|
178533
|
-
`Invalid number of arguments. Usage: ${
|
178774
|
+
`Invalid number of arguments. Usage: ${import_chalk110.default.cyan(
|
178534
178775
|
`${getCommandName("project ls")}`
|
178535
178776
|
)}`
|
178536
178777
|
);
|
@@ -178538,7 +178779,7 @@ async function list6(client2, argv) {
|
|
178538
178779
|
}
|
178539
178780
|
const start = Date.now();
|
178540
178781
|
const { contextName } = await getScope(client2);
|
178541
|
-
output_manager_default.spinner(`Fetching projects in ${
|
178782
|
+
output_manager_default.spinner(`Fetching projects in ${import_chalk110.default.bold(contextName)}`);
|
178542
178783
|
let projectsUrl = "/v9/projects?limit=20";
|
178543
178784
|
const deprecated = opts["--update-required"] || false;
|
178544
178785
|
telemetryClient.trackCliFlagUpdateRequired(deprecated);
|
@@ -178559,7 +178800,7 @@ async function list6(client2, argv) {
|
|
178559
178800
|
output_manager_default.stopSpinner();
|
178560
178801
|
const elapsed2 = (0, import_ms23.default)(Date.now() - start);
|
178561
178802
|
output_manager_default.log(
|
178562
|
-
`${projectList.length > 0 ? "Projects" : "No projects"} found under ${
|
178803
|
+
`${projectList.length > 0 ? "Projects" : "No projects"} found under ${import_chalk110.default.bold(contextName)} ${deprecated ? "that are using a deprecated Node.js version" : "\b"} ${import_chalk110.default.gray(`[${elapsed2}]`)}`
|
178563
178804
|
);
|
178564
178805
|
if (projectList.length > 0) {
|
178565
178806
|
const tablePrint = table(
|
@@ -178569,12 +178810,12 @@ async function list6(client2, argv) {
|
|
178569
178810
|
"Latest Production URL",
|
178570
178811
|
"Updated",
|
178571
178812
|
"Node Version"
|
178572
|
-
].map((header) =>
|
178813
|
+
].map((header) => import_chalk110.default.bold(import_chalk110.default.cyan(header))),
|
178573
178814
|
...projectList.flatMap((project) => [
|
178574
178815
|
[
|
178575
|
-
|
178816
|
+
import_chalk110.default.bold(project.name),
|
178576
178817
|
getLatestProdUrl(project),
|
178577
|
-
|
178818
|
+
import_chalk110.default.gray((0, import_ms23.default)(Date.now() - project.updatedAt)),
|
178578
178819
|
project.nodeVersion ?? ""
|
178579
178820
|
]
|
178580
178821
|
])
|
@@ -178599,18 +178840,18 @@ function getLatestProdUrl(project) {
|
|
178599
178840
|
return `https://${alias2}`;
|
178600
178841
|
return "--";
|
178601
178842
|
}
|
178602
|
-
var import_ms23,
|
178843
|
+
var import_ms23, import_chalk110;
|
178603
178844
|
var init_list10 = __esm({
|
178604
178845
|
"src/commands/project/list.ts"() {
|
178605
178846
|
"use strict";
|
178606
178847
|
import_ms23 = __toESM3(require_ms());
|
178607
|
-
|
178848
|
+
import_chalk110 = __toESM3(require_source());
|
178608
178849
|
init_table();
|
178609
178850
|
init_get_command_flags();
|
178610
178851
|
init_pkg_name();
|
178611
178852
|
init_list9();
|
178612
178853
|
init_output_manager();
|
178613
|
-
|
178854
|
+
init_command22();
|
178614
178855
|
init_get_args();
|
178615
178856
|
init_get_flags_specification();
|
178616
178857
|
init_error2();
|
@@ -178655,7 +178896,7 @@ async function rm6(client2, argv) {
|
|
178655
178896
|
const { args: args2 } = parsedArgs;
|
178656
178897
|
if (args2.length !== 1) {
|
178657
178898
|
output_manager_default.error(
|
178658
|
-
`Invalid number of arguments. Usage: ${
|
178899
|
+
`Invalid number of arguments. Usage: ${import_chalk111.default.cyan(
|
178659
178900
|
`${getCommandName("project rm <name>")}`
|
178660
178901
|
)}`
|
178661
178902
|
);
|
@@ -178685,7 +178926,7 @@ async function rm6(client2, argv) {
|
|
178685
178926
|
}
|
178686
178927
|
const elapsed2 = (0, import_ms24.default)(Date.now() - start);
|
178687
178928
|
output_manager_default.log(
|
178688
|
-
`${
|
178929
|
+
`${import_chalk111.default.cyan("Success!")} Project ${import_chalk111.default.bold(name)} removed ${import_chalk111.default.gray(
|
178689
178930
|
`[${elapsed2}]`
|
178690
178931
|
)}`
|
178691
178932
|
);
|
@@ -178694,22 +178935,22 @@ async function rm6(client2, argv) {
|
|
178694
178935
|
async function readConfirmation3(client2, projectName) {
|
178695
178936
|
output_manager_default.print(
|
178696
178937
|
prependEmoji(
|
178697
|
-
`The project ${
|
178938
|
+
`The project ${import_chalk111.default.bold(projectName)} will be removed permanently.
|
178698
178939
|
It will also delete everything under the project including deployments.
|
178699
178940
|
`,
|
178700
178941
|
emoji("warning")
|
178701
178942
|
)
|
178702
178943
|
);
|
178703
178944
|
return await client2.input.confirm(
|
178704
|
-
`${
|
178945
|
+
`${import_chalk111.default.bold.red("Are you sure?")}`,
|
178705
178946
|
false
|
178706
178947
|
);
|
178707
178948
|
}
|
178708
|
-
var
|
178949
|
+
var import_chalk111, import_ms24, e;
|
178709
178950
|
var init_rm10 = __esm({
|
178710
178951
|
"src/commands/project/rm.ts"() {
|
178711
178952
|
"use strict";
|
178712
|
-
|
178953
|
+
import_chalk111 = __toESM3(require_source());
|
178713
178954
|
import_ms24 = __toESM3(require_ms());
|
178714
178955
|
init_emoji();
|
178715
178956
|
init_errors_ts();
|
@@ -178719,7 +178960,7 @@ var init_rm10 = __esm({
|
|
178719
178960
|
init_get_args();
|
178720
178961
|
init_get_flags_specification();
|
178721
178962
|
init_error2();
|
178722
|
-
|
178963
|
+
init_command22();
|
178723
178964
|
e = encodeURIComponent;
|
178724
178965
|
}
|
178725
178966
|
});
|
@@ -178762,9 +179003,9 @@ var init_project = __esm({
|
|
178762
179003
|
// src/commands/project/index.ts
|
178763
179004
|
var project_exports = {};
|
178764
179005
|
__export3(project_exports, {
|
178765
|
-
default: () =>
|
179006
|
+
default: () => main13
|
178766
179007
|
});
|
178767
|
-
async function
|
179008
|
+
async function main13(client2) {
|
178768
179009
|
const telemetry2 = new ProjectTelemetryClient({
|
178769
179010
|
opts: {
|
178770
179011
|
store: client2.telemetryEventStore
|
@@ -178782,7 +179023,7 @@ async function main12(client2) {
|
|
178782
179023
|
}
|
178783
179024
|
let { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
178784
179025
|
parsedArgs.args.slice(1),
|
178785
|
-
|
179026
|
+
COMMAND_CONFIG14
|
178786
179027
|
);
|
178787
179028
|
const needHelp = parsedArgs.flags["--help"];
|
178788
179029
|
if (!subcommand && needHelp) {
|
@@ -178829,12 +179070,12 @@ async function main12(client2) {
|
|
178829
179070
|
telemetry2.trackCliSubcommandRemove(subcommandOriginal);
|
178830
179071
|
return rm6(client2, args2);
|
178831
179072
|
default:
|
178832
|
-
output_manager_default.error(getInvalidSubcommand(
|
179073
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG14));
|
178833
179074
|
output_manager_default.print(help2(projectCommand, { columns: client2.stderr.columns }));
|
178834
179075
|
return 2;
|
178835
179076
|
}
|
178836
179077
|
}
|
178837
|
-
var
|
179078
|
+
var COMMAND_CONFIG14;
|
178838
179079
|
var init_project2 = __esm({
|
178839
179080
|
"src/commands/project/index.ts"() {
|
178840
179081
|
"use strict";
|
@@ -178846,13 +179087,13 @@ var init_project2 = __esm({
|
|
178846
179087
|
init_inspect6();
|
178847
179088
|
init_list10();
|
178848
179089
|
init_rm10();
|
178849
|
-
|
179090
|
+
init_command22();
|
178850
179091
|
init_get_flags_specification();
|
178851
179092
|
init_project();
|
178852
179093
|
init_output_manager();
|
178853
179094
|
init_commands();
|
178854
179095
|
init_get_subcommand();
|
178855
|
-
|
179096
|
+
COMMAND_CONFIG14 = {
|
178856
179097
|
inspect: getCommandAliases(inspectSubcommand2),
|
178857
179098
|
list: getCommandAliases(listSubcommand7),
|
178858
179099
|
add: getCommandAliases(addSubcommand6),
|
@@ -178877,7 +179118,7 @@ async function getProjectByDeployment({
|
|
178877
179118
|
let team;
|
178878
179119
|
try {
|
178879
179120
|
output_manager_default?.spinner(
|
178880
|
-
`Fetching deployment "${deployId}" in ${
|
179121
|
+
`Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
|
178881
179122
|
);
|
178882
179123
|
const [teamResult, deploymentResult] = await Promise.allSettled([
|
178883
179124
|
config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
|
@@ -178894,12 +179135,12 @@ async function getProjectByDeployment({
|
|
178894
179135
|
team = teamResult.value;
|
178895
179136
|
deployment = deploymentResult.value;
|
178896
179137
|
output_manager_default?.log(
|
178897
|
-
`Fetching deployment "${deployId}" in ${
|
179138
|
+
`Fetching deployment "${deployId}" in ${import_chalk112.default.bold(contextName)}\u2026`
|
178898
179139
|
);
|
178899
179140
|
if (deployment.team?.id) {
|
178900
179141
|
if (!team || deployment.team.id !== team.id) {
|
178901
179142
|
const err = new Error(
|
178902
|
-
team ? `Deployment doesn't belong to current team ${
|
179143
|
+
team ? `Deployment doesn't belong to current team ${import_chalk112.default.bold(
|
178903
179144
|
contextName
|
178904
179145
|
)}` : `Deployment belongs to a different team`
|
178905
179146
|
);
|
@@ -178908,7 +179149,7 @@ async function getProjectByDeployment({
|
|
178908
179149
|
}
|
178909
179150
|
} else if (team) {
|
178910
179151
|
const err = new Error(
|
178911
|
-
`Deployment doesn't belong to current team ${
|
179152
|
+
`Deployment doesn't belong to current team ${import_chalk112.default.bold(contextName)}`
|
178912
179153
|
);
|
178913
179154
|
err.code = "ERR_INVALID_TEAM";
|
178914
179155
|
throw err;
|
@@ -178929,11 +179170,11 @@ async function getProjectByDeployment({
|
|
178929
179170
|
output_manager_default?.stopSpinner();
|
178930
179171
|
}
|
178931
179172
|
}
|
178932
|
-
var
|
179173
|
+
var import_chalk112;
|
178933
179174
|
var init_get_project_by_deployment = __esm({
|
178934
179175
|
"src/util/projects/get-project-by-deployment.ts"() {
|
178935
179176
|
"use strict";
|
178936
|
-
|
179177
|
+
import_chalk112 = __toESM3(require_source());
|
178937
179178
|
init_get_deployment();
|
178938
179179
|
init_get_project_by_id_or_name();
|
178939
179180
|
init_get_scope();
|
@@ -178947,21 +179188,21 @@ var init_get_project_by_deployment = __esm({
|
|
178947
179188
|
// src/util/alias/render-alias-status.ts
|
178948
179189
|
function renderAliasStatus(status2) {
|
178949
179190
|
if (status2 === "completed") {
|
178950
|
-
return
|
179191
|
+
return import_chalk113.default.green(status2);
|
178951
179192
|
}
|
178952
179193
|
if (status2 === "failed") {
|
178953
|
-
return
|
179194
|
+
return import_chalk113.default.red(status2);
|
178954
179195
|
}
|
178955
179196
|
if (status2 === "skipped") {
|
178956
|
-
return
|
179197
|
+
return import_chalk113.default.gray(status2);
|
178957
179198
|
}
|
178958
|
-
return
|
179199
|
+
return import_chalk113.default.yellow(status2);
|
178959
179200
|
}
|
178960
|
-
var
|
179201
|
+
var import_chalk113;
|
178961
179202
|
var init_render_alias_status = __esm({
|
178962
179203
|
"src/util/alias/render-alias-status.ts"() {
|
178963
179204
|
"use strict";
|
178964
|
-
|
179205
|
+
import_chalk113 = __toESM3(require_source());
|
178965
179206
|
}
|
178966
179207
|
});
|
178967
179208
|
|
@@ -179068,7 +179309,7 @@ async function promoteStatus({
|
|
179068
179309
|
}
|
179069
179310
|
if (requestedAt < recentThreshold || Date.now() >= promoteTimeout) {
|
179070
179311
|
output_manager_default.log(
|
179071
|
-
`The promotion exceeded its deadline - rerun ${
|
179312
|
+
`The promotion exceeded its deadline - rerun ${import_chalk114.default.bold(
|
179072
179313
|
`${packageName} promote ${toDeploymentId}`
|
179073
179314
|
)} to try again`
|
179074
179315
|
);
|
@@ -179132,26 +179373,26 @@ async function renderJobSucceeded({
|
|
179132
179373
|
let deploymentInfo = "";
|
179133
179374
|
try {
|
179134
179375
|
const deployment = await getDeployment(client2, contextName, toDeploymentId);
|
179135
|
-
deploymentInfo = `${
|
179376
|
+
deploymentInfo = `${import_chalk114.default.bold(deployment.url)} (${toDeploymentId})`;
|
179136
179377
|
} catch (err) {
|
179137
179378
|
output_manager_default.debug(
|
179138
179379
|
`Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
|
179139
179380
|
);
|
179140
|
-
deploymentInfo =
|
179381
|
+
deploymentInfo = import_chalk114.default.bold(toDeploymentId);
|
179141
179382
|
}
|
179142
179383
|
const duration = performingPromote ? elapsed(Date.now() - requestedAt) : "";
|
179143
179384
|
output_manager_default.log(
|
179144
|
-
`Success! ${
|
179385
|
+
`Success! ${import_chalk114.default.bold(
|
179145
179386
|
project.name
|
179146
179387
|
)} was promoted to ${deploymentInfo} ${duration}`
|
179147
179388
|
);
|
179148
179389
|
return 0;
|
179149
179390
|
}
|
179150
|
-
var
|
179391
|
+
var import_chalk114, import_ms25;
|
179151
179392
|
var init_status = __esm({
|
179152
179393
|
"src/commands/promote/status.ts"() {
|
179153
179394
|
"use strict";
|
179154
|
-
|
179395
|
+
import_chalk114 = __toESM3(require_source());
|
179155
179396
|
init_elapsed();
|
179156
179397
|
init_format_date();
|
179157
179398
|
init_get_deployment();
|
@@ -179208,7 +179449,7 @@ async function requestPromote({
|
|
179208
179449
|
}
|
179209
179450
|
);
|
179210
179451
|
output_manager_default.log(
|
179211
|
-
`Successfully created new deployment of ${
|
179452
|
+
`Successfully created new deployment of ${import_chalk115.default.bold(project.name)} at ${newDeployment.inspectorUrl}`
|
179212
179453
|
);
|
179213
179454
|
return 0;
|
179214
179455
|
}
|
@@ -179229,7 +179470,7 @@ async function requestPromote({
|
|
179229
179470
|
}
|
179230
179471
|
if (timeout !== void 0 && (0, import_ms26.default)(timeout) === 0) {
|
179231
179472
|
output_manager_default.log(
|
179232
|
-
`Successfully requested promote of ${
|
179473
|
+
`Successfully requested promote of ${import_chalk115.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
179233
179474
|
);
|
179234
179475
|
output_manager_default.log(`To check promote status, run ${getCommandName("promote")}.`);
|
179235
179476
|
return 0;
|
@@ -179242,11 +179483,11 @@ async function requestPromote({
|
|
179242
179483
|
timeout
|
179243
179484
|
});
|
179244
179485
|
}
|
179245
|
-
var
|
179486
|
+
var import_chalk115, import_ms26;
|
179246
179487
|
var init_request_promote = __esm({
|
179247
179488
|
"src/commands/promote/request-promote.ts"() {
|
179248
179489
|
"use strict";
|
179249
|
-
|
179490
|
+
import_chalk115 = __toESM3(require_source());
|
179250
179491
|
init_pkg_name();
|
179251
179492
|
init_get_project_by_deployment();
|
179252
179493
|
import_ms26 = __toESM3(require_ms());
|
@@ -179309,7 +179550,7 @@ var init_promote2 = __esm({
|
|
179309
179550
|
import_error_utils33 = __toESM3(require_dist2());
|
179310
179551
|
init_request_promote();
|
179311
179552
|
init_status();
|
179312
|
-
|
179553
|
+
init_command23();
|
179313
179554
|
init_help();
|
179314
179555
|
init_get_flags_specification();
|
179315
179556
|
init_promote();
|
@@ -179407,7 +179648,7 @@ async function getDeploymentByIdOrURL({
|
|
179407
179648
|
let team;
|
179408
179649
|
try {
|
179409
179650
|
output_manager_default.spinner(
|
179410
|
-
`Fetching deployment "${deployIdOrUrl}" in ${
|
179651
|
+
`Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
|
179411
179652
|
);
|
179412
179653
|
const [teamResult, deploymentResult] = await Promise.allSettled([
|
179413
179654
|
config2.currentTeam ? getTeamById(client2, config2.currentTeam) : void 0,
|
@@ -179424,7 +179665,7 @@ async function getDeploymentByIdOrURL({
|
|
179424
179665
|
team = teamResult.value;
|
179425
179666
|
deployment = deploymentResult.value;
|
179426
179667
|
output_manager_default.log(
|
179427
|
-
`Fetching deployment "${deployIdOrUrl}" in ${
|
179668
|
+
`Fetching deployment "${deployIdOrUrl}" in ${import_chalk116.default.bold(contextName)}\u2026`
|
179428
179669
|
);
|
179429
179670
|
} finally {
|
179430
179671
|
output_manager_default.stopSpinner();
|
@@ -179432,7 +179673,7 @@ async function getDeploymentByIdOrURL({
|
|
179432
179673
|
if (deployment.team?.id) {
|
179433
179674
|
if (!team || deployment.team.id !== team.id) {
|
179434
179675
|
const err = new Error(
|
179435
|
-
team ? `Deployment doesn't belong to current team ${
|
179676
|
+
team ? `Deployment doesn't belong to current team ${import_chalk116.default.bold(
|
179436
179677
|
contextName
|
179437
179678
|
)}` : `Deployment belongs to a different team`
|
179438
179679
|
);
|
@@ -179441,18 +179682,18 @@ async function getDeploymentByIdOrURL({
|
|
179441
179682
|
}
|
179442
179683
|
} else if (team) {
|
179443
179684
|
const err = new Error(
|
179444
|
-
`Deployment doesn't belong to current team ${
|
179685
|
+
`Deployment doesn't belong to current team ${import_chalk116.default.bold(contextName)}`
|
179445
179686
|
);
|
179446
179687
|
err.code = "ERR_INVALID_TEAM";
|
179447
179688
|
throw err;
|
179448
179689
|
}
|
179449
179690
|
return deployment;
|
179450
179691
|
}
|
179451
|
-
var
|
179692
|
+
var import_chalk116;
|
179452
179693
|
var init_get_deployment_by_id_or_url = __esm({
|
179453
179694
|
"src/util/deploy/get-deployment-by-id-or-url.ts"() {
|
179454
179695
|
"use strict";
|
179455
|
-
|
179696
|
+
import_chalk116 = __toESM3(require_source());
|
179456
179697
|
init_get_deployment();
|
179457
179698
|
init_get_team_by_id();
|
179458
179699
|
init_is_valid_name();
|
@@ -179591,14 +179832,14 @@ async function redeploy(client2) {
|
|
179591
179832
|
}
|
179592
179833
|
output_manager_default.print(
|
179593
179834
|
`${prependEmoji(
|
179594
|
-
`Inspect: ${
|
179835
|
+
`Inspect: ${import_chalk117.default.bold(deployment.inspectorUrl)} ${deployStamp()}`,
|
179595
179836
|
emoji("inspect")
|
179596
179837
|
)}
|
179597
179838
|
`
|
179598
179839
|
);
|
179599
179840
|
output_manager_default.print(
|
179600
179841
|
prependEmoji(
|
179601
|
-
`${isProdDeployment ? "Production" : "Preview"}: ${
|
179842
|
+
`${isProdDeployment ? "Production" : "Preview"}: ${import_chalk117.default.bold(
|
179602
179843
|
previewUrl
|
179603
179844
|
)} ${deployStamp()}`,
|
179604
179845
|
emoji("success")
|
@@ -179668,17 +179909,17 @@ async function redeploy(client2) {
|
|
179668
179909
|
output_manager_default.prettyError(err);
|
179669
179910
|
if ((0, import_error_utils34.isErrnoException)(err) && err.code === "ERR_INVALID_TEAM") {
|
179670
179911
|
output_manager_default.error(
|
179671
|
-
`Use ${
|
179912
|
+
`Use ${import_chalk117.default.bold("vc switch")} to change your current team`
|
179672
179913
|
);
|
179673
179914
|
}
|
179674
179915
|
return 1;
|
179675
179916
|
}
|
179676
179917
|
}
|
179677
|
-
var
|
179918
|
+
var import_chalk117, import_client13, import_error_utils34;
|
179678
179919
|
var init_redeploy2 = __esm({
|
179679
179920
|
"src/commands/redeploy/index.ts"() {
|
179680
179921
|
"use strict";
|
179681
|
-
|
179922
|
+
import_chalk117 = __toESM3(require_source());
|
179682
179923
|
import_client13 = __toESM3(require_dist7());
|
179683
179924
|
init_emoji();
|
179684
179925
|
init_get_args();
|
@@ -179692,7 +179933,7 @@ var init_redeploy2 = __esm({
|
|
179692
179933
|
init_stamp();
|
179693
179934
|
init_ua();
|
179694
179935
|
init_help();
|
179695
|
-
|
179936
|
+
init_command25();
|
179696
179937
|
init_get_flags_specification();
|
179697
179938
|
init_output_manager();
|
179698
179939
|
init_redeploy();
|
@@ -179885,7 +180126,7 @@ async function remove5(client2) {
|
|
179885
180126
|
}
|
179886
180127
|
const { contextName } = await getScope(client2);
|
179887
180128
|
output_manager_default.spinner(
|
179888
|
-
`Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${
|
180129
|
+
`Fetching deployment(s) ${ids.map((id) => `"${id}"`).join(" ")} in ${import_chalk118.default.bold(contextName)}`
|
179889
180130
|
);
|
179890
180131
|
let aliases;
|
179891
180132
|
let projects;
|
@@ -179951,7 +180192,7 @@ async function remove5(client2) {
|
|
179951
180192
|
});
|
179952
180193
|
if (deployments.length === 0 && projects.length === 0) {
|
179953
180194
|
const safeUnaliased = parsedArgs.flags["--safe"] ? "unaliased" : "any";
|
179954
|
-
const stylizedIds = ids.map((id) =>
|
180195
|
+
const stylizedIds = ids.map((id) => import_chalk118.default.bold(`"${id}"`)).join(", ");
|
179955
180196
|
const commandName = getCommandName("projects ls");
|
179956
180197
|
log2(
|
179957
180198
|
`Could not find ${safeUnaliased} deployments or projects matching ${stylizedIds}. Run ${commandName} to list.`
|
@@ -179959,7 +180200,7 @@ async function remove5(client2) {
|
|
179959
180200
|
return 1;
|
179960
180201
|
}
|
179961
180202
|
log2(
|
179962
|
-
`Found ${deploymentsAndProjects(deployments, projects)} for removal in ${
|
180203
|
+
`Found ${deploymentsAndProjects(deployments, projects)} for removal in ${import_chalk118.default.bold(contextName)} ${elapsed(Date.now() - findStart)}`
|
179963
180204
|
);
|
179964
180205
|
if (deployments.length > 200) {
|
179965
180206
|
output_manager_default.warn(
|
@@ -179986,11 +180227,11 @@ async function remove5(client2) {
|
|
179986
180227
|
`Removed ${deploymentsAndProjects(deployments, projects)} ${elapsed(Date.now() - start)}`
|
179987
180228
|
);
|
179988
180229
|
deployments.forEach((depl) => {
|
179989
|
-
output_manager_default.print(`${
|
180230
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(depl.url)}
|
179990
180231
|
`);
|
179991
180232
|
});
|
179992
180233
|
projects.forEach((project) => {
|
179993
|
-
output_manager_default.print(`${
|
180234
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
|
179994
180235
|
`);
|
179995
180236
|
});
|
179996
180237
|
return 0;
|
@@ -180007,8 +180248,8 @@ function readConfirmation4(deployments, projects) {
|
|
180007
180248
|
);
|
180008
180249
|
const deploymentTable = table(
|
180009
180250
|
deployments.map((depl) => {
|
180010
|
-
const time =
|
180011
|
-
const url3 = depl.url ?
|
180251
|
+
const time = import_chalk118.default.gray(`${(0, import_ms28.default)(Date.now() - depl.createdAt)} ago`);
|
180252
|
+
const url3 = depl.url ? import_chalk118.default.underline(`https://${depl.url}`) : "";
|
180012
180253
|
return [` ${depl.id}`, url3, time];
|
180013
180254
|
}),
|
180014
180255
|
{ align: ["l", "r", "l"], hsep: 6 }
|
@@ -180019,7 +180260,7 @@ function readConfirmation4(deployments, projects) {
|
|
180019
180260
|
for (const depl of deployments) {
|
180020
180261
|
for (const { alias: alias2 } of depl.aliases) {
|
180021
180262
|
output_manager_default.warn(
|
180022
|
-
`${
|
180263
|
+
`${import_chalk118.default.underline(`https://${alias2}`)} is an alias for ${import_chalk118.default.bold(depl.url)} and will be removed`
|
180023
180264
|
);
|
180024
180265
|
}
|
180025
180266
|
}
|
@@ -180033,12 +180274,12 @@ function readConfirmation4(deployments, projects) {
|
|
180033
180274
|
`
|
180034
180275
|
);
|
180035
180276
|
for (const project of projects) {
|
180036
|
-
output_manager_default.print(`${
|
180277
|
+
output_manager_default.print(`${import_chalk118.default.gray("-")} ${import_chalk118.default.bold(project.name)}
|
180037
180278
|
`);
|
180038
180279
|
}
|
180039
180280
|
}
|
180040
180281
|
output_manager_default.print(
|
180041
|
-
`${
|
180282
|
+
`${import_chalk118.default.bold.red("> Are you sure?")} ${import_chalk118.default.gray("(y/N) ")}`
|
180042
180283
|
);
|
180043
180284
|
process.stdin.on("data", (d) => {
|
180044
180285
|
process.stdin.pause();
|
@@ -180055,11 +180296,11 @@ function deploymentsAndProjects(deployments, projects, conjunction = "and") {
|
|
180055
180296
|
}
|
180056
180297
|
return `${(0, import_pluralize11.default)("deployment", deployments.length, true)} ${conjunction} ${(0, import_pluralize11.default)("project", projects.length, true)}`;
|
180057
180298
|
}
|
180058
|
-
var
|
180299
|
+
var import_chalk118, import_ms28, import_pluralize11;
|
180059
180300
|
var init_remove6 = __esm({
|
180060
180301
|
"src/commands/remove/index.ts"() {
|
180061
180302
|
"use strict";
|
180062
|
-
|
180303
|
+
import_chalk118 = __toESM3(require_source());
|
180063
180304
|
import_ms28 = __toESM3(require_ms());
|
180064
180305
|
import_pluralize11 = __toESM3(require_pluralize());
|
180065
180306
|
init_table();
|
@@ -180078,7 +180319,7 @@ var init_remove6 = __esm({
|
|
180078
180319
|
init_error2();
|
180079
180320
|
init_now_error();
|
180080
180321
|
init_help();
|
180081
|
-
|
180322
|
+
init_command26();
|
180082
180323
|
init_get_flags_specification();
|
180083
180324
|
init_remove5();
|
180084
180325
|
init_output_manager();
|
@@ -180155,7 +180396,7 @@ async function rollbackStatus({
|
|
180155
180396
|
}
|
180156
180397
|
if (requestedAt < recentThreshold || Date.now() >= rollbackTimeout) {
|
180157
180398
|
output_manager_default.log(
|
180158
|
-
`The rollback exceeded its deadline - rerun ${
|
180399
|
+
`The rollback exceeded its deadline - rerun ${import_chalk119.default.bold(
|
180159
180400
|
`${packageName} rollback ${toDeploymentId}`
|
180160
180401
|
)} to try again`
|
180161
180402
|
);
|
@@ -180219,26 +180460,26 @@ async function renderJobSucceeded2({
|
|
180219
180460
|
let deploymentInfo = "";
|
180220
180461
|
try {
|
180221
180462
|
const deployment = await getDeployment(client2, contextName, toDeploymentId);
|
180222
|
-
deploymentInfo = `${
|
180463
|
+
deploymentInfo = `${import_chalk119.default.bold(deployment.url)} (${toDeploymentId})`;
|
180223
180464
|
} catch (err) {
|
180224
180465
|
output_manager_default.debug(
|
180225
180466
|
`Failed to get deployment url for ${toDeploymentId}: ${err?.toString() || err}`
|
180226
180467
|
);
|
180227
|
-
deploymentInfo =
|
180468
|
+
deploymentInfo = import_chalk119.default.bold(toDeploymentId);
|
180228
180469
|
}
|
180229
180470
|
const duration = performingRollback ? elapsed(Date.now() - requestedAt) : "";
|
180230
180471
|
output_manager_default.log(
|
180231
|
-
`Success! ${
|
180472
|
+
`Success! ${import_chalk119.default.bold(
|
180232
180473
|
project.name
|
180233
180474
|
)} was rolled back to ${deploymentInfo} ${duration}`
|
180234
180475
|
);
|
180235
180476
|
return 0;
|
180236
180477
|
}
|
180237
|
-
var
|
180478
|
+
var import_chalk119, import_ms29;
|
180238
180479
|
var init_status2 = __esm({
|
180239
180480
|
"src/commands/rollback/status.ts"() {
|
180240
180481
|
"use strict";
|
180241
|
-
|
180482
|
+
import_chalk119 = __toESM3(require_source());
|
180242
180483
|
init_elapsed();
|
180243
180484
|
init_format_date();
|
180244
180485
|
init_get_deployment();
|
@@ -180270,7 +180511,7 @@ async function requestRollback({
|
|
180270
180511
|
});
|
180271
180512
|
if (timeout !== void 0 && (0, import_ms30.default)(timeout) === 0) {
|
180272
180513
|
output_manager_default.log(
|
180273
|
-
`Successfully requested rollback of ${
|
180514
|
+
`Successfully requested rollback of ${import_chalk120.default.bold(project.name)} to ${deployment.url} (${deployment.id})`
|
180274
180515
|
);
|
180275
180516
|
output_manager_default.log(`To check rollback status, run ${getCommandName("rollback")}.`);
|
180276
180517
|
return 0;
|
@@ -180283,11 +180524,11 @@ async function requestRollback({
|
|
180283
180524
|
timeout
|
180284
180525
|
});
|
180285
180526
|
}
|
180286
|
-
var
|
180527
|
+
var import_chalk120, import_ms30;
|
180287
180528
|
var init_request_rollback = __esm({
|
180288
180529
|
"src/commands/rollback/request-rollback.ts"() {
|
180289
180530
|
"use strict";
|
180290
|
-
|
180531
|
+
import_chalk120 = __toESM3(require_source());
|
180291
180532
|
init_pkg_name();
|
180292
180533
|
init_get_project_by_deployment();
|
180293
180534
|
import_ms30 = __toESM3(require_ms());
|
@@ -180351,7 +180592,7 @@ var init_rollback2 = __esm({
|
|
180351
180592
|
init_request_rollback();
|
180352
180593
|
init_status2();
|
180353
180594
|
init_help();
|
180354
|
-
|
180595
|
+
init_command27();
|
180355
180596
|
init_get_flags_specification();
|
180356
180597
|
init_rollback();
|
180357
180598
|
init_output_manager();
|
@@ -180718,7 +180959,7 @@ async function rollingRelease(client2) {
|
|
180718
180959
|
subcommand,
|
180719
180960
|
args: subcommandArgs,
|
180720
180961
|
subcommandOriginal
|
180721
|
-
} = getSubcommand(client2.argv.slice(3),
|
180962
|
+
} = getSubcommand(client2.argv.slice(3), COMMAND_CONFIG15);
|
180722
180963
|
const needHelp = client2.argv.includes("--help") || client2.argv.includes("-h");
|
180723
180964
|
if (!subcommand && needHelp) {
|
180724
180965
|
telemetry2.trackCliFlagHelp("rolling-release");
|
@@ -180907,7 +181148,7 @@ async function rollingRelease(client2) {
|
|
180907
181148
|
}
|
180908
181149
|
default: {
|
180909
181150
|
output_manager_default.debug(`Invalid subcommand: ${subcommand}`);
|
180910
|
-
output_manager_default.error(getInvalidSubcommand(
|
181151
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG15));
|
180911
181152
|
output_manager_default.print(
|
180912
181153
|
help2(rollingReleaseCommand, { columns: client2.stderr.columns })
|
180913
181154
|
);
|
@@ -180920,14 +181161,14 @@ async function rollingRelease(client2) {
|
|
180920
181161
|
return 1;
|
180921
181162
|
}
|
180922
181163
|
}
|
180923
|
-
var
|
181164
|
+
var COMMAND_CONFIG15;
|
180924
181165
|
var init_rolling_release2 = __esm({
|
180925
181166
|
"src/commands/rolling-release/index.ts"() {
|
180926
181167
|
"use strict";
|
180927
181168
|
init_get_args();
|
180928
181169
|
init_get_flags_specification();
|
180929
181170
|
init_help();
|
180930
|
-
|
181171
|
+
init_command28();
|
180931
181172
|
init_request_rolling_release();
|
180932
181173
|
init_start_rolling_release();
|
180933
181174
|
init_configure_rolling_release();
|
@@ -180941,7 +181182,7 @@ var init_rolling_release2 = __esm({
|
|
180941
181182
|
init_get_subcommand();
|
180942
181183
|
init_commands();
|
180943
181184
|
init_get_invalid_subcommand();
|
180944
|
-
|
181185
|
+
COMMAND_CONFIG15 = {
|
180945
181186
|
configure: getCommandAliases(configureSubcommand),
|
180946
181187
|
start: getCommandAliases(startSubcommand),
|
180947
181188
|
approve: getCommandAliases(approveSubcommand),
|
@@ -180957,17 +181198,17 @@ function formatBranchMatcher(branchMatcher) {
|
|
180957
181198
|
if (branchMatcher?.type === "equals") {
|
180958
181199
|
return branchMatcher.pattern;
|
180959
181200
|
} else if (branchMatcher?.type === "startsWith") {
|
180960
|
-
return `${branchMatcher.pattern}${
|
181201
|
+
return `${branchMatcher.pattern}${import_chalk121.default.dim("*")}`;
|
180961
181202
|
} else if (branchMatcher?.type === "endsWith") {
|
180962
|
-
return `${
|
181203
|
+
return `${import_chalk121.default.dim("*")}${branchMatcher.pattern}`;
|
180963
181204
|
}
|
180964
|
-
return
|
181205
|
+
return import_chalk121.default.dim("No branch configuration");
|
180965
181206
|
}
|
180966
181207
|
async function list7(client2, argv) {
|
180967
181208
|
const { cwd } = client2;
|
180968
181209
|
if (argv.length !== 0) {
|
180969
181210
|
output_manager_default.error(
|
180970
|
-
`Invalid number of arguments. Usage: ${
|
181211
|
+
`Invalid number of arguments. Usage: ${import_chalk121.default.cyan(
|
180971
181212
|
`${getCommandName("target ls")}`
|
180972
181213
|
)}`
|
180973
181214
|
);
|
@@ -180991,12 +181232,12 @@ async function list7(client2, argv) {
|
|
180991
181232
|
const elapsed2 = (0, import_ms32.default)(Date.now() - start);
|
180992
181233
|
result = withDefaultEnvironmentsIncluded(result);
|
180993
181234
|
output_manager_default.log(
|
180994
|
-
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${
|
181235
|
+
`${result.length} Environment${result.length === 1 ? "" : "s"} found under ${projectSlugLink} ${import_chalk121.default.gray(`[${elapsed2}]`)}`
|
180995
181236
|
);
|
180996
181237
|
const tablePrint = table(
|
180997
181238
|
[
|
180998
181239
|
["Target Name", "Branch Tracking", "Type", "Updated"].map(
|
180999
|
-
(header) =>
|
181240
|
+
(header) => import_chalk121.default.bold(import_chalk121.default.cyan(header))
|
181000
181241
|
),
|
181001
181242
|
...result.flatMap((target) => {
|
181002
181243
|
return [
|
@@ -181004,7 +181245,7 @@ async function list7(client2, argv) {
|
|
181004
181245
|
formatEnvironment(link4.org.slug, link4.project.name, target),
|
181005
181246
|
BRANCH_TRACKING_MAP[target.type](link4.project, target),
|
181006
181247
|
TYPE_MAP[target.type],
|
181007
|
-
|
181248
|
+
import_chalk121.default.gray(
|
181008
181249
|
target.updatedAt > 0 ? (0, import_ms32.default)(Date.now() - target.updatedAt) : "-"
|
181009
181250
|
)
|
181010
181251
|
]
|
@@ -181051,15 +181292,15 @@ function withDefaultEnvironmentsIncluded(environments) {
|
|
181051
181292
|
...environments.slice().sort((a, b) => a.slug.localeCompare(b.slug))
|
181052
181293
|
];
|
181053
181294
|
}
|
181054
|
-
var import_ms32,
|
181295
|
+
var import_ms32, import_chalk121, TYPE_MAP, BRANCH_TRACKING_MAP;
|
181055
181296
|
var init_list11 = __esm({
|
181056
181297
|
"src/commands/target/list.ts"() {
|
181057
181298
|
"use strict";
|
181058
181299
|
import_ms32 = __toESM3(require_ms());
|
181059
|
-
|
181300
|
+
import_chalk121 = __toESM3(require_source());
|
181060
181301
|
init_table();
|
181061
181302
|
init_output_manager();
|
181062
|
-
|
181303
|
+
init_command29();
|
181063
181304
|
init_pkg_name();
|
181064
181305
|
init_ensure_link();
|
181065
181306
|
init_format_project();
|
@@ -181071,8 +181312,8 @@ var init_list11 = __esm({
|
|
181071
181312
|
};
|
181072
181313
|
BRANCH_TRACKING_MAP = {
|
181073
181314
|
production: (project) => project.link?.productionBranch ?? "main",
|
181074
|
-
preview: (_, env) => env.slug === "preview" ?
|
181075
|
-
development: () =>
|
181315
|
+
preview: (_, env) => env.slug === "preview" ? import_chalk121.default.dim("All unassigned git branches") : formatBranchMatcher(env.branchMatcher),
|
181316
|
+
development: () => import_chalk121.default.dim("Accessible via CLI")
|
181076
181317
|
};
|
181077
181318
|
}
|
181078
181319
|
});
|
@@ -181097,9 +181338,9 @@ var init_target = __esm({
|
|
181097
181338
|
// src/commands/target/index.ts
|
181098
181339
|
var target_exports = {};
|
181099
181340
|
__export3(target_exports, {
|
181100
|
-
default: () =>
|
181341
|
+
default: () => main14
|
181101
181342
|
});
|
181102
|
-
async function
|
181343
|
+
async function main14(client2) {
|
181103
181344
|
let parsedArgs;
|
181104
181345
|
const flagsSpecification = getFlagsSpecification(targetCommand.options);
|
181105
181346
|
try {
|
@@ -181139,12 +181380,12 @@ async function main13(client2) {
|
|
181139
181380
|
telemetry2.trackCliSubcommandList(subcommand);
|
181140
181381
|
return await list7(client2, args2);
|
181141
181382
|
default:
|
181142
|
-
output_manager_default.error(getInvalidSubcommand(
|
181383
|
+
output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG16));
|
181143
181384
|
output_manager_default.print(help2(targetCommand, { columns: client2.stderr.columns }));
|
181144
181385
|
return 2;
|
181145
181386
|
}
|
181146
181387
|
}
|
181147
|
-
var
|
181388
|
+
var COMMAND_CONFIG16;
|
181148
181389
|
var init_target2 = __esm({
|
181149
181390
|
"src/commands/target/index.ts"() {
|
181150
181391
|
"use strict";
|
@@ -181152,13 +181393,13 @@ var init_target2 = __esm({
|
|
181152
181393
|
init_get_invalid_subcommand();
|
181153
181394
|
init_help();
|
181154
181395
|
init_list11();
|
181155
|
-
|
181396
|
+
init_command29();
|
181156
181397
|
init_get_flags_specification();
|
181157
181398
|
init_error2();
|
181158
181399
|
init_output_manager();
|
181159
181400
|
init_target();
|
181160
181401
|
init_commands();
|
181161
|
-
|
181402
|
+
COMMAND_CONFIG16 = {
|
181162
181403
|
ls: getCommandAliases(listSubcommand8)
|
181163
181404
|
};
|
181164
181405
|
}
|
@@ -181267,7 +181508,7 @@ async function list8(client2, argv) {
|
|
181267
181508
|
client2.stdout.write("\n");
|
181268
181509
|
const teamTable = table(
|
181269
181510
|
[
|
181270
|
-
["id", "email / name"].map((str) => (0,
|
181511
|
+
["id", "email / name"].map((str) => (0, import_chalk122.gray)(str)),
|
181271
181512
|
...teamList.map((team) => [team.value, team.name])
|
181272
181513
|
],
|
181273
181514
|
{ hsep: 5 }
|
@@ -181284,13 +181525,13 @@ async function list8(client2, argv) {
|
|
181284
181525
|
}
|
181285
181526
|
return 0;
|
181286
181527
|
}
|
181287
|
-
var
|
181528
|
+
var import_chalk122;
|
181288
181529
|
var init_list13 = __esm({
|
181289
181530
|
"src/commands/teams/list.ts"() {
|
181290
181531
|
"use strict";
|
181291
181532
|
init_chars();
|
181292
181533
|
init_table();
|
181293
|
-
|
181534
|
+
import_chalk122 = __toESM3(require_source());
|
181294
181535
|
init_get_user();
|
181295
181536
|
init_get_teams();
|
181296
181537
|
init_pkg_name();
|
@@ -181299,7 +181540,7 @@ var init_list13 = __esm({
|
|
181299
181540
|
init_get_args();
|
181300
181541
|
init_error2();
|
181301
181542
|
init_get_flags_specification();
|
181302
|
-
|
181543
|
+
init_command30();
|
181303
181544
|
init_output_manager();
|
181304
181545
|
init_list12();
|
181305
181546
|
}
|
@@ -181385,7 +181626,7 @@ Please select a team scope using ${getCommandName(
|
|
181385
181626
|
return 1;
|
181386
181627
|
}
|
181387
181628
|
output_manager_default.log(
|
181388
|
-
introMsg || `Inviting team members to ${
|
181629
|
+
introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
|
181389
181630
|
);
|
181390
181631
|
telemetry2.trackCliArgumentEmail(emails);
|
181391
181632
|
if (emails.length > 0) {
|
@@ -181405,10 +181646,10 @@ Please select a team scope using ${getCommandName(
|
|
181405
181646
|
throw err;
|
181406
181647
|
}
|
181407
181648
|
output_manager_default.log(
|
181408
|
-
`${
|
181649
|
+
`${import_chalk123.default.cyan(chars_default.tick)} ${email3}${userInfo ? ` (${userInfo})` : ""} ${elapsed2()}`
|
181409
181650
|
);
|
181410
181651
|
} else {
|
181411
|
-
output_manager_default.log(`${
|
181652
|
+
output_manager_default.log(`${import_chalk123.default.red(`\u2716 ${email3}`)} ${import_chalk123.default.gray("[invalid]")}`);
|
181412
181653
|
}
|
181413
181654
|
}
|
181414
181655
|
return 0;
|
@@ -181441,15 +181682,15 @@ Please select a team scope using ${getCommandName(
|
|
181441
181682
|
);
|
181442
181683
|
email2 = `${email2}${username ? ` (${username})` : ""} ${elapsed2()}`;
|
181443
181684
|
emails.push(email2);
|
181444
|
-
output_manager_default.log(`${
|
181685
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email2}`);
|
181445
181686
|
if (hasError) {
|
181446
181687
|
hasError = false;
|
181447
181688
|
process.stderr.write(eraseLines(emails.length + 2));
|
181448
181689
|
output_manager_default.log(
|
181449
|
-
introMsg || `Inviting team members to ${
|
181690
|
+
introMsg || `Inviting team members to ${import_chalk123.default.bold(currentTeam.name)}`
|
181450
181691
|
);
|
181451
181692
|
for (const email3 of emails) {
|
181452
|
-
output_manager_default.log(`${
|
181693
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
181453
181694
|
}
|
181454
181695
|
}
|
181455
181696
|
} catch (err) {
|
@@ -181458,7 +181699,7 @@ Please select a team scope using ${getCommandName(
|
|
181458
181699
|
output_manager_default.error((0, import_error_utils36.errorToString)(err));
|
181459
181700
|
hasError = true;
|
181460
181701
|
for (const email3 of emails) {
|
181461
|
-
output_manager_default.log(`${
|
181702
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${sentEmailPrefix}${email3}`);
|
181462
181703
|
}
|
181463
181704
|
}
|
181464
181705
|
}
|
@@ -181471,16 +181712,16 @@ Please select a team scope using ${getCommandName(
|
|
181471
181712
|
} else {
|
181472
181713
|
output_manager_default.success(`Invited ${n} teammate${n > 1 ? "s" : ""}`);
|
181473
181714
|
for (const email3 of emails) {
|
181474
|
-
output_manager_default.log(`${
|
181715
|
+
output_manager_default.log(`${import_chalk123.default.cyan(chars_default.tick)} ${inviteUserPrefix}${email3}`);
|
181475
181716
|
}
|
181476
181717
|
}
|
181477
181718
|
return 0;
|
181478
181719
|
}
|
181479
|
-
var
|
181720
|
+
var import_chalk123, import_error_utils36, validateEmail2, domains;
|
181480
181721
|
var init_invite2 = __esm({
|
181481
181722
|
"src/commands/teams/invite.ts"() {
|
181482
181723
|
"use strict";
|
181483
|
-
|
181724
|
+
import_chalk123 = __toESM3(require_source());
|
181484
181725
|
init_cmd();
|
181485
181726
|
init_stamp();
|
181486
181727
|
init_param();
|
@@ -181498,7 +181739,7 @@ var init_invite2 = __esm({
|
|
181498
181739
|
init_get_args();
|
181499
181740
|
init_get_flags_specification();
|
181500
181741
|
init_error2();
|
181501
|
-
|
181742
|
+
init_command30();
|
181502
181743
|
validateEmail2 = (data) => email.test(data.trim()) || data.length === 0;
|
181503
181744
|
domains = Array.from(
|
181504
181745
|
/* @__PURE__ */ new Set([
|
@@ -181556,7 +181797,7 @@ async function add7(client2) {
|
|
181556
181797
|
let team;
|
181557
181798
|
let elapsed2;
|
181558
181799
|
output_manager_default.log(
|
181559
|
-
`Pick a team identifier for its URL (e.g.: ${
|
181800
|
+
`Pick a team identifier for its URL (e.g.: ${import_chalk124.default.cyan(
|
181560
181801
|
"`vercel.com/acme`"
|
181561
181802
|
)})`
|
181562
181803
|
);
|
@@ -181587,7 +181828,7 @@ async function add7(client2) {
|
|
181587
181828
|
output_manager_default.stopSpinner();
|
181588
181829
|
process.stdout.write(eraseLines(2));
|
181589
181830
|
output_manager_default.success(`Team created ${elapsed2()}`);
|
181590
|
-
output_manager_default.log(`${
|
181831
|
+
output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamUrlPrefix + slug}
|
181591
181832
|
`);
|
181592
181833
|
output_manager_default.log("Pick a display name for your team");
|
181593
181834
|
let name;
|
@@ -181610,7 +181851,7 @@ async function add7(client2) {
|
|
181610
181851
|
process.stdout.write(eraseLines(2));
|
181611
181852
|
team = Object.assign(team, res);
|
181612
181853
|
output_manager_default.success(`Team name saved ${elapsed2()}`);
|
181613
|
-
output_manager_default.log(`${
|
181854
|
+
output_manager_default.log(`${import_chalk124.default.cyan(`${chars_default.tick} `) + teamNamePrefix + team.name}
|
181614
181855
|
`);
|
181615
181856
|
output_manager_default.spinner("Saving");
|
181616
181857
|
client2.config.currentTeam = team.id;
|
@@ -181624,11 +181865,11 @@ async function add7(client2) {
|
|
181624
181865
|
});
|
181625
181866
|
return 0;
|
181626
181867
|
}
|
181627
|
-
var
|
181868
|
+
var import_chalk124, import_error_utils37, validateSlug, validateName, teamUrlPrefix, teamNamePrefix;
|
181628
181869
|
var init_add13 = __esm({
|
181629
181870
|
"src/commands/teams/add.ts"() {
|
181630
181871
|
"use strict";
|
181631
|
-
|
181872
|
+
import_chalk124 = __toESM3(require_source());
|
181632
181873
|
init_stamp();
|
181633
181874
|
init_erase_lines();
|
181634
181875
|
init_chars();
|
@@ -181641,7 +181882,7 @@ var init_add13 = __esm({
|
|
181641
181882
|
init_output_manager();
|
181642
181883
|
validateSlug = (value) => /^[a-z]+[a-z0-9_-]*$/.test(value);
|
181643
181884
|
validateName = (value) => /^[ a-zA-Z0-9_-]+$/.test(value);
|
181644
|
-
teamUrlPrefix = "Team URL".padEnd(14) +
|
181885
|
+
teamUrlPrefix = "Team URL".padEnd(14) + import_chalk124.default.gray("vercel.com/");
|
181645
181886
|
teamNamePrefix = "Team Name".padEnd(14);
|
181646
181887
|
}
|
181647
181888
|
});
|
@@ -181700,7 +181941,7 @@ async function change(client2, argv) {
|
|
181700
181941
|
let title9 = `${team.name} (${team.slug})`;
|
181701
181942
|
const selected = team.id === currentTeam?.id;
|
181702
181943
|
if (selected) {
|
181703
|
-
title9 += ` ${
|
181944
|
+
title9 += ` ${import_chalk125.default.bold("(current)")}`;
|
181704
181945
|
}
|
181705
181946
|
if (team.limited) {
|
181706
181947
|
title9 += ` ${emoji("locked")}`;
|
@@ -181712,7 +181953,7 @@ async function change(client2, argv) {
|
|
181712
181953
|
selected
|
181713
181954
|
};
|
181714
181955
|
});
|
181715
|
-
let suffix = personalScopeSelected ? ` ${
|
181956
|
+
let suffix = personalScopeSelected ? ` ${import_chalk125.default.bold("(current)")}` : "";
|
181716
181957
|
if (user.limited) {
|
181717
181958
|
suffix += ` ${emoji("locked")}`;
|
181718
181959
|
}
|
@@ -181758,14 +181999,14 @@ async function change(client2, argv) {
|
|
181758
181999
|
}
|
181759
182000
|
updateCurrentTeam(config2);
|
181760
182001
|
output_manager_default.success(
|
181761
|
-
`Your account (${
|
182002
|
+
`Your account (${import_chalk125.default.bold(user.username)}) is now active!`
|
181762
182003
|
);
|
181763
182004
|
return 0;
|
181764
182005
|
}
|
181765
182006
|
const newTeam = teams2.find((team) => team.slug === desiredSlug);
|
181766
182007
|
if (!newTeam) {
|
181767
182008
|
output_manager_default.error(
|
181768
|
-
`You do not have permission to access scope ${
|
182009
|
+
`You do not have permission to access scope ${import_chalk125.default.bold(desiredSlug)}.`
|
181769
182010
|
);
|
181770
182011
|
return 1;
|
181771
182012
|
}
|
@@ -181783,15 +182024,15 @@ async function change(client2, argv) {
|
|
181783
182024
|
}
|
181784
182025
|
updateCurrentTeam(config2, newTeam);
|
181785
182026
|
output_manager_default.success(
|
181786
|
-
`The team ${
|
182027
|
+
`The team ${import_chalk125.default.bold(newTeam.name)} (${newTeam.slug}) is now active!`
|
181787
182028
|
);
|
181788
182029
|
return 0;
|
181789
182030
|
}
|
181790
|
-
var
|
182031
|
+
var import_chalk125, updateCurrentTeam;
|
181791
182032
|
var init_switch2 = __esm({
|
181792
182033
|
"src/commands/teams/switch.ts"() {
|
181793
182034
|
"use strict";
|
181794
|
-
|
182035
|
+
import_chalk125 = __toESM3(require_source());
|
181795
182036
|
init_emoji();
|
181796
182037
|
init_get_user();
|
181797
182038
|
init_get_teams();
|
@@ -181799,7 +182040,7 @@ var init_switch2 = __esm({
|
|
181799
182040
|
init_files();
|
181800
182041
|
init_output_manager();
|
181801
182042
|
init_switch();
|
181802
|
-
|
182043
|
+
init_command30();
|
181803
182044
|
init_get_args();
|
181804
182045
|
init_get_flags_specification();
|
181805
182046
|
init_error2();
|
@@ -181883,7 +182124,7 @@ async function teams(client2) {
|
|
181883
182124
|
}
|
181884
182125
|
const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
181885
182126
|
parsedArgs.args.slice(1),
|
181886
|
-
|
182127
|
+
COMMAND_CONFIG17
|
181887
182128
|
);
|
181888
182129
|
const needHelp = parsedArgs.flags["--help"];
|
181889
182130
|
if (!subcommand && needHelp) {
|
@@ -181942,7 +182183,7 @@ async function teams(client2) {
|
|
181942
182183
|
}
|
181943
182184
|
}
|
181944
182185
|
}
|
181945
|
-
var
|
182186
|
+
var COMMAND_CONFIG17;
|
181946
182187
|
var init_teams2 = __esm({
|
181947
182188
|
"src/commands/teams/index.ts"() {
|
181948
182189
|
"use strict";
|
@@ -181951,14 +182192,14 @@ var init_teams2 = __esm({
|
|
181951
182192
|
init_switch2();
|
181952
182193
|
init_invite2();
|
181953
182194
|
init_get_args();
|
181954
|
-
|
182195
|
+
init_command30();
|
181955
182196
|
init_help();
|
181956
182197
|
init_get_flags_specification();
|
181957
182198
|
init_error2();
|
181958
182199
|
init_teams();
|
181959
182200
|
init_output_manager();
|
181960
182201
|
init_get_subcommand();
|
181961
|
-
|
182202
|
+
COMMAND_CONFIG17 = {
|
181962
182203
|
list: ["ls", "list"],
|
181963
182204
|
switch: ["switch", "change"],
|
181964
182205
|
add: ["create", "add"],
|
@@ -181970,13 +182211,13 @@ var init_teams2 = __esm({
|
|
181970
182211
|
// src/commands/telemetry/status.ts
|
181971
182212
|
async function status(client2) {
|
181972
182213
|
const enabled = client2.config.telemetry?.enabled !== false;
|
181973
|
-
const status2 = enabled ?
|
182214
|
+
const status2 = enabled ? import_chalk126.default.green("Enabled") : import_chalk126.default.red("Disabled");
|
181974
182215
|
output_manager_default.print("\n");
|
181975
|
-
output_manager_default.log(`${
|
182216
|
+
output_manager_default.log(`${import_chalk126.default.bold("Telemetry status")}: ${status2}
|
181976
182217
|
`);
|
181977
182218
|
const learnMoreMessage = `
|
181978
182219
|
|
181979
|
-
Learn more: ${
|
182220
|
+
Learn more: ${import_chalk126.default.cyan("https://vercel.com/docs/cli/about-telemetry")}`;
|
181980
182221
|
if (enabled) {
|
181981
182222
|
output_manager_default.log(`You have opted in to Vercel CLI telemetry${learnMoreMessage}`);
|
181982
182223
|
} else {
|
@@ -181987,11 +182228,11 @@ Learn more: ${import_chalk125.default.cyan("https://vercel.com/docs/cli/about-te
|
|
181987
182228
|
}
|
181988
182229
|
return 0;
|
181989
182230
|
}
|
181990
|
-
var
|
182231
|
+
var import_chalk126;
|
181991
182232
|
var init_status3 = __esm({
|
181992
182233
|
"src/commands/telemetry/status.ts"() {
|
181993
182234
|
"use strict";
|
181994
|
-
|
182235
|
+
import_chalk126 = __toESM3(require_source());
|
181995
182236
|
init_output_manager();
|
181996
182237
|
}
|
181997
182238
|
});
|
@@ -182127,7 +182368,7 @@ async function telemetry(client2) {
|
|
182127
182368
|
}
|
182128
182369
|
const { subcommand, args: args2, subcommandOriginal } = getSubcommand(
|
182129
182370
|
parsedArguments.args.slice(1),
|
182130
|
-
|
182371
|
+
COMMAND_CONFIG18
|
182131
182372
|
);
|
182132
182373
|
const needHelp = parsedArguments.flags["--help"];
|
182133
182374
|
function printHelp(command) {
|
@@ -182172,7 +182413,7 @@ async function telemetry(client2) {
|
|
182172
182413
|
default: {
|
182173
182414
|
const errorMessage = parsedArguments.args.length !== 2 ? "Invalid number of arguments" : "Invalid subcommand";
|
182174
182415
|
output_manager_default.print(
|
182175
|
-
`${
|
182416
|
+
`${import_chalk127.default.red("Error")}: ${errorMessage}. See help instructions for usage:
|
182176
182417
|
`
|
182177
182418
|
);
|
182178
182419
|
output_manager_default.print(help2(telemetryCommand, { columns: client2.stderr.columns }));
|
@@ -182180,7 +182421,7 @@ async function telemetry(client2) {
|
|
182180
182421
|
}
|
182181
182422
|
}
|
182182
182423
|
}
|
182183
|
-
var
|
182424
|
+
var import_chalk127, COMMAND_CONFIG18;
|
182184
182425
|
var init_telemetry3 = __esm({
|
182185
182426
|
"src/commands/telemetry/index.ts"() {
|
182186
182427
|
"use strict";
|
@@ -182192,13 +182433,13 @@ var init_telemetry3 = __esm({
|
|
182192
182433
|
init_enable();
|
182193
182434
|
init_disable();
|
182194
182435
|
init_flush();
|
182195
|
-
|
182436
|
+
init_command31();
|
182196
182437
|
init_get_flags_specification();
|
182197
182438
|
init_telemetry2();
|
182198
|
-
|
182439
|
+
import_chalk127 = __toESM3(require_source());
|
182199
182440
|
init_output_manager();
|
182200
182441
|
init_commands();
|
182201
|
-
|
182442
|
+
COMMAND_CONFIG18 = {
|
182202
182443
|
status: getCommandAliases(statusSubcommand3),
|
182203
182444
|
enable: getCommandAliases(enableSubcommand),
|
182204
182445
|
disable: getCommandAliases(disableSubcommand),
|
@@ -182255,7 +182496,7 @@ var init_whoami2 = __esm({
|
|
182255
182496
|
"src/commands/whoami/index.ts"() {
|
182256
182497
|
"use strict";
|
182257
182498
|
init_help();
|
182258
|
-
|
182499
|
+
init_command32();
|
182259
182500
|
init_get_scope();
|
182260
182501
|
init_get_args();
|
182261
182502
|
init_get_flags_specification();
|
@@ -182269,8 +182510,8 @@ var init_whoami2 = __esm({
|
|
182269
182510
|
var import_error_utils38 = __toESM3(require_dist2());
|
182270
182511
|
var import_path40 = require("path");
|
182271
182512
|
var import_fs8 = require("fs");
|
182272
|
-
var
|
182273
|
-
var
|
182513
|
+
var import_fs_extra24 = __toESM3(require_lib());
|
182514
|
+
var import_chalk128 = __toESM3(require_source());
|
182274
182515
|
var import_epipebomb = __toESM3(require_epipebomb());
|
182275
182516
|
|
182276
182517
|
// src/util/get-latest-version/index.ts
|
@@ -182804,6 +183045,12 @@ var RootTelemetryClient = class extends TelemetryClient {
|
|
182804
183045
|
value: actual
|
182805
183046
|
});
|
182806
183047
|
}
|
183048
|
+
trackCliCommandMicrofrontends(actual) {
|
183049
|
+
this.trackCliCommand({
|
183050
|
+
command: "microfrontends",
|
183051
|
+
value: actual
|
183052
|
+
});
|
183053
|
+
}
|
182807
183054
|
trackCliCommandProject(actual) {
|
182808
183055
|
this.trackCliCommand({
|
182809
183056
|
command: "project",
|
@@ -182992,6 +183239,7 @@ var help = () => `
|
|
182992
183239
|
dns [name] Manages your DNS records
|
182993
183240
|
domains [name] Manages your domain names
|
182994
183241
|
logs [url] Displays the logs for a deployment
|
183242
|
+
microfrontends Manages your microfrontends
|
182995
183243
|
projects Manages your Projects
|
182996
183244
|
rm | remove [id] Removes a deployment
|
182997
183245
|
teams Manages your teams
|
@@ -183091,7 +183339,7 @@ try {
|
|
183091
183339
|
originalError(msg);
|
183092
183340
|
};
|
183093
183341
|
}
|
183094
|
-
var
|
183342
|
+
var VERCEL_DIR4 = global_path_default();
|
183095
183343
|
var VERCEL_CONFIG_PATH = getConfigFilePath();
|
183096
183344
|
var VERCEL_AUTH_CONFIG_PATH = getAuthConfigFilePath();
|
183097
183345
|
var GLOBAL_COMMANDS = /* @__PURE__ */ new Set(["help"]);
|
@@ -183104,7 +183352,7 @@ Sentry.init({
|
|
183104
183352
|
var client;
|
183105
183353
|
var { isTTY: isTTY2 } = process.stdout;
|
183106
183354
|
var apiUrl = "https://api.vercel.com";
|
183107
|
-
var
|
183355
|
+
var main15 = async () => {
|
183108
183356
|
if (process.env.FORCE_TTY === "1") {
|
183109
183357
|
isTTY2 = true;
|
183110
183358
|
process.stdout.isTTY = true;
|
@@ -183155,13 +183403,13 @@ var main14 = async () => {
|
|
183155
183403
|
const betaCommands = [];
|
183156
183404
|
if (betaCommands.includes(targetOrSubcommand)) {
|
183157
183405
|
output_manager_default.print(
|
183158
|
-
`${
|
183406
|
+
`${import_chalk128.default.grey(
|
183159
183407
|
`${getTitleName()} CLI ${pkg_default.version} ${targetOrSubcommand} (beta) \u2014 https://vercel.com/feedback`
|
183160
183408
|
)}
|
183161
183409
|
`
|
183162
183410
|
);
|
183163
183411
|
} else {
|
183164
|
-
output_manager_default.print(`${
|
183412
|
+
output_manager_default.print(`${import_chalk128.default.grey(`${getTitleName()} CLI ${pkg_default.version}`)}
|
183165
183413
|
`);
|
183166
183414
|
}
|
183167
183415
|
if (!targetOrSubcommand && parsedArgs.flags["--version"]) {
|
@@ -183175,11 +183423,11 @@ var main14 = async () => {
|
|
183175
183423
|
return 2;
|
183176
183424
|
}
|
183177
183425
|
try {
|
183178
|
-
await (0,
|
183426
|
+
await (0, import_fs_extra24.mkdirp)(VERCEL_DIR4);
|
183179
183427
|
} catch (err) {
|
183180
183428
|
output_manager_default.error(
|
183181
183429
|
`An unexpected error occurred while trying to create the global directory "${humanizePath(
|
183182
|
-
|
183430
|
+
VERCEL_DIR4
|
183183
183431
|
)}" ${(0, import_error_utils38.errorToString)(err)}`
|
183184
183432
|
);
|
183185
183433
|
return 1;
|
@@ -183343,7 +183591,7 @@ var main14 = async () => {
|
|
183343
183591
|
printError(error3);
|
183344
183592
|
return 1;
|
183345
183593
|
}
|
183346
|
-
output_manager_default.debug(`Saved credentials in "${humanizePath(
|
183594
|
+
output_manager_default.debug(`Saved credentials in "${humanizePath(VERCEL_DIR4)}"`);
|
183347
183595
|
} else {
|
183348
183596
|
output_manager_default.prettyError({
|
183349
183597
|
message: `No existing credentials found. Please run ${getCommandName("login")} or pass ${param("--token")}`,
|
@@ -183559,6 +183807,10 @@ var main14 = async () => {
|
|
183559
183807
|
telemetry2.trackCliCommandLogout(userSuppliedSubCommand);
|
183560
183808
|
func = (init_logout2(), __toCommonJS3(logout_exports)).default;
|
183561
183809
|
break;
|
183810
|
+
case "microfrontends":
|
183811
|
+
telemetry2.trackCliCommandMicrofrontends(userSuppliedSubCommand);
|
183812
|
+
func = (init_microfrontends2(), __toCommonJS3(microfrontends_exports)).default;
|
183813
|
+
break;
|
183562
183814
|
case "project":
|
183563
183815
|
telemetry2.trackCliCommandProject(userSuppliedSubCommand);
|
183564
183816
|
func = (init_project2(), __toCommonJS3(project_exports)).default;
|
@@ -183698,27 +183950,27 @@ ${err.stack}`);
|
|
183698
183950
|
};
|
183699
183951
|
process.on("unhandledRejection", handleRejection);
|
183700
183952
|
process.on("uncaughtException", handleUnexpected);
|
183701
|
-
|
183953
|
+
main15().then(async (exitCode2) => {
|
183702
183954
|
if (isTTY2 && !process.env.NO_UPDATE_NOTIFIER) {
|
183703
183955
|
const latest = getLatestVersion({
|
183704
183956
|
pkg: pkg_default
|
183705
183957
|
});
|
183706
183958
|
if (latest) {
|
183707
183959
|
const changelog = "https://github.com/vercel/vercel/releases";
|
183708
|
-
const errorMsg = exitCode2 && exitCode2 !== 2 ?
|
183960
|
+
const errorMsg = exitCode2 && exitCode2 !== 2 ? import_chalk128.default.magenta(
|
183709
183961
|
`
|
183710
183962
|
|
183711
|
-
The latest update ${
|
183963
|
+
The latest update ${import_chalk128.default.italic(
|
183712
183964
|
"may"
|
183713
183965
|
)} fix any errors that occurred.`
|
183714
183966
|
) : "";
|
183715
183967
|
output_manager_default.print(
|
183716
183968
|
box(
|
183717
|
-
`Update available! ${
|
183969
|
+
`Update available! ${import_chalk128.default.gray(`v${pkg_default.version}`)} \u226B ${import_chalk128.default.green(
|
183718
183970
|
`v${latest}`
|
183719
183971
|
)}
|
183720
183972
|
Changelog: ${output_manager_default.link(changelog, changelog, { fallback: false })}
|
183721
|
-
Run ${
|
183973
|
+
Run ${import_chalk128.default.cyan(cmd(await getUpdateCommand()))} to update.${errorMsg}`
|
183722
183974
|
)
|
183723
183975
|
);
|
183724
183976
|
output_manager_default.print("\n\n");
|