vercel 52.2.0 → 52.2.1

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.
Files changed (51) hide show
  1. package/dist/chunks/{add-TH62Y34V.js → add-6TZOFI3R.js} +4 -4
  2. package/dist/chunks/{chunk-ODASAX4M.js → chunk-2OWOUKOK.js} +1 -1
  3. package/dist/chunks/{chunk-OHOYN7R2.js → chunk-3QA5ZIDF.js} +1 -1
  4. package/dist/chunks/{chunk-QTX36APP.js → chunk-5R6AOACI.js} +2 -2
  5. package/dist/chunks/{chunk-I5OH27IT.js → chunk-5WC7QCYE.js} +1 -1
  6. package/dist/chunks/{chunk-WCMV6TSF.js → chunk-64DDAGJR.js} +1 -1
  7. package/dist/chunks/{chunk-7L7NSLYK.js → chunk-6TMKD3SZ.js} +2 -2
  8. package/dist/chunks/{chunk-OVFHCZBS.js → chunk-7FQKQPBD.js} +4 -4
  9. package/dist/chunks/{chunk-BUPMO37Q.js → chunk-DQWTHIXD.js} +2 -2
  10. package/dist/chunks/{chunk-H2O3DQDC.js → chunk-EKSIQ3UW.js} +2 -2
  11. package/dist/chunks/{chunk-EVDPX5BO.js → chunk-G5EHVWFI.js} +1 -1
  12. package/dist/chunks/{chunk-FUUQ2WSC.js → chunk-J7KBPHDC.js} +4 -4
  13. package/dist/chunks/{chunk-O7R67TAG.js → chunk-KHSD7WPG.js} +3 -1
  14. package/dist/chunks/{chunk-ZI2C6YH2.js → chunk-NAUUP4G6.js} +2 -2
  15. package/dist/chunks/{chunk-LSPPTDRH.js → chunk-QWJ7O2C7.js} +1 -1
  16. package/dist/chunks/{chunk-5EZVRZOJ.js → chunk-RC7YZO6Q.js} +37 -68
  17. package/dist/chunks/{chunk-NJYOE4D7.js → chunk-RCK5HPNI.js} +1 -1
  18. package/dist/chunks/{chunk-FUYNVB23.js → chunk-SCAOSA7F.js} +1 -1
  19. package/dist/chunks/{chunk-ZJKFUXSF.js → chunk-U3F7M3YG.js} +1 -1
  20. package/dist/chunks/{chunk-FPTKAORS.js → chunk-VROU4JKW.js} +2 -2
  21. package/dist/chunks/{chunk-ZZDXEXJ5.js → chunk-Z4FJ42GO.js} +5 -5
  22. package/dist/chunks/{compile-vercel-config-H5YVD5ZD.js → compile-vercel-config-THZQEC4T.js} +1 -1
  23. package/dist/chunks/{delete-WW5B2IIN.js → delete-S4BNBMHT.js} +2 -2
  24. package/dist/chunks/{disable-WSV2JYK6.js → disable-UP64WKDO.js} +2 -2
  25. package/dist/chunks/{discard-BTIMKAXZ.js → discard-6B5FPH6F.js} +2 -2
  26. package/dist/chunks/{edit-LOQJITTM.js → edit-NAVDTRJX.js} +3 -3
  27. package/dist/chunks/{enable-XMWWLBL7.js → enable-X5XOP7MC.js} +2 -2
  28. package/dist/chunks/{export-P2OSIM3L.js → export-EVJLYZFA.js} +2 -2
  29. package/dist/chunks/{inspect-5NKOJ64V.js → inspect-ZSFXZM57.js} +3 -3
  30. package/dist/chunks/{list-ZSRD6M3H.js → list-CSE74VTU.js} +2 -2
  31. package/dist/chunks/{list-OLUANKMJ.js → list-II2MKBZK.js} +3 -3
  32. package/dist/chunks/{ls-3YMXPZ7A.js → ls-WPJAKB5Y.js} +4 -4
  33. package/dist/chunks/{publish-T2HPYN5D.js → publish-YMSSQNFI.js} +2 -2
  34. package/dist/chunks/{query-ZKNQWF5L.js → query-RXC5UHQX.js} +2 -2
  35. package/dist/chunks/{reorder-WQA5LQ7X.js → reorder-ZKTJ4D6E.js} +2 -2
  36. package/dist/chunks/{restore-QTREUYWW.js → restore-KM6OQHZY.js} +2 -2
  37. package/dist/chunks/{rm-4JKXZFP3.js → rm-SJ26XXVR.js} +4 -4
  38. package/dist/chunks/{rule-inspect-3PUS2RKH.js → rule-inspect-KYT5ICO4.js} +4 -4
  39. package/dist/chunks/{rules-GBXWDR3P.js → rules-VT5K2MFX.js} +6 -6
  40. package/dist/chunks/{schema-TXE5TXMY.js → schema-CQHTQCYK.js} +2 -2
  41. package/dist/chunks/{update-57KTLPIK.js → update-JDLTS73Z.js} +4 -4
  42. package/dist/commands/build/index.js +9 -9
  43. package/dist/commands/deploy/index.js +10 -10
  44. package/dist/commands/dev/index.js +8 -8
  45. package/dist/commands/env/index.js +5 -5
  46. package/dist/commands/link/index.js +6 -6
  47. package/dist/commands/list/index.js +3 -3
  48. package/dist/commands-bulk.js +71 -46
  49. package/dist/index.js +32 -13
  50. package/dist/version.mjs +1 -1
  51. package/package.json +12 -13
@@ -28,7 +28,7 @@ import {
28
28
  runInteractiveEditLoop,
29
29
  stripQuotes,
30
30
  validateActionFlags
31
- } from "./chunks/chunk-ODASAX4M.js";
31
+ } from "./chunks/chunk-2OWOUKOK.js";
32
32
  import {
33
33
  getRouteVersions
34
34
  } from "./chunks/chunk-AHU7WNL2.js";
@@ -45,7 +45,7 @@ import {
45
45
  parsePosition,
46
46
  parseSubcommandArgs,
47
47
  withGlobalFlags
48
- } from "./chunks/chunk-I5OH27IT.js";
48
+ } from "./chunks/chunk-5WC7QCYE.js";
49
49
  import {
50
50
  indent_default
51
51
  } from "./chunks/chunk-A3NYPUKZ.js";
@@ -59,11 +59,11 @@ import {
59
59
  resolveOpenApiTagForProjectsCli,
60
60
  resolveOpenApiTagForTeamsCli,
61
61
  tryOpenApiFallback
62
- } from "./chunks/chunk-OVFHCZBS.js";
62
+ } from "./chunks/chunk-7FQKQPBD.js";
63
63
  import {
64
64
  getUpdateCommand,
65
65
  isGlobal
66
- } from "./chunks/chunk-LSPPTDRH.js";
66
+ } from "./chunks/chunk-QWJ7O2C7.js";
67
67
  import {
68
68
  Now,
69
69
  collectContactInformation,
@@ -85,16 +85,16 @@ import {
85
85
  require_format,
86
86
  require_jsonlines,
87
87
  setupDomain
88
- } from "./chunks/chunk-ZZDXEXJ5.js";
88
+ } from "./chunks/chunk-Z4FJ42GO.js";
89
89
  import {
90
- persistAuthConfig,
91
90
  processRevocationResponse,
92
91
  readLocalConfig,
93
92
  require_open,
94
93
  revocationRequest,
95
94
  sleep,
95
+ writeToAuthConfigFile,
96
96
  writeToConfigFile
97
- } from "./chunks/chunk-5EZVRZOJ.js";
97
+ } from "./chunks/chunk-RC7YZO6Q.js";
98
98
  import "./chunks/chunk-V5P25P7F.js";
99
99
  import {
100
100
  getCustomEnvironments,
@@ -120,11 +120,11 @@ import {
120
120
  } from "./chunks/chunk-MSJX3VKI.js";
121
121
  import {
122
122
  getScope
123
- } from "./chunks/chunk-O7R67TAG.js";
123
+ } from "./chunks/chunk-KHSD7WPG.js";
124
124
  import {
125
125
  formatEnvironment,
126
126
  validateLsArgs
127
- } from "./chunks/chunk-ZJKFUXSF.js";
127
+ } from "./chunks/chunk-U3F7M3YG.js";
128
128
  import {
129
129
  validateJsonOutput
130
130
  } from "./chunks/chunk-XPKWKPWA.js";
@@ -365,7 +365,7 @@ import {
365
365
  webAnalyticsSubcommand,
366
366
  webhooksCommand,
367
367
  whoamiCommand
368
- } from "./chunks/chunk-BUPMO37Q.js";
368
+ } from "./chunks/chunk-DQWTHIXD.js";
369
369
  import {
370
370
  addSubcommand as addSubcommand9,
371
371
  deleteSubcommand,
@@ -407,22 +407,22 @@ import {
407
407
  import "./chunks/chunk-5EDL2IVB.js";
408
408
  import {
409
409
  main
410
- } from "./chunks/chunk-FUUQ2WSC.js";
411
- import "./chunks/chunk-NJYOE4D7.js";
410
+ } from "./chunks/chunk-J7KBPHDC.js";
411
+ import "./chunks/chunk-RCK5HPNI.js";
412
412
  import {
413
413
  ua_default
414
414
  } from "./chunks/chunk-JCLLQ23G.js";
415
415
  import {
416
416
  require_execa
417
- } from "./chunks/chunk-WCMV6TSF.js";
417
+ } from "./chunks/chunk-64DDAGJR.js";
418
418
  import {
419
419
  ensureLink
420
- } from "./chunks/chunk-QTX36APP.js";
421
- import "./chunks/chunk-H2O3DQDC.js";
422
- import "./chunks/chunk-FUYNVB23.js";
420
+ } from "./chunks/chunk-5R6AOACI.js";
421
+ import "./chunks/chunk-EKSIQ3UW.js";
422
+ import "./chunks/chunk-SCAOSA7F.js";
423
423
  import {
424
424
  autoInstallVercelPlugin
425
- } from "./chunks/chunk-OHOYN7R2.js";
425
+ } from "./chunks/chunk-3QA5ZIDF.js";
426
426
  import {
427
427
  AGENT_ACTION,
428
428
  AGENT_REASON,
@@ -473,7 +473,7 @@ import {
473
473
  resolveProjectCwd,
474
474
  selectAndParseRemoteUrl,
475
475
  selectOrg
476
- } from "./chunks/chunk-ZI2C6YH2.js";
476
+ } from "./chunks/chunk-NAUUP4G6.js";
477
477
  import {
478
478
  TelemetryClient
479
479
  } from "./chunks/chunk-U3WLEFHU.js";
@@ -856,7 +856,7 @@ async function activity(client) {
856
856
  return 0;
857
857
  }
858
858
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
859
- const listFn = (await import("./chunks/list-ZSRD6M3H.js")).default;
859
+ const listFn = (await import("./chunks/list-CSE74VTU.js")).default;
860
860
  return listFn(client, telemetry2);
861
861
  }
862
862
  }
@@ -1333,17 +1333,17 @@ async function alerts(client) {
1333
1333
  switch (subcommand) {
1334
1334
  case "inspect": {
1335
1335
  telemetry2.trackCliSubcommandInspect(subcommandOriginal);
1336
- const inspectFn = (await import("./chunks/inspect-5NKOJ64V.js")).default;
1336
+ const inspectFn = (await import("./chunks/inspect-ZSFXZM57.js")).default;
1337
1337
  return inspectFn(client, args);
1338
1338
  }
1339
1339
  case "rules": {
1340
1340
  telemetry2.trackCliSubcommandRules(args[0] ?? "ls");
1341
- const rulesFn = (await import("./chunks/rules-GBXWDR3P.js")).default;
1341
+ const rulesFn = (await import("./chunks/rules-VT5K2MFX.js")).default;
1342
1342
  return rulesFn(client, args);
1343
1343
  }
1344
1344
  default: {
1345
1345
  telemetry2.trackCliSubcommandLs(subcommandOriginal);
1346
- const listFn = (await import("./chunks/list-OLUANKMJ.js")).default;
1346
+ const listFn = (await import("./chunks/list-II2MKBZK.js")).default;
1347
1347
  return listFn(client, telemetry2);
1348
1348
  }
1349
1349
  }
@@ -30087,7 +30087,6 @@ var LogoutTelemetryClient = class extends TelemetryClient {
30087
30087
  var import_error_utils11 = __toESM(require_dist(), 1);
30088
30088
  async function logout(client) {
30089
30089
  const { authConfig } = client;
30090
- const skipWrite = authConfig.skipWrite === true;
30091
30090
  if (!authConfig.token) {
30092
30091
  output_manager_default.note(
30093
30092
  `Not currently logged in, so ${getCommandName("logout")} did nothing`
@@ -30109,11 +30108,9 @@ async function logout(client) {
30109
30108
  }
30110
30109
  try {
30111
30110
  client.updateConfig({ currentTeam: void 0 });
30111
+ client.writeToConfigFile();
30112
30112
  client.emptyAuthConfig();
30113
- if (!skipWrite) {
30114
- client.writeToConfigFile();
30115
- client.persistAuthConfig();
30116
- }
30113
+ client.writeToAuthConfigFile();
30117
30114
  output_manager_default.debug("Configuration has been deleted");
30118
30115
  if (!logoutError) {
30119
30116
  output_manager_default.success("Logged out!");
@@ -30178,10 +30175,8 @@ async function logout2(client) {
30178
30175
  delete authConfig.token;
30179
30176
  delete authConfig.userId;
30180
30177
  try {
30181
- if (!authConfig.skipWrite) {
30182
- writeToConfigFile(config);
30183
- persistAuthConfig(authConfig, config);
30184
- }
30178
+ writeToConfigFile(config);
30179
+ writeToAuthConfigFile(authConfig);
30185
30180
  output_manager_default.debug("Configuration has been deleted");
30186
30181
  } catch (err) {
30187
30182
  output_manager_default.debug((0, import_error_utils12.errorToString)(err));
@@ -31741,7 +31736,7 @@ async function metrics(client) {
31741
31736
  return 0;
31742
31737
  }
31743
31738
  telemetry2.trackCliSubcommandSchema(subcommandOriginal);
31744
- const schemaFn = (await import("./chunks/schema-TXE5TXMY.js")).default;
31739
+ const schemaFn = (await import("./chunks/schema-CQHTQCYK.js")).default;
31745
31740
  return schemaFn(client, telemetry2);
31746
31741
  }
31747
31742
  default: {
@@ -31754,7 +31749,7 @@ async function metrics(client) {
31754
31749
  output_manager_default.print(help(metricsCommand, { columns: client.stderr.columns }));
31755
31750
  return 2;
31756
31751
  }
31757
- const queryFn = (await import("./chunks/query-ZKNQWF5L.js")).default;
31752
+ const queryFn = (await import("./chunks/query-RXC5UHQX.js")).default;
31758
31753
  return queryFn(client, telemetry2);
31759
31754
  }
31760
31755
  }
@@ -42631,7 +42626,7 @@ async function main27(client) {
42631
42626
  return 2;
42632
42627
  }
42633
42628
  telemetry2.trackCliSubcommandEdit(subcommandOriginal);
42634
- return (await import("./chunks/edit-LOQJITTM.js")).default(client, args);
42629
+ return (await import("./chunks/edit-NAVDTRJX.js")).default(client, args);
42635
42630
  case "delete":
42636
42631
  if (needHelp) {
42637
42632
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42639,7 +42634,7 @@ async function main27(client) {
42639
42634
  return 2;
42640
42635
  }
42641
42636
  telemetry2.trackCliSubcommandDelete(subcommandOriginal);
42642
- return (await import("./chunks/delete-WW5B2IIN.js")).default(client, args);
42637
+ return (await import("./chunks/delete-S4BNBMHT.js")).default(client, args);
42643
42638
  case "enable":
42644
42639
  if (needHelp) {
42645
42640
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42647,7 +42642,7 @@ async function main27(client) {
42647
42642
  return 2;
42648
42643
  }
42649
42644
  telemetry2.trackCliSubcommandEnable(subcommandOriginal);
42650
- return (await import("./chunks/enable-XMWWLBL7.js")).default(client, args);
42645
+ return (await import("./chunks/enable-X5XOP7MC.js")).default(client, args);
42651
42646
  case "disable":
42652
42647
  if (needHelp) {
42653
42648
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42655,7 +42650,7 @@ async function main27(client) {
42655
42650
  return 2;
42656
42651
  }
42657
42652
  telemetry2.trackCliSubcommandDisable(subcommandOriginal);
42658
- return (await import("./chunks/disable-WSV2JYK6.js")).default(client, args);
42653
+ return (await import("./chunks/disable-UP64WKDO.js")).default(client, args);
42659
42654
  case "reorder":
42660
42655
  if (needHelp) {
42661
42656
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42663,7 +42658,7 @@ async function main27(client) {
42663
42658
  return 2;
42664
42659
  }
42665
42660
  telemetry2.trackCliSubcommandReorder(subcommandOriginal);
42666
- return (await import("./chunks/reorder-WQA5LQ7X.js")).default(client, args);
42661
+ return (await import("./chunks/reorder-ZKTJ4D6E.js")).default(client, args);
42667
42662
  case "export":
42668
42663
  if (needHelp) {
42669
42664
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42671,7 +42666,7 @@ async function main27(client) {
42671
42666
  return 2;
42672
42667
  }
42673
42668
  telemetry2.trackCliSubcommandExport(subcommandOriginal);
42674
- return (await import("./chunks/export-P2OSIM3L.js")).default(client, args);
42669
+ return (await import("./chunks/export-EVJLYZFA.js")).default(client, args);
42675
42670
  case "publish":
42676
42671
  if (needHelp) {
42677
42672
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42679,7 +42674,7 @@ async function main27(client) {
42679
42674
  return 2;
42680
42675
  }
42681
42676
  telemetry2.trackCliSubcommandPublish(subcommandOriginal);
42682
- return (await import("./chunks/publish-T2HPYN5D.js")).default(client, args);
42677
+ return (await import("./chunks/publish-YMSSQNFI.js")).default(client, args);
42683
42678
  case "restore":
42684
42679
  if (needHelp) {
42685
42680
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42687,7 +42682,7 @@ async function main27(client) {
42687
42682
  return 2;
42688
42683
  }
42689
42684
  telemetry2.trackCliSubcommandRestore(subcommandOriginal);
42690
- return (await import("./chunks/restore-QTREUYWW.js")).default(client, args);
42685
+ return (await import("./chunks/restore-KM6OQHZY.js")).default(client, args);
42691
42686
  case "discard-staging":
42692
42687
  if (needHelp) {
42693
42688
  telemetry2.trackCliFlagHelp("routes", subcommandOriginal);
@@ -42695,7 +42690,7 @@ async function main27(client) {
42695
42690
  return 2;
42696
42691
  }
42697
42692
  telemetry2.trackCliSubcommandDiscardStaging(subcommandOriginal);
42698
- return (await import("./chunks/discard-BTIMKAXZ.js")).default(client, args);
42693
+ return (await import("./chunks/discard-6B5FPH6F.js")).default(client, args);
42699
42694
  default:
42700
42695
  output_manager_default.error(getInvalidSubcommand(COMMAND_CONFIG35));
42701
42696
  output_manager_default.print(help(routesCommand, { columns: client.stderr.columns }));
@@ -47266,6 +47261,9 @@ async function main30(client) {
47266
47261
  }
47267
47262
  }
47268
47263
 
47264
+ // src/commands/whoami/index.ts
47265
+ var import_chalk188 = __toESM(require_source(), 1);
47266
+
47269
47267
  // src/util/telemetry/commands/whoami/index.ts
47270
47268
  var WhoamiTelemetryClient = class extends TelemetryClient {
47271
47269
  };
@@ -47297,19 +47295,46 @@ async function whoami(client) {
47297
47295
  }
47298
47296
  const asJson = formatResult.jsonOutput;
47299
47297
  telemetry2.trackCliOptionFormat(parsedArgs.flags["--format"]);
47300
- const { contextName, user } = await getScope(client, { getTeam: false });
47298
+ const scope = await getScope(client, { resolveLocalScope: true });
47299
+ const { user, team, globalTeam } = scope;
47300
+ const hasLocalOverride = !scope.explicitScopeProvided && ((team?.id ?? null) !== (globalTeam?.id ?? null) || // `team` being null while a local project linked to personal scope
47301
+ // exists while a global team is selected is also a mismatch.
47302
+ scope.scopeMismatch);
47301
47303
  if (asJson) {
47302
47304
  const jsonOutput = {
47303
47305
  username: user.username,
47304
47306
  email: user.email,
47305
- name: user.name
47307
+ name: user.name,
47308
+ team: team ? { id: team.id, slug: team.slug, name: team.name } : null
47306
47309
  };
47310
+ if (hasLocalOverride) {
47311
+ jsonOutput.localOverride = true;
47312
+ jsonOutput.globalTeam = globalTeam ? { id: globalTeam.id, slug: globalTeam.slug, name: globalTeam.name } : null;
47313
+ }
47307
47314
  client.stdout.write(`${JSON.stringify(jsonOutput, null, 2)}
47308
47315
  `);
47309
47316
  } else if (client.stdout.isTTY) {
47310
- output_manager_default.log(contextName);
47317
+ output_manager_default.log(`Logged in as ${import_chalk188.default.bold(user.username)}`);
47318
+ if (team) {
47319
+ output_manager_default.log(
47320
+ `Active team: ${import_chalk188.default.bold(team.slug)}${team.name && team.name !== team.slug ? ` (${team.name})` : ""}`
47321
+ );
47322
+ } else {
47323
+ output_manager_default.log(`Active team: ${import_chalk188.default.bold("Personal Account")}`);
47324
+ }
47325
+ if (hasLocalOverride) {
47326
+ const globalLabel = globalTeam ? globalTeam.slug : "Personal Account";
47327
+ const localLabel = team ? team.slug : "Personal Account";
47328
+ output_manager_default.log(
47329
+ `${import_chalk188.default.yellow("Local override:")} scope is set to ${import_chalk188.default.bold(
47330
+ localLabel
47331
+ )} by the linked project in this directory (globally selected: ${import_chalk188.default.bold(
47332
+ globalLabel
47333
+ )}).`
47334
+ );
47335
+ }
47311
47336
  } else {
47312
- client.stdout.write(`${contextName}
47337
+ client.stdout.write(`${user.username}
47313
47338
  `);
47314
47339
  }
47315
47340
  return 0;
package/dist/index.js CHANGED
@@ -17,30 +17,29 @@ import {
17
17
  login,
18
18
  matchesCliApiTag,
19
19
  tryOpenApiFallback
20
- } from "./chunks/chunk-OVFHCZBS.js";
20
+ } from "./chunks/chunk-7FQKQPBD.js";
21
21
  import {
22
22
  getUpdateCommand
23
- } from "./chunks/chunk-LSPPTDRH.js";
23
+ } from "./chunks/chunk-QWJ7O2C7.js";
24
24
  import {
25
25
  Client,
26
- defaultGlobalConfig,
27
26
  getAuthConfigFilePath,
28
27
  getConfigFilePath,
29
- getDefaultAuthConfig,
30
28
  readAuthConfigFile,
31
29
  readConfigFile,
30
+ writeToAuthConfigFile,
32
31
  writeToConfigFile
33
- } from "./chunks/chunk-5EZVRZOJ.js";
32
+ } from "./chunks/chunk-RC7YZO6Q.js";
34
33
  import {
35
34
  highlight
36
35
  } from "./chunks/chunk-V5P25P7F.js";
37
36
  import {
38
37
  getScope
39
- } from "./chunks/chunk-O7R67TAG.js";
38
+ } from "./chunks/chunk-KHSD7WPG.js";
40
39
  import {
41
40
  commandNames,
42
41
  commands
43
- } from "./chunks/chunk-BUPMO37Q.js";
42
+ } from "./chunks/chunk-DQWTHIXD.js";
44
43
  import "./chunks/chunk-HMM7V4AU.js";
45
44
  import "./chunks/chunk-77JGNI4Z.js";
46
45
  import "./chunks/chunk-NCUOSZ6X.js";
@@ -55,9 +54,9 @@ import "./chunks/chunk-JCLLQ23G.js";
55
54
  import {
56
55
  require_execa,
57
56
  require_isexe
58
- } from "./chunks/chunk-WCMV6TSF.js";
59
- import "./chunks/chunk-FUYNVB23.js";
60
- import "./chunks/chunk-OHOYN7R2.js";
57
+ } from "./chunks/chunk-64DDAGJR.js";
58
+ import "./chunks/chunk-SCAOSA7F.js";
59
+ import "./chunks/chunk-3QA5ZIDF.js";
61
60
  import "./chunks/chunk-E3NE4SKN.js";
62
61
  import "./chunks/chunk-QPPVRYOB.js";
63
62
  import "./chunks/chunk-ABDTA3V2.js";
@@ -74,7 +73,7 @@ import {
74
73
  require_lib,
75
74
  require_lib3 as require_lib2,
76
75
  require_xdg_app_paths
77
- } from "./chunks/chunk-ZI2C6YH2.js";
76
+ } from "./chunks/chunk-NAUUP4G6.js";
78
77
  import {
79
78
  TelemetryClient,
80
79
  TelemetryEventStore
@@ -22816,6 +22815,16 @@ async function earlyGetConfig(configFile) {
22816
22815
  return new CantFindConfig([vercelFilePath, nowFilePath].map(humanizePath));
22817
22816
  }
22818
22817
 
22818
+ // src/util/config/get-default.ts
22819
+ var defaultGlobalConfig = {
22820
+ "// Note": "This is your Vercel config file. For more information see the global configuration documentation.",
22821
+ "// Docs": "https://vercel.com/docs/projects/project-configuration/global-configuration#config.json"
22822
+ };
22823
+ var defaultAuthConfig = {
22824
+ "// Note": "This is your Vercel credentials file. DO NOT SHARE!",
22825
+ "// Docs": "https://vercel.com/docs/projects/project-configuration/global-configuration#auth.json"
22826
+ };
22827
+
22819
22828
  // src/index.ts
22820
22829
  import { Agent as HttpsAgent } from "https";
22821
22830
 
@@ -23671,10 +23680,20 @@ var main = async () => {
23671
23680
  }
23672
23681
  let authConfig;
23673
23682
  try {
23674
- authConfig = readAuthConfigFile(config2);
23683
+ authConfig = readAuthConfigFile();
23675
23684
  } catch (err) {
23676
23685
  if ((0, import_error_utils4.isErrnoException)(err) && err.code === "ENOENT") {
23677
- authConfig = getDefaultAuthConfig();
23686
+ authConfig = defaultAuthConfig;
23687
+ try {
23688
+ writeToAuthConfigFile(authConfig);
23689
+ } catch (err2) {
23690
+ output_manager_default.error(
23691
+ `An unexpected error occurred while trying to write the auth config to "${humanizePath(
23692
+ VERCEL_AUTH_CONFIG_PATH
23693
+ )}" ${(0, import_error_utils4.errorToString)(err2)}`
23694
+ );
23695
+ return 1;
23696
+ }
23678
23697
  } else {
23679
23698
  output_manager_default.error(
23680
23699
  `An unexpected error occurred while trying to read the auth config in "${humanizePath(
package/dist/version.mjs CHANGED
@@ -1 +1 @@
1
- export const version = "52.2.0";
1
+ export const version = "52.2.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel",
3
- "version": "52.2.0",
3
+ "version": "52.2.1",
4
4
  "type": "module",
5
5
  "preferGlobal": true,
6
6
  "license": "Apache-2.0",
@@ -35,25 +35,24 @@
35
35
  "@vercel/prepare-flags-definitions": "0.2.1",
36
36
  "@vercel/build-utils": "13.20.0",
37
37
  "@vercel/backends": "0.2.0",
38
+ "@vercel/detect-agent": "1.2.3",
38
39
  "@vercel/elysia": "0.1.71",
39
- "@vercel/fastify": "0.1.74",
40
40
  "@vercel/express": "0.1.81",
41
- "@vercel/cli-auth": "0.1.0",
41
+ "@vercel/fastify": "0.1.74",
42
42
  "@vercel/go": "3.5.0",
43
43
  "@vercel/hono": "0.2.74",
44
+ "@vercel/h3": "0.1.80",
44
45
  "@vercel/hydrogen": "1.3.6",
45
46
  "@vercel/koa": "0.1.54",
46
47
  "@vercel/nestjs": "0.2.75",
47
- "@vercel/h3": "0.1.80",
48
- "@vercel/next": "4.16.8",
49
- "@vercel/python": "6.36.0",
50
48
  "@vercel/node": "5.7.13",
49
+ "@vercel/next": "4.16.8",
50
+ "@vercel/python": "6.36.1",
51
51
  "@vercel/redwood": "2.4.12",
52
52
  "@vercel/remix-builder": "5.7.2",
53
53
  "@vercel/ruby": "2.3.2",
54
54
  "@vercel/rust": "1.1.1",
55
- "@vercel/static-build": "2.9.21",
56
- "@vercel/detect-agent": "1.2.3"
55
+ "@vercel/static-build": "2.9.21"
57
56
  },
58
57
  "devDependencies": {
59
58
  "@alex_neo/jest-expect-message": "1.0.5",
@@ -182,13 +181,13 @@
182
181
  "xdg-app-paths": "5.1.0",
183
182
  "yauzl-promise": "2.1.3",
184
183
  "@vercel-internals/constants": "1.0.4",
185
- "@vercel/error-utils": "2.0.3",
186
- "@vercel/frameworks": "3.24.2",
187
184
  "@vercel/client": "17.3.10",
188
- "@vercel/fs-detectors": "6.0.1",
189
- "@vercel-internals/get-package-json": "1.0.0",
185
+ "@vercel-internals/types": "3.0.6",
186
+ "@vercel/frameworks": "3.24.2",
190
187
  "@vercel/routing-utils": "6.1.1",
191
- "@vercel-internals/types": "3.0.6"
188
+ "@vercel/fs-detectors": "6.0.1",
189
+ "@vercel/error-utils": "2.0.3",
190
+ "@vercel-internals/get-package-json": "1.0.0"
192
191
  },
193
192
  "scripts": {
194
193
  "test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",