vercel 54.20.1 → 54.21.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 (78) hide show
  1. package/dist/chunks/{add-TF5VZLCY.js → add-NKDLTZ3B.js} +7 -7
  2. package/dist/chunks/{add-IB7HE5S5.js → add-UMB55BRR.js} +8 -8
  3. package/dist/chunks/{chunk-OGJB2GHI.js → chunk-22GUZ5KG.js} +1 -1
  4. package/dist/chunks/{chunk-IZOHLD5D.js → chunk-2QBF3ZL3.js} +54 -4
  5. package/dist/chunks/{chunk-JHQOIGTY.js → chunk-2ZXLLEEZ.js} +3 -3
  6. package/dist/chunks/{chunk-KXGWAWRV.js → chunk-3EMRC44D.js} +3 -3
  7. package/dist/chunks/{chunk-O2QNLUYX.js → chunk-43I5EAPY.js} +2 -2
  8. package/dist/chunks/{chunk-ULKM3ZD4.js → chunk-4RGSUV5C.js} +2 -2
  9. package/dist/chunks/{chunk-FNRZFHFO.js → chunk-4UZF3U4N.js} +1 -1
  10. package/dist/chunks/{chunk-UJ5UEAMC.js → chunk-5AJNUXWP.js} +1 -1
  11. package/dist/chunks/{chunk-RY3AVR6E.js → chunk-7C7MMT4J.js} +1 -1
  12. package/dist/chunks/{chunk-D2M77YVC.js → chunk-7S3QUMIG.js} +2 -2
  13. package/dist/chunks/{chunk-T63I6OUR.js → chunk-ADTCIFMD.js} +5 -5
  14. package/dist/chunks/{chunk-4BEUS7AL.js → chunk-AUYY7RD3.js} +127 -15
  15. package/dist/chunks/{chunk-YWLVPKNT.js → chunk-DKE73NGN.js} +2 -2
  16. package/dist/chunks/{chunk-EJ6GQI6F.js → chunk-EHTPDXTS.js} +1 -0
  17. package/dist/chunks/{chunk-ITU4COOO.js → chunk-GAJ2ESDD.js} +9 -44
  18. package/dist/chunks/{chunk-GDAO4PGA.js → chunk-H3KWN2KA.js} +3 -3
  19. package/dist/chunks/{chunk-P726GMBL.js → chunk-HMFUXSD7.js} +1 -1
  20. package/dist/chunks/{chunk-RB7WQKNC.js → chunk-I4NRKN2Z.js} +7 -4
  21. package/dist/chunks/{chunk-DFEUWDGM.js → chunk-IDMKFYEA.js} +1 -1
  22. package/dist/chunks/{chunk-JDO6BSKN.js → chunk-IMTOXXTF.js} +6 -6
  23. package/dist/chunks/{chunk-MAJWH2PD.js → chunk-JJWESW5Y.js} +1 -1
  24. package/dist/chunks/{chunk-FVI6UYNL.js → chunk-KNSDQCVQ.js} +1 -1
  25. package/dist/chunks/{chunk-Q4A2Q46Z.js → chunk-MLY3KGVY.js} +6 -6
  26. package/dist/chunks/{chunk-5MVXR7B7.js → chunk-MV65GD4L.js} +1 -1
  27. package/dist/chunks/{chunk-TV7GKFSY.js → chunk-OVE2GAHC.js} +3 -3
  28. package/dist/chunks/{chunk-VKBYAWTL.js → chunk-QEEGXNFK.js} +1 -1
  29. package/dist/chunks/{chunk-EFUR47FZ.js → chunk-QKR7GNAK.js} +1 -1
  30. package/dist/chunks/{chunk-6ISLGUMI.js → chunk-QMZO4CEP.js} +6 -6
  31. package/dist/chunks/{chunk-YSIZGIDP.js → chunk-QY63UKTP.js} +2 -2
  32. package/dist/chunks/{chunk-AUECDTMX.js → chunk-RLJA2KI7.js} +1 -1
  33. package/dist/chunks/{chunk-7PAKWBN4.js → chunk-RO5JIUOI.js} +2 -2
  34. package/dist/chunks/{chunk-U3FBUYRS.js → chunk-TLKTTWDA.js} +1 -1
  35. package/dist/chunks/{chunk-FZZWTDNQ.js → chunk-TRQJQXKD.js} +3 -3
  36. package/dist/chunks/{chunk-Q7GZMMHB.js → chunk-XCL7I6W5.js} +3 -3
  37. package/dist/chunks/{chunk-3S2QGKYZ.js → chunk-XMJAKLQQ.js} +1 -1
  38. package/dist/chunks/{compile-vercel-config-XEZ2TPQ4.js → compile-vercel-config-OKONVGZI.js} +3 -3
  39. package/dist/chunks/{delete-O3F4EP2W.js → delete-L7TN5GNZ.js} +5 -5
  40. package/dist/chunks/{disable-SJWGUQKZ.js → disable-7NVU4H2N.js} +5 -5
  41. package/dist/chunks/{discard-EQD6ENC3.js → discard-SJ2TDPS2.js} +5 -5
  42. package/dist/chunks/{edit-NAIWNSXE.js → edit-SW4MF4Q3.js} +6 -6
  43. package/dist/chunks/{enable-LXO62HU5.js → enable-FOKEO6J2.js} +5 -5
  44. package/dist/chunks/{export-EHVTYAAP.js → export-3DSHT2FD.js} +5 -5
  45. package/dist/chunks/{image-2DL7JEWW.js → image-T6I7BZSC.js} +4 -4
  46. package/dist/chunks/{inspect-EGXHWKY3.js → inspect-2MY25CMN.js} +6 -6
  47. package/dist/chunks/{inspect-PL3PE5IJ.js → inspect-DJ7OGHBK.js} +8 -8
  48. package/dist/chunks/{inspect-6IHZTLFA.js → inspect-EP24WN4I.js} +6 -6
  49. package/dist/chunks/{inspect-Z3QJOMNP.js → inspect-RV444SBC.js} +7 -7
  50. package/dist/chunks/{list-KNRPDNQF.js → list-CCG2NVLL.js} +8 -8
  51. package/dist/chunks/{list-BB4T4KT5.js → list-OMJ7EDKA.js} +5 -5
  52. package/dist/chunks/{ls-MUS72LBS.js → ls-33Z3R2KY.js} +7 -7
  53. package/dist/chunks/{ls-IQKMDRUB.js → ls-5KN5FKAQ.js} +9 -9
  54. package/dist/chunks/{ls-EP4Q6VF4.js → ls-VCTHIVI7.js} +7 -7
  55. package/dist/chunks/{ls-FTQGK4R6.js → ls-VXZGEJJD.js} +7 -7
  56. package/dist/chunks/{publish-27V2MMFS.js → publish-RZ2DIYRU.js} +5 -5
  57. package/dist/chunks/{query-C6FEOG5R.js → query-2MIBB7C5.js} +6 -6
  58. package/dist/chunks/{reorder-DCSIJX72.js → reorder-FEZIPHNW.js} +5 -5
  59. package/dist/chunks/{restore-NRUBGNSK.js → restore-JHH6CW2S.js} +5 -5
  60. package/dist/chunks/{rm-EZFCCZFT.js → rm-3KAXICHP.js} +6 -6
  61. package/dist/chunks/{rm-NMSG2WG6.js → rm-EKPVQYGH.js} +8 -8
  62. package/dist/chunks/{rm-GWW57H2V.js → rm-ULQHII4K.js} +7 -7
  63. package/dist/chunks/{rule-inspect-XPZJO3Y4.js → rule-inspect-FOZOCOUO.js} +7 -7
  64. package/dist/chunks/{rules-C6SB24UO.js → rules-RJD4S7JA.js} +7 -7
  65. package/dist/chunks/{schema-Z6L3EN6F.js → schema-CDXFJU72.js} +7 -7
  66. package/dist/chunks/{tags-5PFVWGLK.js → tags-BLBAPEWV.js} +3 -3
  67. package/dist/chunks/{types-EQD5UZOH.js → types-2TPA6J4G.js} +3 -3
  68. package/dist/chunks/{update-BCLMLJM7.js → update-2NW6NKG6.js} +7 -7
  69. package/dist/commands/build/index.js +3281 -211
  70. package/dist/commands/deploy/index.js +24 -24
  71. package/dist/commands/dev/index.js +13 -13
  72. package/dist/commands/env/index.js +19 -19
  73. package/dist/commands/link/index.js +21 -21
  74. package/dist/commands/list/index.js +14 -8
  75. package/dist/commands-bulk.js +788 -199
  76. package/dist/index.js +22 -22
  77. package/dist/version.mjs +1 -1
  78. package/package.json +18 -16
@@ -6,32 +6,32 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  vcrCommand
9
- } from "./chunk-KXGWAWRV.js";
9
+ } from "./chunk-3EMRC44D.js";
10
10
  import {
11
11
  metricsCommand
12
- } from "./chunk-MAJWH2PD.js";
12
+ } from "./chunk-JJWESW5Y.js";
13
13
  import {
14
14
  routesCommand
15
- } from "./chunk-EFUR47FZ.js";
15
+ } from "./chunk-QKR7GNAK.js";
16
16
  import {
17
17
  activityCommand
18
- } from "./chunk-UJ5UEAMC.js";
18
+ } from "./chunk-5AJNUXWP.js";
19
19
  import {
20
20
  alertsCommand
21
- } from "./chunk-D2M77YVC.js";
21
+ } from "./chunk-7S3QUMIG.js";
22
22
  import {
23
23
  devCommand
24
- } from "./chunk-DFEUWDGM.js";
24
+ } from "./chunk-IDMKFYEA.js";
25
25
  import {
26
26
  listCommand
27
- } from "./chunk-FNRZFHFO.js";
27
+ } from "./chunk-4UZF3U4N.js";
28
28
  import {
29
29
  buildCommand,
30
30
  pullCommand
31
- } from "./chunk-O2QNLUYX.js";
31
+ } from "./chunk-43I5EAPY.js";
32
32
  import {
33
33
  envCommand
34
- } from "./chunk-RB7WQKNC.js";
34
+ } from "./chunk-I4NRKN2Z.js";
35
35
  import {
36
36
  confirmOption,
37
37
  deploymentOption,
@@ -43,7 +43,7 @@ import {
43
43
  projectOption,
44
44
  protectionBypassOption,
45
45
  yesOption
46
- } from "./chunk-EJ6GQI6F.js";
46
+ } from "./chunk-EHTPDXTS.js";
47
47
  import {
48
48
  packageName
49
49
  } from "./chunk-P6AK7SVK.js";
@@ -1414,6 +1414,7 @@ var purgeSubcommand = {
1414
1414
  arguments: [],
1415
1415
  options: [
1416
1416
  yesOption,
1417
+ projectOption,
1417
1418
  {
1418
1419
  name: "type",
1419
1420
  description: "Type of cache to purge",
@@ -1445,6 +1446,7 @@ var invalidateSubcommand = {
1445
1446
  arguments: [],
1446
1447
  options: [
1447
1448
  yesOption,
1449
+ projectOption,
1448
1450
  {
1449
1451
  name: "tag",
1450
1452
  description: "Tags to invalidate (comma-separated)",
@@ -1484,6 +1486,7 @@ var dangerouslyDeleteSubcommand = {
1484
1486
  arguments: [],
1485
1487
  options: [
1486
1488
  yesOption,
1489
+ projectOption,
1487
1490
  {
1488
1491
  name: "tag",
1489
1492
  description: "Tags to delete (comma-separated)",
@@ -2351,7 +2354,7 @@ var listSubcommand6 = {
2351
2354
  description: "List all cron jobs for a project",
2352
2355
  default: true,
2353
2356
  arguments: [],
2354
- options: [formatOption],
2357
+ options: [formatOption, projectOption],
2355
2358
  examples: [
2356
2359
  {
2357
2360
  name: "List all cron jobs",
@@ -2373,7 +2376,7 @@ var runSubcommand = {
2373
2376
  required: false
2374
2377
  }
2375
2378
  ],
2376
- options: [],
2379
+ options: [projectOption],
2377
2380
  examples: [
2378
2381
  {
2379
2382
  name: "Trigger a specific cron job",
@@ -4180,6 +4183,7 @@ var listSubcommand11 = {
4180
4183
  default: true,
4181
4184
  arguments: [],
4182
4185
  options: [
4186
+ projectOption,
4183
4187
  {
4184
4188
  name: "state",
4185
4189
  shorthand: "s",
@@ -4273,7 +4277,7 @@ var inspectSubcommand3 = {
4273
4277
  required: true
4274
4278
  }
4275
4279
  ],
4276
- options: [],
4280
+ options: [projectOption],
4277
4281
  examples: [
4278
4282
  {
4279
4283
  name: "Show details of a feature flag",
@@ -4292,6 +4296,7 @@ var createSubcommand4 = {
4292
4296
  }
4293
4297
  ],
4294
4298
  options: [
4299
+ projectOption,
4295
4300
  {
4296
4301
  name: "kind",
4297
4302
  shorthand: "k",
@@ -4346,7 +4351,7 @@ var openSubcommand2 = {
4346
4351
  required: false
4347
4352
  }
4348
4353
  ],
4349
- options: [],
4354
+ options: [projectOption],
4350
4355
  examples: [
4351
4356
  {
4352
4357
  name: "Open the project feature flags dashboard",
@@ -4369,6 +4374,7 @@ var updateSubcommand3 = {
4369
4374
  }
4370
4375
  ],
4371
4376
  options: [
4377
+ projectOption,
4372
4378
  {
4373
4379
  name: "variant",
4374
4380
  shorthand: "v",
@@ -4428,6 +4434,7 @@ var setSubcommand2 = {
4428
4434
  }
4429
4435
  ],
4430
4436
  options: [
4437
+ projectOption,
4431
4438
  {
4432
4439
  name: "environment",
4433
4440
  shorthand: "e",
@@ -4479,6 +4486,7 @@ var splitSubcommand = {
4479
4486
  }
4480
4487
  ],
4481
4488
  options: [
4489
+ projectOption,
4482
4490
  {
4483
4491
  name: "environment",
4484
4492
  shorthand: "e",
@@ -4546,6 +4554,7 @@ var rolloutSubcommand = {
4546
4554
  }
4547
4555
  ],
4548
4556
  options: [
4557
+ projectOption,
4549
4558
  {
4550
4559
  name: "environment",
4551
4560
  shorthand: "e",
@@ -4637,6 +4646,7 @@ var removeSubcommand8 = {
4637
4646
  }
4638
4647
  ],
4639
4648
  options: [
4649
+ projectOption,
4640
4650
  {
4641
4651
  ...yesOption,
4642
4652
  description: "Skip the confirmation prompt when deleting a flag"
@@ -4664,6 +4674,7 @@ var archiveSubcommand = {
4664
4674
  }
4665
4675
  ],
4666
4676
  options: [
4677
+ projectOption,
4667
4678
  {
4668
4679
  ...yesOption,
4669
4680
  description: "Skip the confirmation prompt when archiving a flag"
@@ -4691,6 +4702,7 @@ var disableSubcommand = {
4691
4702
  }
4692
4703
  ],
4693
4704
  options: [
4705
+ projectOption,
4694
4706
  {
4695
4707
  name: "environment",
4696
4708
  shorthand: "e",
@@ -4742,6 +4754,7 @@ var enableSubcommand = {
4742
4754
  }
4743
4755
  ],
4744
4756
  options: [
4757
+ projectOption,
4745
4758
  {
4746
4759
  name: "environment",
4747
4760
  shorthand: "e",
@@ -4776,6 +4789,7 @@ var segmentsListSubcommand = {
4776
4789
  description: "List all feature flag segments for the current project",
4777
4790
  arguments: [],
4778
4791
  options: [
4792
+ projectOption,
4779
4793
  {
4780
4794
  name: "json",
4781
4795
  shorthand: null,
@@ -4806,6 +4820,7 @@ var segmentsInspectSubcommand = {
4806
4820
  }
4807
4821
  ],
4808
4822
  options: [
4823
+ projectOption,
4809
4824
  {
4810
4825
  name: "json",
4811
4826
  shorthand: null,
@@ -4836,6 +4851,7 @@ var segmentsCreateSubcommand = {
4836
4851
  }
4837
4852
  ],
4838
4853
  options: [
4854
+ projectOption,
4839
4855
  {
4840
4856
  name: "label",
4841
4857
  shorthand: "l",
@@ -4910,6 +4926,7 @@ var segmentsUpdateSubcommand = {
4910
4926
  }
4911
4927
  ],
4912
4928
  options: [
4929
+ projectOption,
4913
4930
  {
4914
4931
  name: "label",
4915
4932
  shorthand: "l",
@@ -4992,6 +5009,7 @@ var segmentsRemoveSubcommand = {
4992
5009
  }
4993
5010
  ],
4994
5011
  options: [
5012
+ projectOption,
4995
5013
  {
4996
5014
  ...yesOption,
4997
5015
  description: "Skip the confirmation prompt when deleting a segment"
@@ -5029,6 +5047,7 @@ var sdkKeysListSubcommand = {
5029
5047
  description: "List all SDK keys for the current project",
5030
5048
  arguments: [],
5031
5049
  options: [
5050
+ projectOption,
5032
5051
  {
5033
5052
  name: "json",
5034
5053
  shorthand: null,
@@ -5054,6 +5073,7 @@ var sdkKeysAddSubcommand = {
5054
5073
  description: "Create a new SDK key",
5055
5074
  arguments: [],
5056
5075
  options: [
5076
+ projectOption,
5057
5077
  {
5058
5078
  name: "type",
5059
5079
  // No shorthand: `-t` is already used globally for `--token`
@@ -5102,6 +5122,7 @@ var sdkKeysRemoveSubcommand = {
5102
5122
  }
5103
5123
  ],
5104
5124
  options: [
5125
+ projectOption,
5105
5126
  {
5106
5127
  ...yesOption,
5107
5128
  description: "Skip the confirmation prompt when deleting an SDK key"
@@ -7277,6 +7298,90 @@ var renameSubcommand = {
7277
7298
  }
7278
7299
  ]
7279
7300
  };
7301
+ var updateSubcommand5 = {
7302
+ name: "update",
7303
+ aliases: ["set"],
7304
+ description: "Update one or more project settings; omitted settings remain unchanged",
7305
+ arguments: [
7306
+ {
7307
+ name: "name",
7308
+ required: false
7309
+ }
7310
+ ],
7311
+ options: [
7312
+ {
7313
+ name: "framework",
7314
+ shorthand: null,
7315
+ type: String,
7316
+ argument: "SLUG",
7317
+ description: 'Set the framework preset by slug; use "other" to clear the preset',
7318
+ deprecated: false
7319
+ },
7320
+ {
7321
+ name: "build-command",
7322
+ shorthand: null,
7323
+ type: String,
7324
+ argument: "COMMAND",
7325
+ description: "Set the build command",
7326
+ deprecated: false
7327
+ },
7328
+ {
7329
+ name: "dev-command",
7330
+ shorthand: null,
7331
+ type: String,
7332
+ argument: "COMMAND",
7333
+ description: "Set the development command",
7334
+ deprecated: false
7335
+ },
7336
+ {
7337
+ name: "install-command",
7338
+ shorthand: null,
7339
+ type: String,
7340
+ argument: "COMMAND",
7341
+ description: "Set the install command",
7342
+ deprecated: false
7343
+ },
7344
+ {
7345
+ name: "output-directory",
7346
+ shorthand: null,
7347
+ type: String,
7348
+ argument: "DIR",
7349
+ description: "Set the output directory",
7350
+ deprecated: false
7351
+ },
7352
+ {
7353
+ name: "auto-detect",
7354
+ shorthand: null,
7355
+ type: [String],
7356
+ argument: "SETTING",
7357
+ description: "Reset a setting to automatic detection; repeat for build-command, dev-command, install-command, or output-directory",
7358
+ deprecated: false
7359
+ },
7360
+ formatOption
7361
+ ],
7362
+ examples: [
7363
+ {
7364
+ name: "Set the linked project framework preset to Next.js",
7365
+ value: `${packageName} project update --framework nextjs`
7366
+ },
7367
+ {
7368
+ name: "Set a named project framework preset to Vite",
7369
+ value: `${packageName} project update my-project --framework vite`
7370
+ },
7371
+ {
7372
+ name: "Update multiple settings in one command",
7373
+ value: `${packageName} project update my-project --build-command "pnpm build" --output-directory dist`
7374
+ },
7375
+ {
7376
+ name: "Reset individual settings to automatic detection",
7377
+ value: `${packageName} project update my-project --auto-detect build-command --auto-detect output-directory`
7378
+ },
7379
+ {
7380
+ name: "Clear the framework preset and return JSON",
7381
+ value: `${packageName} project update my-project --framework other --format json`
7382
+ }
7383
+ ]
7384
+ };
7280
7385
  var tokenSubcommand2 = {
7281
7386
  name: "token",
7282
7387
  aliases: [],
@@ -7602,6 +7707,7 @@ var projectCommand = {
7602
7707
  protectionSubcommand,
7603
7708
  webAnalyticsSubcommand,
7604
7709
  speedInsightsSubcommand,
7710
+ updateSubcommand5,
7605
7711
  renameSubcommand,
7606
7712
  removeSubcommand12,
7607
7713
  tokenSubcommand2
@@ -8112,6 +8218,7 @@ var configureSubcommand = {
8112
8218
  }
8113
8219
  ],
8114
8220
  options: [
8221
+ projectOption,
8115
8222
  {
8116
8223
  name: "cfg",
8117
8224
  shorthand: null,
@@ -8179,6 +8286,7 @@ var startSubcommand = {
8179
8286
  description: "The deploymentId or URL to target for the rolling release",
8180
8287
  required: true
8181
8288
  },
8289
+ projectOption,
8182
8290
  yesOption
8183
8291
  ]
8184
8292
  };
@@ -8194,6 +8302,7 @@ var approveSubcommand = {
8194
8302
  }
8195
8303
  ],
8196
8304
  options: [
8305
+ projectOption,
8197
8306
  {
8198
8307
  name: "dpl",
8199
8308
  shorthand: null,
@@ -8222,6 +8331,7 @@ var abortSubcommand = {
8222
8331
  }
8223
8332
  ],
8224
8333
  options: [
8334
+ projectOption,
8225
8335
  {
8226
8336
  name: "dpl",
8227
8337
  shorthand: null,
@@ -8243,6 +8353,7 @@ var completeSubcommand = {
8243
8353
  }
8244
8354
  ],
8245
8355
  options: [
8356
+ projectOption,
8246
8357
  {
8247
8358
  name: "dpl",
8248
8359
  shorthand: null,
@@ -8263,7 +8374,7 @@ var fetchSubcommand = {
8263
8374
  value: `${packageName} rolling-release fetch`
8264
8375
  }
8265
8376
  ],
8266
- options: []
8377
+ options: [projectOption]
8267
8378
  };
8268
8379
  var rollingReleaseCommand = {
8269
8380
  name: "rolling-release",
@@ -9929,6 +10040,7 @@ export {
9929
10040
  listSubcommand13,
9930
10041
  removeSubcommand12,
9931
10042
  renameSubcommand,
10043
+ updateSubcommand5,
9932
10044
  tokenSubcommand2,
9933
10045
  accessSummarySubcommand,
9934
10046
  membersSubcommand,
@@ -7,10 +7,10 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  VERCEL_DIR,
9
9
  isVercelTomlEnabled
10
- } from "./chunk-RB7WQKNC.js";
10
+ } from "./chunk-I4NRKN2Z.js";
11
11
  import {
12
12
  parseArguments
13
- } from "./chunk-EJ6GQI6F.js";
13
+ } from "./chunk-EHTPDXTS.js";
14
14
  import {
15
15
  ConflictingConfigFiles,
16
16
  DeprecatedNowJson,
@@ -360,6 +360,7 @@ var SUBCOMMAND_FLAG_TAKES_VALUE = /* @__PURE__ */ new Set([
360
360
  // redirects list --version
361
361
  "--search",
362
362
  "--format",
363
+ "--project",
363
364
  "--page",
364
365
  "--per-page"
365
366
  ]);
@@ -18,7 +18,7 @@ import {
18
18
  require_lib,
19
19
  require_minimatch,
20
20
  require_pluralize
21
- } from "./chunk-RB7WQKNC.js";
21
+ } from "./chunk-I4NRKN2Z.js";
22
22
  import {
23
23
  CantParseJSONFile,
24
24
  cmd,
@@ -11229,7 +11229,6 @@ import {
11229
11229
  isExperimentalBackendsEnabled,
11230
11230
  isExperimentalService,
11231
11231
  isExperimentalServiceV2,
11232
- isExternalSymlink,
11233
11232
  isSymbolicLink
11234
11233
  } from "@vercel/build-utils";
11235
11234
 
@@ -11802,17 +11801,12 @@ async function writeEdgeFunction(repoRootPath, outputDir, edgeFunction, path2, e
11802
11801
  }
11803
11802
  await import_fs_extra5.default.mkdirp(dest);
11804
11803
  const ops = [];
11805
- const sharedDest = join4(outputDir, "shared");
11806
- const { files, filePathMap, shared } = filesWithoutFsRefs(
11804
+ const { files, filePathMap } = filesWithoutFsRefs(
11807
11805
  edgeFunction.files,
11808
11806
  repoRootPath,
11809
- sharedDest,
11810
11807
  standalone
11811
11808
  );
11812
11809
  ops.push(download(files, dest));
11813
- if (shared) {
11814
- ops.push(download(shared, sharedDest));
11815
- }
11816
11810
  const config = {
11817
11811
  runtime: "edge",
11818
11812
  ...edgeFunction,
@@ -11841,18 +11835,9 @@ async function writeLambda(repoRootPath, outputDir, lambda, path2, functionConfi
11841
11835
  const ops = [];
11842
11836
  let filePathMap;
11843
11837
  if (lambda.files) {
11844
- const sharedDest = join4(outputDir, "shared");
11845
- const f = filesWithoutFsRefs(
11846
- lambda.files,
11847
- repoRootPath,
11848
- sharedDest,
11849
- standalone
11850
- );
11838
+ const f = filesWithoutFsRefs(lambda.files, repoRootPath, standalone);
11851
11839
  filePathMap = f.filePathMap;
11852
11840
  ops.push(download(f.files, dest));
11853
- if (f.shared) {
11854
- ops.push(download(f.shared, sharedDest));
11855
- }
11856
11841
  } else if (lambda.zipBuffer) {
11857
11842
  ops.push(unzip(lambda.zipBuffer, dest));
11858
11843
  } else {
@@ -12007,41 +11992,21 @@ async function* findDirs(name, dir, root = dir) {
12007
11992
  }
12008
11993
  }
12009
11994
  }
12010
- function stripParentSegments(path2) {
12011
- const normalized = normalizePath(path2);
12012
- const segments = normalized.split("/");
12013
- let i = 0;
12014
- while (i < segments.length && segments[i] === "..") {
12015
- i++;
12016
- }
12017
- return segments.slice(i).join("/");
12018
- }
12019
- function filesWithoutFsRefs(files, repoRootPath, sharedDest, standalone) {
12020
- const repoRootResolved = process.env.VERCEL_RESOLVE_ROOT_DIRECTORY === "1";
12021
- const symlinkDirs = repoRootResolved && standalone && sharedDest ? Object.entries(files).filter(([, f]) => f.type === "FileFsRef" && isSymbolicLink(f.mode)).map(([p]) => `${normalizePath(p)}/`) : [];
11995
+ function filesWithoutFsRefs(files, repoRootPath, standalone) {
11996
+ const symlinkDirs = standalone ? Object.entries(files).filter(([, f]) => f.type === "FileFsRef" && isSymbolicLink(f.mode)).map(([p]) => `${normalizePath(p)}/`) : [];
12022
11997
  let filePathMap;
12023
11998
  const out = {};
12024
- const shared = {};
12025
11999
  for (const [path2, file] of Object.entries(files)) {
12026
12000
  if (file.type === "FileFsRef") {
12027
- if (!filePathMap)
12028
- filePathMap = {};
12029
- if (standalone && sharedDest && repoRootResolved) {
12001
+ if (standalone) {
12030
12002
  const normalized = normalizePath(path2);
12031
12003
  if (symlinkDirs.some((prefix) => normalized.startsWith(prefix))) {
12032
12004
  continue;
12033
12005
  }
12034
12006
  out[normalized] = file;
12035
- } else if (standalone && sharedDest) {
12036
- if (isExternalSymlink(file)) {
12037
- continue;
12038
- }
12039
- const funcPath = stripParentSegments(path2);
12040
- shared[funcPath] = file;
12041
- filePathMap[funcPath] = normalizePath(
12042
- relative2(repoRootPath, join4(sharedDest, funcPath))
12043
- );
12044
12007
  } else {
12008
+ if (!filePathMap)
12009
+ filePathMap = {};
12045
12010
  filePathMap[normalizePath(path2)] = normalizePath(
12046
12011
  relative2(repoRootPath, file.fsPath)
12047
12012
  );
@@ -12050,7 +12015,7 @@ function filesWithoutFsRefs(files, repoRootPath, sharedDest, standalone) {
12050
12015
  out[path2] = file;
12051
12016
  }
12052
12017
  }
12053
- return { files: out, filePathMap, shared };
12018
+ return { files: out, filePathMap };
12054
12019
  }
12055
12020
 
12056
12021
  export {
@@ -12,15 +12,15 @@ import {
12
12
  } from "./chunk-QH7WYDEP.js";
13
13
  import {
14
14
  getScope
15
- } from "./chunk-P726GMBL.js";
15
+ } from "./chunk-HMFUXSD7.js";
16
16
  import {
17
17
  getLinkedProject,
18
18
  getProjectByNameOrId
19
- } from "./chunk-RB7WQKNC.js";
19
+ } from "./chunk-I4NRKN2Z.js";
20
20
  import {
21
21
  buildCommandWithGlobalFlags,
22
22
  outputAgentError
23
- } from "./chunk-IZOHLD5D.js";
23
+ } from "./chunk-2QBF3ZL3.js";
24
24
  import {
25
25
  ProjectNotFound,
26
26
  isAPIError
@@ -11,7 +11,7 @@ import {
11
11
  getTeamById,
12
12
  getUser,
13
13
  getVercelDirectory
14
- } from "./chunk-RB7WQKNC.js";
14
+ } from "./chunk-I4NRKN2Z.js";
15
15
  import {
16
16
  TeamDeleted
17
17
  } from "./chunk-P6AK7SVK.js";
@@ -9,7 +9,7 @@ import {
9
9
  getPreservedArgsForEnvPull,
10
10
  outputActionRequired,
11
11
  outputAgentError
12
- } from "./chunk-IZOHLD5D.js";
12
+ } from "./chunk-2QBF3ZL3.js";
13
13
  import {
14
14
  TelemetryClient,
15
15
  require_dist as require_dist2,
@@ -24,7 +24,7 @@ import {
24
24
  require_string_width,
25
25
  require_strip_ansi,
26
26
  yesOption
27
- } from "./chunk-EJ6GQI6F.js";
27
+ } from "./chunk-EHTPDXTS.js";
28
28
  import {
29
29
  APIError,
30
30
  CantParseJSONFile,
@@ -16204,6 +16204,10 @@ var require_frameworks = __commonJS({
16204
16204
  website: "https://storybook.js.org",
16205
16205
  ignoreRuntimes: ["@vercel/next", "@vercel/node"],
16206
16206
  disableRootMiddleware: true,
16207
+ // Storybook is a devDependency of many apps that deploy something else
16208
+ // entirely, so detecting it is not evidence the user intends to deploy
16209
+ // Storybook itself.
16210
+ detectionConfidence: "weak",
16207
16211
  detectors: {
16208
16212
  every: [
16209
16213
  {
@@ -24669,7 +24673,7 @@ var require_resolve_v2 = __commonJS({
24669
24673
  let framework = config.framework;
24670
24674
  let detectedFramework = false;
24671
24675
  if (!framework) {
24672
- const workspace = normalizedEntrypoint ? entrypointIsDirectory ? normalizedEntrypoint : import_path12.posix.dirname(normalizedEntrypoint) || "." : ".";
24676
+ const workspace = entrypointIsDirectory && normalizedEntrypoint ? normalizedEntrypoint : ".";
24673
24677
  const detection = await (0, import_resolve.detectFrameworkFromWorkspace)({
24674
24678
  fs: serviceFs,
24675
24679
  workspace,
@@ -61812,7 +61816,6 @@ export {
61812
61816
  printRemoteUrls,
61813
61817
  selectAndParseRemoteUrl,
61814
61818
  checkExistsAndConnect,
61815
- getGitRootDirectory,
61816
61819
  printAlignedLabel,
61817
61820
  getRepoLink,
61818
61821
  resolveGitRemote,
@@ -8,7 +8,7 @@ import {
8
8
  confirmOption,
9
9
  projectOption,
10
10
  yesOption
11
- } from "./chunk-EJ6GQI6F.js";
11
+ } from "./chunk-EHTPDXTS.js";
12
12
  import {
13
13
  packageName
14
14
  } from "./chunk-P6AK7SVK.js";
@@ -7,26 +7,26 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  getUpdateCommandInfo,
9
9
  isGlobal
10
- } from "./chunk-FVI6UYNL.js";
10
+ } from "./chunk-KNSDQCVQ.js";
11
11
  import {
12
12
  getGlobalPathConfig,
13
13
  progress,
14
14
  writeToConfigFile
15
- } from "./chunk-FZZWTDNQ.js";
15
+ } from "./chunk-TRQJQXKD.js";
16
16
  import {
17
17
  apiCommand,
18
18
  listSubcommand3 as listSubcommand,
19
19
  loginCommand
20
- } from "./chunk-4BEUS7AL.js";
20
+ } from "./chunk-AUYY7RD3.js";
21
21
  import {
22
22
  require_semver
23
23
  } from "./chunk-IB5L4LKZ.js";
24
24
  import {
25
25
  help
26
- } from "./chunk-YSIZGIDP.js";
26
+ } from "./chunk-QY63UKTP.js";
27
27
  import {
28
28
  login
29
- } from "./chunk-RB7WQKNC.js";
29
+ } from "./chunk-I4NRKN2Z.js";
30
30
  import {
31
31
  TelemetryClient,
32
32
  isNativeBinaryInstall
@@ -36,7 +36,7 @@ import {
36
36
  parseArguments,
37
37
  printError,
38
38
  require_strip_ansi
39
- } from "./chunk-EJ6GQI6F.js";
39
+ } from "./chunk-EHTPDXTS.js";
40
40
  import {
41
41
  packageName
42
42
  } from "./chunk-P6AK7SVK.js";
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  formatOption,
9
9
  projectOption
10
- } from "./chunk-EJ6GQI6F.js";
10
+ } from "./chunk-EHTPDXTS.js";
11
11
  import {
12
12
  packageName
13
13
  } from "./chunk-P6AK7SVK.js";
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
6
6
  const __dirname = __dirname_(__filename);
7
7
  import {
8
8
  require_lib
9
- } from "./chunk-RB7WQKNC.js";
9
+ } from "./chunk-I4NRKN2Z.js";
10
10
  import {
11
11
  isNativeBinaryInstall
12
12
  } from "./chunk-ECCWJHC6.js";