vercel 58.9.5 → 58.11.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/chunks/{add-W4XR5GYX.js → add-I4TVSKCW.js} +2 -2
- package/dist/chunks/{add-5KFK4EFH.js → add-IFQ74XHE.js} +6 -6
- package/dist/chunks/{add-NMYLVDBN.js → add-LLXXGWJZ.js} +2 -2
- package/dist/chunks/{build-BCMSG7TU.js → build-6DPTFQKH.js} +2 -2
- package/dist/chunks/{chunk-3MELKK7A.js → chunk-2XR3IS42.js} +80 -38
- package/dist/chunks/{chunk-AZCZV4XI.js → chunk-57E3RXRP.js} +1 -1
- package/dist/chunks/{chunk-IBIZT5M4.js → chunk-6FUU7WW5.js} +47 -6
- package/dist/chunks/{chunk-4GUI4FQR.js → chunk-74IYXJ5O.js} +10 -518
- package/dist/chunks/{chunk-MAZ2BUBX.js → chunk-A7HDIKC2.js} +2 -2
- package/dist/chunks/chunk-BTKWXOXK.js +61 -0
- package/dist/chunks/{chunk-MGCBTAA7.js → chunk-COTEMB2F.js} +1 -1
- package/dist/chunks/{chunk-UDHYVIJL.js → chunk-D7MYUPY7.js} +4 -4
- package/dist/chunks/{chunk-7RUZPHW7.js → chunk-DJUIGD6C.js} +1 -1
- package/dist/chunks/{chunk-N5YCPDWG.js → chunk-EA6MVNDR.js} +1 -1
- package/dist/chunks/{chunk-2SEBBSKD.js → chunk-EN2JH6AK.js} +1 -1
- package/dist/chunks/{chunk-BZGIBXY6.js → chunk-EPETZ7OW.js} +1 -1
- package/dist/chunks/{chunk-6SXIT6Q3.js → chunk-EVB35IJS.js} +2 -2
- package/dist/chunks/{chunk-6WWATEWK.js → chunk-FKZAFG4D.js} +1 -1
- package/dist/chunks/{chunk-U4LWFSR4.js → chunk-FYXFZ4CY.js} +1 -1
- package/dist/chunks/chunk-IM56DJEQ.js +559 -0
- package/dist/chunks/{chunk-KUZCVMVA.js → chunk-J2WXMIAP.js} +4 -3
- package/dist/chunks/{chunk-ELJ56NBY.js → chunk-JDNWPNLS.js} +173 -173
- package/dist/chunks/{chunk-5MERQE7H.js → chunk-LM5S2YN4.js} +1 -1
- package/dist/chunks/{chunk-TNKTZDOL.js → chunk-MX5JRP6N.js} +1 -1
- package/dist/chunks/{chunk-PTZ6X4P4.js → chunk-OXJFXZV2.js} +1 -1
- package/dist/chunks/{chunk-NDOZRKTB.js → chunk-UEBYWLPO.js} +1 -1
- package/dist/chunks/{chunk-DQDAQYQI.js → chunk-YJCZFVWJ.js} +1 -1
- package/dist/chunks/{chunk-2J7BL7IF.js → chunk-YP35CTKZ.js} +2 -2
- package/dist/chunks/{chunk-GBXTATOJ.js → chunk-Z3FO2ZSH.js} +158 -3
- package/dist/chunks/{clear-54WX3NA2.js → clear-NA74WCNT.js} +2 -2
- package/dist/chunks/{compile-vercel-config-LSW4TWGX.js → compile-vercel-config-BD4UGPKJ.js} +1 -1
- package/dist/chunks/{config-WXQTPQW7.js → config-WYUTVPPF.js} +2 -2
- package/dist/chunks/{delete-OGP3RVWM.js → delete-NFNYQ7LC.js} +2 -2
- package/dist/chunks/{delete-HQMI44SG.js → delete-RZ2SVQK6.js} +2 -2
- package/dist/chunks/{disable-HC266OB7.js → disable-DZ7DCWEI.js} +2 -2
- package/dist/chunks/{discard-3RFIPLXY.js → discard-VZ5QNL7B.js} +2 -2
- package/dist/chunks/{edit-TZOCRGG6.js → edit-ABJN6BMR.js} +2 -2
- package/dist/chunks/{edit-NXPQFWM6.js → edit-RIY7SWIR.js} +3 -3
- package/dist/chunks/{enable-OGFRN4CG.js → enable-JWPKENHY.js} +2 -2
- package/dist/chunks/{export-AEESZFZX.js → export-6IDA3TWA.js} +2 -2
- package/dist/chunks/{image-EIAO7LVN.js → image-DM4ZNQOL.js} +3 -3
- package/dist/chunks/{import-builders-KCQLA2YR.js → import-builders-6NCPTR6R.js} +2 -2
- package/dist/chunks/{inspect-MGIECVLH.js → inspect-6WYHE6JX.js} +2 -2
- package/dist/chunks/{inspect-RUGPLO7A.js → inspect-KUAM7UKQ.js} +2 -2
- package/dist/chunks/{inspect-EM34BOTE.js → inspect-NLWTMJHW.js} +3 -3
- package/dist/chunks/{inspect-TTHC6L7Q.js → inspect-Z6VNNFFK.js} +2 -2
- package/dist/chunks/{inspect-HHSDXTII.js → inspect-ZKZG7MCO.js} +2 -2
- package/dist/chunks/{list-A74MGEOB.js → list-2PB3N6FM.js} +2 -2
- package/dist/chunks/{list-EOG3TYBE.js → list-GPQI2LGO.js} +1 -1
- package/dist/chunks/{list-GQDUIRBU.js → list-ZUFB2CIS.js} +3 -3
- package/dist/chunks/{login-L4EWZOGH.js → login-GTZWDE5T.js} +2 -2
- package/dist/chunks/{ls-VBFBWSWD.js → ls-AG5UBKCR.js} +3 -3
- package/dist/chunks/{ls-F6WCPVB7.js → ls-ETUPWWLP.js} +2 -2
- package/dist/chunks/{ls-D5ESYWG5.js → ls-HCVYO3FF.js} +2 -2
- package/dist/chunks/{ls-OWHNAGNT.js → ls-YMQ6E7MZ.js} +2 -2
- package/dist/chunks/{ls-OJGSWVWO.js → ls-Z2XKIHA5.js} +2 -2
- package/dist/chunks/{open-FHER5QV2.js → open-4XQWNZQD.js} +2 -2
- package/dist/chunks/{permissions-JSXC7BRD.js → permissions-BJBEONBS.js} +4 -4
- package/dist/chunks/{publish-CM6ZGWIE.js → publish-TVZGIZRP.js} +2 -2
- package/dist/chunks/{push-5NYG7HIR.js → push-EJZHZC4Z.js} +2 -2
- package/dist/chunks/{query-5GQLF2BR.js → query-HXMR364K.js} +1 -1
- package/dist/chunks/{reorder-5GCNY75W.js → reorder-VE2PRU24.js} +2 -2
- package/dist/chunks/{reply-B2XCK5XR.js → reply-4YEXMUWH.js} +2 -2
- package/dist/chunks/{resolve-YQP5C2QY.js → resolve-GZ4KXDU6.js} +2 -2
- package/dist/chunks/{restore-VHX4JV5J.js → restore-ZY3IJ4S3.js} +2 -2
- package/dist/chunks/{rm-QVVQDCDX.js → rm-IE23BM6V.js} +3 -3
- package/dist/chunks/{rm-VDFSX3LH.js → rm-QS5PIVAO.js} +2 -2
- package/dist/chunks/{rm-OILUGCTW.js → rm-Y6OROWNK.js} +2 -2
- package/dist/chunks/{rm-AUUT2YIT.js → rm-YIVI23NT.js} +2 -2
- package/dist/chunks/{rule-inspect-LKTUPW4B.js → rule-inspect-6NXF565C.js} +3 -3
- package/dist/chunks/{rules-J5JM5VFQ.js → rules-QOZAWHUO.js} +6 -6
- package/dist/chunks/{schema-OIKSCLDU.js → schema-YJDZ6EOC.js} +1 -1
- package/dist/chunks/{tags-AMTMNRLQ.js → tags-67LC7TV4.js} +2 -2
- package/dist/chunks/{update-AFL3GHKB.js → update-YNL7VIL7.js} +6 -6
- package/dist/commands/build/index.js +15 -11
- package/dist/commands/deploy/index.js +347 -49
- package/dist/commands/dev/index.js +39 -13
- package/dist/commands/env/index.js +4 -4
- package/dist/commands/link/index.js +6 -6
- package/dist/commands/list/index.js +2 -2
- package/dist/commands-bulk.js +1018 -294
- package/dist/index.js +33 -43
- package/dist/version.mjs +1 -1
- package/package.json +17 -17
- package/dist/chunks/chunk-I2XE3GMB.js +0 -21
|
@@ -7,13 +7,14 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
9
|
isGlobal
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UEBYWLPO.js";
|
|
11
11
|
import {
|
|
12
|
-
progress
|
|
13
|
-
|
|
12
|
+
progress,
|
|
13
|
+
require_ci_info
|
|
14
|
+
} from "./chunk-IM56DJEQ.js";
|
|
14
15
|
import {
|
|
15
16
|
writeToConfigFile
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-A7HDIKC2.js";
|
|
17
18
|
import {
|
|
18
19
|
getGlobalPathConfig
|
|
19
20
|
} from "./chunk-JKQWQA2T.js";
|
|
@@ -22,9 +23,8 @@ import {
|
|
|
22
23
|
} from "./chunk-KXDWXXJH.js";
|
|
23
24
|
import {
|
|
24
25
|
apiCommand,
|
|
25
|
-
listSubcommand4 as listSubcommand
|
|
26
|
-
|
|
27
|
-
} from "./chunk-GBXTATOJ.js";
|
|
26
|
+
listSubcommand4 as listSubcommand
|
|
27
|
+
} from "./chunk-Z3FO2ZSH.js";
|
|
28
28
|
import {
|
|
29
29
|
require_semver
|
|
30
30
|
} from "./chunk-IB5L4LKZ.js";
|
|
@@ -32,12 +32,11 @@ import {
|
|
|
32
32
|
help
|
|
33
33
|
} from "./chunk-ZX2FSPWV.js";
|
|
34
34
|
import {
|
|
35
|
-
login,
|
|
36
35
|
require_chownr,
|
|
37
36
|
require_mkdirp,
|
|
38
37
|
require_pump,
|
|
39
38
|
require_tar_stream
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6FUU7WW5.js";
|
|
41
40
|
import {
|
|
42
41
|
TelemetryClient,
|
|
43
42
|
isNativeBinaryInstall
|
|
@@ -75,440 +74,6 @@ import {
|
|
|
75
74
|
__toESM
|
|
76
75
|
} from "./chunk-TZ2YI2VH.js";
|
|
77
76
|
|
|
78
|
-
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json
|
|
79
|
-
var require_vendors = __commonJS({
|
|
80
|
-
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/vendors.json"(exports, module) {
|
|
81
|
-
module.exports = [
|
|
82
|
-
{
|
|
83
|
-
name: "Agola CI",
|
|
84
|
-
constant: "AGOLA",
|
|
85
|
-
env: "AGOLA_GIT_REF",
|
|
86
|
-
pr: "AGOLA_PULL_REQUEST_ID"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
name: "Appcircle",
|
|
90
|
-
constant: "APPCIRCLE",
|
|
91
|
-
env: "AC_APPCIRCLE",
|
|
92
|
-
pr: {
|
|
93
|
-
env: "AC_GIT_PR",
|
|
94
|
-
ne: "false"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "AppVeyor",
|
|
99
|
-
constant: "APPVEYOR",
|
|
100
|
-
env: "APPVEYOR",
|
|
101
|
-
pr: "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: "AWS CodeBuild",
|
|
105
|
-
constant: "CODEBUILD",
|
|
106
|
-
env: "CODEBUILD_BUILD_ARN",
|
|
107
|
-
pr: {
|
|
108
|
-
env: "CODEBUILD_WEBHOOK_EVENT",
|
|
109
|
-
any: [
|
|
110
|
-
"PULL_REQUEST_CREATED",
|
|
111
|
-
"PULL_REQUEST_UPDATED",
|
|
112
|
-
"PULL_REQUEST_REOPENED"
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "Azure Pipelines",
|
|
118
|
-
constant: "AZURE_PIPELINES",
|
|
119
|
-
env: "TF_BUILD",
|
|
120
|
-
pr: {
|
|
121
|
-
BUILD_REASON: "PullRequest"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: "Bamboo",
|
|
126
|
-
constant: "BAMBOO",
|
|
127
|
-
env: "bamboo_planKey"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: "Bitbucket Pipelines",
|
|
131
|
-
constant: "BITBUCKET",
|
|
132
|
-
env: "BITBUCKET_COMMIT",
|
|
133
|
-
pr: "BITBUCKET_PR_ID"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
name: "Bitrise",
|
|
137
|
-
constant: "BITRISE",
|
|
138
|
-
env: "BITRISE_IO",
|
|
139
|
-
pr: "BITRISE_PULL_REQUEST"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: "Buddy",
|
|
143
|
-
constant: "BUDDY",
|
|
144
|
-
env: "BUDDY_WORKSPACE_ID",
|
|
145
|
-
pr: "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: "Buildkite",
|
|
149
|
-
constant: "BUILDKITE",
|
|
150
|
-
env: "BUILDKITE",
|
|
151
|
-
pr: {
|
|
152
|
-
env: "BUILDKITE_PULL_REQUEST",
|
|
153
|
-
ne: "false"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
name: "CircleCI",
|
|
158
|
-
constant: "CIRCLE",
|
|
159
|
-
env: "CIRCLECI",
|
|
160
|
-
pr: "CIRCLE_PULL_REQUEST"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: "Cirrus CI",
|
|
164
|
-
constant: "CIRRUS",
|
|
165
|
-
env: "CIRRUS_CI",
|
|
166
|
-
pr: "CIRRUS_PR"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: "Codefresh",
|
|
170
|
-
constant: "CODEFRESH",
|
|
171
|
-
env: "CF_BUILD_ID",
|
|
172
|
-
pr: {
|
|
173
|
-
any: [
|
|
174
|
-
"CF_PULL_REQUEST_NUMBER",
|
|
175
|
-
"CF_PULL_REQUEST_ID"
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
name: "Codemagic",
|
|
181
|
-
constant: "CODEMAGIC",
|
|
182
|
-
env: "CM_BUILD_ID",
|
|
183
|
-
pr: "CM_PULL_REQUEST"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: "Codeship",
|
|
187
|
-
constant: "CODESHIP",
|
|
188
|
-
env: {
|
|
189
|
-
CI_NAME: "codeship"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
name: "Drone",
|
|
194
|
-
constant: "DRONE",
|
|
195
|
-
env: "DRONE",
|
|
196
|
-
pr: {
|
|
197
|
-
DRONE_BUILD_EVENT: "pull_request"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
name: "dsari",
|
|
202
|
-
constant: "DSARI",
|
|
203
|
-
env: "DSARI"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: "Earthly",
|
|
207
|
-
constant: "EARTHLY",
|
|
208
|
-
env: "EARTHLY_CI"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
name: "Expo Application Services",
|
|
212
|
-
constant: "EAS",
|
|
213
|
-
env: "EAS_BUILD"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
name: "Gerrit",
|
|
217
|
-
constant: "GERRIT",
|
|
218
|
-
env: "GERRIT_PROJECT"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
name: "Gitea Actions",
|
|
222
|
-
constant: "GITEA_ACTIONS",
|
|
223
|
-
env: "GITEA_ACTIONS"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: "GitHub Actions",
|
|
227
|
-
constant: "GITHUB_ACTIONS",
|
|
228
|
-
env: "GITHUB_ACTIONS",
|
|
229
|
-
pr: {
|
|
230
|
-
GITHUB_EVENT_NAME: "pull_request"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: "GitLab CI",
|
|
235
|
-
constant: "GITLAB",
|
|
236
|
-
env: "GITLAB_CI",
|
|
237
|
-
pr: "CI_MERGE_REQUEST_ID"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
name: "GoCD",
|
|
241
|
-
constant: "GOCD",
|
|
242
|
-
env: "GO_PIPELINE_LABEL"
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
name: "Google Cloud Build",
|
|
246
|
-
constant: "GOOGLE_CLOUD_BUILD",
|
|
247
|
-
env: "BUILDER_OUTPUT"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: "Harness CI",
|
|
251
|
-
constant: "HARNESS",
|
|
252
|
-
env: "HARNESS_BUILD_ID"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: "Heroku",
|
|
256
|
-
constant: "HEROKU",
|
|
257
|
-
env: {
|
|
258
|
-
env: "NODE",
|
|
259
|
-
includes: "/app/.heroku/node/bin/node"
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: "Hudson",
|
|
264
|
-
constant: "HUDSON",
|
|
265
|
-
env: "HUDSON_URL"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
name: "Jenkins",
|
|
269
|
-
constant: "JENKINS",
|
|
270
|
-
env: [
|
|
271
|
-
"JENKINS_URL",
|
|
272
|
-
"BUILD_ID"
|
|
273
|
-
],
|
|
274
|
-
pr: {
|
|
275
|
-
any: [
|
|
276
|
-
"ghprbPullId",
|
|
277
|
-
"CHANGE_ID"
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
name: "LayerCI",
|
|
283
|
-
constant: "LAYERCI",
|
|
284
|
-
env: "LAYERCI",
|
|
285
|
-
pr: "LAYERCI_PULL_REQUEST"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
name: "Magnum CI",
|
|
289
|
-
constant: "MAGNUM",
|
|
290
|
-
env: "MAGNUM"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
name: "Netlify CI",
|
|
294
|
-
constant: "NETLIFY",
|
|
295
|
-
env: "NETLIFY",
|
|
296
|
-
pr: {
|
|
297
|
-
env: "PULL_REQUEST",
|
|
298
|
-
ne: "false"
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
name: "Nevercode",
|
|
303
|
-
constant: "NEVERCODE",
|
|
304
|
-
env: "NEVERCODE",
|
|
305
|
-
pr: {
|
|
306
|
-
env: "NEVERCODE_PULL_REQUEST",
|
|
307
|
-
ne: "false"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: "Prow",
|
|
312
|
-
constant: "PROW",
|
|
313
|
-
env: "PROW_JOB_ID"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
name: "ReleaseHub",
|
|
317
|
-
constant: "RELEASEHUB",
|
|
318
|
-
env: "RELEASE_BUILD_ID"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
name: "Render",
|
|
322
|
-
constant: "RENDER",
|
|
323
|
-
env: "RENDER",
|
|
324
|
-
pr: {
|
|
325
|
-
IS_PULL_REQUEST: "true"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
name: "Sail CI",
|
|
330
|
-
constant: "SAIL",
|
|
331
|
-
env: "SAILCI",
|
|
332
|
-
pr: "SAIL_PULL_REQUEST_NUMBER"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
name: "Screwdriver",
|
|
336
|
-
constant: "SCREWDRIVER",
|
|
337
|
-
env: "SCREWDRIVER",
|
|
338
|
-
pr: {
|
|
339
|
-
env: "SD_PULL_REQUEST",
|
|
340
|
-
ne: "false"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: "Semaphore",
|
|
345
|
-
constant: "SEMAPHORE",
|
|
346
|
-
env: "SEMAPHORE",
|
|
347
|
-
pr: "PULL_REQUEST_NUMBER"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
name: "Sourcehut",
|
|
351
|
-
constant: "SOURCEHUT",
|
|
352
|
-
env: {
|
|
353
|
-
CI_NAME: "sourcehut"
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
name: "Strider CD",
|
|
358
|
-
constant: "STRIDER",
|
|
359
|
-
env: "STRIDER"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
name: "TaskCluster",
|
|
363
|
-
constant: "TASKCLUSTER",
|
|
364
|
-
env: [
|
|
365
|
-
"TASK_ID",
|
|
366
|
-
"RUN_ID"
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
name: "TeamCity",
|
|
371
|
-
constant: "TEAMCITY",
|
|
372
|
-
env: "TEAMCITY_VERSION"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
name: "Travis CI",
|
|
376
|
-
constant: "TRAVIS",
|
|
377
|
-
env: "TRAVIS",
|
|
378
|
-
pr: {
|
|
379
|
-
env: "TRAVIS_PULL_REQUEST",
|
|
380
|
-
ne: "false"
|
|
381
|
-
}
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
name: "Vela",
|
|
385
|
-
constant: "VELA",
|
|
386
|
-
env: "VELA",
|
|
387
|
-
pr: {
|
|
388
|
-
VELA_PULL_REQUEST: "1"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
name: "Vercel",
|
|
393
|
-
constant: "VERCEL",
|
|
394
|
-
env: {
|
|
395
|
-
any: [
|
|
396
|
-
"NOW_BUILDER",
|
|
397
|
-
"VERCEL"
|
|
398
|
-
]
|
|
399
|
-
},
|
|
400
|
-
pr: "VERCEL_GIT_PULL_REQUEST_ID"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
name: "Visual Studio App Center",
|
|
404
|
-
constant: "APPCENTER",
|
|
405
|
-
env: "APPCENTER_BUILD_ID"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
name: "Woodpecker",
|
|
409
|
-
constant: "WOODPECKER",
|
|
410
|
-
env: {
|
|
411
|
-
CI: "woodpecker"
|
|
412
|
-
},
|
|
413
|
-
pr: {
|
|
414
|
-
CI_BUILD_EVENT: "pull_request"
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
name: "Xcode Cloud",
|
|
419
|
-
constant: "XCODE_CLOUD",
|
|
420
|
-
env: "CI_XCODE_PROJECT",
|
|
421
|
-
pr: "CI_PULL_REQUEST_NUMBER"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
name: "Xcode Server",
|
|
425
|
-
constant: "XCODE_SERVER",
|
|
426
|
-
env: "XCS"
|
|
427
|
-
}
|
|
428
|
-
];
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
// ../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js
|
|
433
|
-
var require_ci_info = __commonJS({
|
|
434
|
-
"../../node_modules/.pnpm/ci-info@4.1.0/node_modules/ci-info/index.js"(exports) {
|
|
435
|
-
"use strict";
|
|
436
|
-
var vendors = require_vendors();
|
|
437
|
-
var env = process.env;
|
|
438
|
-
Object.defineProperty(exports, "_vendors", {
|
|
439
|
-
value: vendors.map(function(v) {
|
|
440
|
-
return v.constant;
|
|
441
|
-
})
|
|
442
|
-
});
|
|
443
|
-
exports.name = null;
|
|
444
|
-
exports.isPR = null;
|
|
445
|
-
exports.id = null;
|
|
446
|
-
vendors.forEach(function(vendor) {
|
|
447
|
-
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
448
|
-
const isCI = envs.every(function(obj) {
|
|
449
|
-
return checkEnv(obj);
|
|
450
|
-
});
|
|
451
|
-
exports[vendor.constant] = isCI;
|
|
452
|
-
if (!isCI) {
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
exports.name = vendor.name;
|
|
456
|
-
exports.isPR = checkPR(vendor);
|
|
457
|
-
exports.id = vendor.constant;
|
|
458
|
-
});
|
|
459
|
-
exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
460
|
-
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
461
|
-
env.BUILD_NUMBER || // Jenkins, TeamCity
|
|
462
|
-
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
463
|
-
env.CI_APP_ID || // Appflow
|
|
464
|
-
env.CI_BUILD_ID || // Appflow
|
|
465
|
-
env.CI_BUILD_NUMBER || // Appflow
|
|
466
|
-
env.CI_NAME || // Codeship and others
|
|
467
|
-
env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
|
468
|
-
env.RUN_ID || // TaskCluster, dsari
|
|
469
|
-
exports.name || false));
|
|
470
|
-
function checkEnv(obj) {
|
|
471
|
-
if (typeof obj === "string")
|
|
472
|
-
return !!env[obj];
|
|
473
|
-
if ("env" in obj) {
|
|
474
|
-
return env[obj.env] && env[obj.env].includes(obj.includes);
|
|
475
|
-
}
|
|
476
|
-
if ("any" in obj) {
|
|
477
|
-
return obj.any.some(function(k) {
|
|
478
|
-
return !!env[k];
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
return Object.keys(obj).every(function(k) {
|
|
482
|
-
return env[k] === obj[k];
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
function checkPR(vendor) {
|
|
486
|
-
switch (typeof vendor.pr) {
|
|
487
|
-
case "string":
|
|
488
|
-
return !!env[vendor.pr];
|
|
489
|
-
case "object":
|
|
490
|
-
if ("env" in vendor.pr) {
|
|
491
|
-
if ("any" in vendor.pr) {
|
|
492
|
-
return vendor.pr.any.some(function(key) {
|
|
493
|
-
return env[vendor.pr.env] === key;
|
|
494
|
-
});
|
|
495
|
-
} else {
|
|
496
|
-
return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
|
|
497
|
-
}
|
|
498
|
-
} else if ("any" in vendor.pr) {
|
|
499
|
-
return vendor.pr.any.some(function(key) {
|
|
500
|
-
return !!env[key];
|
|
501
|
-
});
|
|
502
|
-
} else {
|
|
503
|
-
return checkEnv(vendor.pr);
|
|
504
|
-
}
|
|
505
|
-
default:
|
|
506
|
-
return null;
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
|
|
512
77
|
// ../../node_modules/.pnpm/tar-fs@1.16.5/node_modules/tar-fs/index.js
|
|
513
78
|
var require_tar_fs = __commonJS({
|
|
514
79
|
"../../node_modules/.pnpm/tar-fs@1.16.5/node_modules/tar-fs/index.js"(exports) {
|
|
@@ -3807,79 +3372,8 @@ async function canAutoUpdate(client, exitCode, command) {
|
|
|
3807
3372
|
return isGlobal();
|
|
3808
3373
|
}
|
|
3809
3374
|
|
|
3810
|
-
// src/commands/login/index.ts
|
|
3811
|
-
var import_chalk5 = __toESM(require_source(), 1);
|
|
3812
|
-
|
|
3813
|
-
// src/util/telemetry/commands/login/index.ts
|
|
3814
|
-
var LoginTelemetryClient = class extends TelemetryClient {
|
|
3815
|
-
/**
|
|
3816
|
-
* Tracks the state of the login process.
|
|
3817
|
-
* - `started` when the user initiates the login process.
|
|
3818
|
-
* - `canceled` when the user cancels the login process.
|
|
3819
|
-
* - `error` when the user encounters an error during the login process.
|
|
3820
|
-
* - `success` when the user successfully logs in.
|
|
3821
|
-
*/
|
|
3822
|
-
trackState(...args) {
|
|
3823
|
-
this.trackLoginState(...args);
|
|
3824
|
-
}
|
|
3825
|
-
};
|
|
3826
|
-
|
|
3827
|
-
// src/commands/login/index.ts
|
|
3828
|
-
async function login2(client, options) {
|
|
3829
|
-
let parsedArgs = null;
|
|
3830
|
-
const flagsSpecification = getFlagsSpecification(loginCommand.options);
|
|
3831
|
-
const telemetry = new LoginTelemetryClient({
|
|
3832
|
-
opts: {
|
|
3833
|
-
store: client.telemetryEventStore
|
|
3834
|
-
}
|
|
3835
|
-
});
|
|
3836
|
-
try {
|
|
3837
|
-
if (options.shouldParseArgs) {
|
|
3838
|
-
parsedArgs = parseArguments(client.argv.slice(2), flagsSpecification);
|
|
3839
|
-
}
|
|
3840
|
-
} catch (error) {
|
|
3841
|
-
printError(error);
|
|
3842
|
-
return 1;
|
|
3843
|
-
}
|
|
3844
|
-
if (parsedArgs?.flags["--help"]) {
|
|
3845
|
-
telemetry.trackCliFlagHelp("login");
|
|
3846
|
-
output_manager_default.print(help(loginCommand, { columns: client.stderr.columns }));
|
|
3847
|
-
return 0;
|
|
3848
|
-
}
|
|
3849
|
-
if (parsedArgs?.flags["--token"]) {
|
|
3850
|
-
output_manager_default.error('`--token` may not be used with the "login" command');
|
|
3851
|
-
return 2;
|
|
3852
|
-
}
|
|
3853
|
-
if (options.shouldParseArgs && parsedArgs) {
|
|
3854
|
-
const obsoleteFlags = Object.keys(parsedArgs.flags).filter((flag) => {
|
|
3855
|
-
const flagKey = flag.replace("--", "");
|
|
3856
|
-
const option = loginCommand.options.find((o) => o.name === flagKey);
|
|
3857
|
-
if (!option || typeof option === "number")
|
|
3858
|
-
return;
|
|
3859
|
-
return "deprecated" in option && option.deprecated;
|
|
3860
|
-
});
|
|
3861
|
-
if (obsoleteFlags.length) {
|
|
3862
|
-
const flags = obsoleteFlags.map((f) => import_chalk5.default.bold(f)).join(", ");
|
|
3863
|
-
output_manager_default.warn(`The following flags are deprecated: ${flags}`);
|
|
3864
|
-
}
|
|
3865
|
-
const obsoleteArguments = parsedArgs.args.slice(1);
|
|
3866
|
-
if (obsoleteArguments.length) {
|
|
3867
|
-
const args = obsoleteArguments.map((a) => import_chalk5.default.bold(a)).join(", ");
|
|
3868
|
-
output_manager_default.warn(`The following arguments are deprecated: ${args}`);
|
|
3869
|
-
}
|
|
3870
|
-
if (obsoleteArguments.length || obsoleteFlags.length) {
|
|
3871
|
-
output_manager_default.print(
|
|
3872
|
-
`Read more in our ${output_manager_default.link("changelog", "https://vercel.com/changelog/new-vercel-cli-login-flow")}.
|
|
3873
|
-
`
|
|
3874
|
-
);
|
|
3875
|
-
}
|
|
3876
|
-
}
|
|
3877
|
-
telemetry.trackState("started");
|
|
3878
|
-
return await login(client, telemetry);
|
|
3879
|
-
}
|
|
3880
|
-
|
|
3881
3375
|
// src/util/output/box.ts
|
|
3882
|
-
var
|
|
3376
|
+
var import_chalk5 = __toESM(require_source(), 1);
|
|
3883
3377
|
var import_strip_ansi = __toESM(require_strip_ansi(), 1);
|
|
3884
3378
|
var border = ["\u2500", "\u256D", "\u256E", "\u2502", "\u2502", "\u2570", "\u256F"];
|
|
3885
3379
|
var nothing = ["\u2500", "", "", "", "", "", ""];
|
|
@@ -3891,7 +3385,7 @@ function box(message, {
|
|
|
3891
3385
|
} = {}) {
|
|
3892
3386
|
const lines = message.split(/\r?\n/).map((line) => [line, (0, import_strip_ansi.default)(line).length]);
|
|
3893
3387
|
const maxLine = lines.reduce((p, [, len]) => Math.max(p, len), 0);
|
|
3894
|
-
const borderColorFn = borderColor &&
|
|
3388
|
+
const borderColorFn = borderColor && import_chalk5.default[borderColor] || import_chalk5.default.yellow;
|
|
3895
3389
|
const clampedSidePadding = Math.max(1, padding * 3);
|
|
3896
3390
|
const narrowMode = maxLine + 2 + clampedSidePadding * 2 > cols;
|
|
3897
3391
|
const sidePadding = narrowMode ? 0 : clampedSidePadding;
|
|
@@ -3950,7 +3444,6 @@ export {
|
|
|
3950
3444
|
api,
|
|
3951
3445
|
tryOpenApiFallback,
|
|
3952
3446
|
executeUpgrade,
|
|
3953
|
-
require_ci_info,
|
|
3954
3447
|
require_tar_fs,
|
|
3955
3448
|
CURL_INSTALL_COMMAND,
|
|
3956
3449
|
isCurlInstall,
|
|
@@ -3970,6 +3463,5 @@ export {
|
|
|
3970
3463
|
hasAutoUpdatePreference,
|
|
3971
3464
|
setAutoUpdate,
|
|
3972
3465
|
canAutoUpdate,
|
|
3973
|
-
login2 as login,
|
|
3974
3466
|
box
|
|
3975
3467
|
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
PromptBackError,
|
|
13
13
|
PromptCanceledError,
|
|
14
14
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-COTEMB2F.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
18
18
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
useKeypress,
|
|
40
40
|
usePrefix,
|
|
41
41
|
useState
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6FUU7WW5.js";
|
|
43
43
|
import {
|
|
44
44
|
require_load_json_file
|
|
45
45
|
} from "./chunk-ECCWJHC6.js";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __dirname_ } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __dirname_(__filename);
|
|
7
|
+
import {
|
|
8
|
+
login,
|
|
9
|
+
require_ci_info
|
|
10
|
+
} from "./chunk-IM56DJEQ.js";
|
|
11
|
+
import {
|
|
12
|
+
getGlobalPathConfig
|
|
13
|
+
} from "./chunk-JKQWQA2T.js";
|
|
14
|
+
import {
|
|
15
|
+
humanizePath,
|
|
16
|
+
param
|
|
17
|
+
} from "./chunk-6FUU7WW5.js";
|
|
18
|
+
import {
|
|
19
|
+
printError
|
|
20
|
+
} from "./chunk-KBEX5MYS.js";
|
|
21
|
+
import {
|
|
22
|
+
getCommandName
|
|
23
|
+
} from "./chunk-SOFC4MLS.js";
|
|
24
|
+
import {
|
|
25
|
+
output_manager_default
|
|
26
|
+
} from "./chunk-OX7KI3LF.js";
|
|
27
|
+
import {
|
|
28
|
+
__toESM
|
|
29
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
30
|
+
|
|
31
|
+
// src/util/login/prompt-missing-credentials.ts
|
|
32
|
+
var import_ci_info = __toESM(require_ci_info(), 1);
|
|
33
|
+
async function promptMissingCredentials(client, onLoginError) {
|
|
34
|
+
const isTTY = process.stdout.isTTY;
|
|
35
|
+
if (!import_ci_info.default.isCI && (isTTY || client.isAgent)) {
|
|
36
|
+
output_manager_default.log(
|
|
37
|
+
isTTY ? "No existing credentials found. Please log in:" : "No existing credentials found. Starting login flow..."
|
|
38
|
+
);
|
|
39
|
+
try {
|
|
40
|
+
const result = await login(client, { shouldParseArgs: false });
|
|
41
|
+
if (result !== 0) {
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
} catch (error) {
|
|
45
|
+
printError(error);
|
|
46
|
+
onLoginError?.(error);
|
|
47
|
+
return 1;
|
|
48
|
+
}
|
|
49
|
+
output_manager_default.debug(`Saved credentials in "${humanizePath(getGlobalPathConfig())}"`);
|
|
50
|
+
return 0;
|
|
51
|
+
}
|
|
52
|
+
output_manager_default.prettyError({
|
|
53
|
+
message: `No existing credentials found. Please run ${getCommandName("login")} or pass ${param("--token")}`,
|
|
54
|
+
link: "https://err.sh/vercel/no-credentials-found"
|
|
55
|
+
});
|
|
56
|
+
return 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
promptMissingCredentials
|
|
61
|
+
};
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeProjectSettings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LM5S2YN4.js";
|
|
10
10
|
import {
|
|
11
11
|
autoInstallVercelPlugin
|
|
12
12
|
} from "./chunk-HT2XWSAJ.js";
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
} from "./chunk-64IF634X.js";
|
|
16
16
|
import {
|
|
17
17
|
ensureLink
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J2WXMIAP.js";
|
|
19
19
|
import {
|
|
20
20
|
pullCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-EN2JH6AK.js";
|
|
22
22
|
import {
|
|
23
23
|
help
|
|
24
24
|
} from "./chunk-ZX2FSPWV.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
envPullCommandLogic,
|
|
29
29
|
humanizePath,
|
|
30
30
|
parseTarget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6FUU7WW5.js";
|
|
32
32
|
import {
|
|
33
33
|
TelemetryClient
|
|
34
34
|
} from "./chunk-ECCWJHC6.js";
|