vercel 59.11.2 → 59.11.7
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-BKSHWTPX.js → add-KSJQYR5C.js} +23 -18
- package/dist/chunks/{add-RBW7QITR.js → add-PERLOALD.js} +37 -23
- package/dist/chunks/{add-HPLJZFM2.js → add-WU2QYHYL.js} +23 -18
- package/dist/chunks/{build-V4ZLAJWB.js → build-F3J6FLPD.js} +23 -18
- package/dist/chunks/{chunk-NGGLYKNU.js → chunk-26CU4Q3C.js} +3 -115
- package/dist/chunks/{chunk-QFAS4OVW.js → chunk-2JIX6UMI.js} +3 -84
- package/dist/chunks/chunk-2TSBB22D.js +14059 -0
- package/dist/chunks/chunk-332LMJLZ.js +16014 -0
- package/dist/chunks/{chunk-AYLY3ZVL.js → chunk-3VM7HWF6.js} +2 -2
- package/dist/chunks/chunk-4IALDGB7.js +22 -0
- package/dist/chunks/chunk-4IVSM24H.js +522 -0
- package/dist/chunks/{chunk-5XECIWME.js → chunk-5NF5HOBJ.js} +5 -3
- package/dist/chunks/chunk-6E6KPBXY.js +43 -0
- package/dist/chunks/chunk-7KROIXQM.js +59 -0
- package/dist/chunks/{chunk-ASBP32T6.js → chunk-7MRDIPJY.js} +1 -1
- package/dist/chunks/chunk-A5JZS6ZN.js +92 -0
- package/dist/chunks/{chunk-7ST552E3.js → chunk-AKLTIZCU.js} +1 -1
- package/dist/chunks/{chunk-26XDDLXM.js → chunk-ARU7VBKR.js} +2 -2
- package/dist/chunks/chunk-B5XLQKHI.js +849 -0
- package/dist/chunks/chunk-C762AAVU.js +137 -0
- package/dist/chunks/{chunk-WA2SJE5S.js → chunk-CEDN47PH.js} +4 -4
- package/dist/chunks/{chunk-ONRLTUP2.js → chunk-CNDPIHY5.js} +24 -22
- package/dist/chunks/{chunk-BMKU5KEL.js → chunk-CV5YC2EN.js} +1 -1
- package/dist/chunks/chunk-DBYHS3CK.js +257 -0
- package/dist/chunks/{chunk-HDBQPBL6.js → chunk-DSTNNQVV.js} +12 -8
- package/dist/chunks/{chunk-QAT3CW4G.js → chunk-EFYMIIER.js} +2 -2
- package/dist/chunks/{chunk-NBW3BWOJ.js → chunk-EPOLDWRA.js} +2 -2
- package/dist/chunks/{chunk-B4TXCKXE.js → chunk-EZQDYIVB.js} +10 -8
- package/dist/chunks/{chunk-2EAIC3SH.js → chunk-FL4JLNT2.js} +8 -8
- package/dist/chunks/chunk-FRVG4OW3.js +7438 -0
- package/dist/chunks/{chunk-FKDO3CM4.js → chunk-FVNJTRCE.js} +17 -13
- package/dist/chunks/chunk-FVT74RZ5.js +1536 -0
- package/dist/chunks/chunk-G3PXSXIB.js +18188 -0
- package/dist/chunks/chunk-G5FBSUL4.js +822 -0
- package/dist/chunks/{chunk-FRAXI2WT.js → chunk-GCVXKRR5.js} +3 -3
- package/dist/chunks/chunk-GHKJAK5V.js +1288 -0
- package/dist/chunks/{chunk-Q5K5DEOK.js → chunk-GUU4Z2AQ.js} +42 -28
- package/dist/chunks/{chunk-OQ3C5VXZ.js → chunk-GVNCVKCI.js} +4 -2
- package/dist/chunks/chunk-HB4UKFDO.js +1295 -0
- package/dist/chunks/chunk-HRXRELD3.js +338 -0
- package/dist/chunks/{chunk-IJ4X426J.js → chunk-IIMSID24.js} +1 -1
- package/dist/chunks/{chunk-O75LSD3C.js → chunk-JSD4EZL3.js} +1 -1
- package/dist/chunks/{chunk-7AEEQOD4.js → chunk-K3RED3VO.js} +1 -1
- package/dist/chunks/{chunk-RSEAADCE.js → chunk-KEKR7OCB.js} +6 -4
- package/dist/chunks/{chunk-3T7WSWZH.js → chunk-KFWQ3EFH.js} +1 -1
- package/dist/chunks/{chunk-L3UXB2CW.js → chunk-KW7BS25T.js} +1 -1
- package/dist/chunks/{chunk-RO44KX6Y.js → chunk-N4QHMXOO.js} +11 -7
- package/dist/chunks/{chunk-XRWOTCDO.js → chunk-ND5CF2H3.js} +1 -1
- package/dist/chunks/{chunk-RSJBU3ON.js → chunk-NSOYO6JQ.js} +35 -27
- package/dist/chunks/{chunk-RKDCNQ4S.js → chunk-NW34PW6V.js} +3 -105
- package/dist/chunks/{chunk-C5HKWXRR.js → chunk-OAMU5QO6.js} +1 -1
- package/dist/chunks/{chunk-MTWHQEXI.js → chunk-OIH6FP5Y.js} +5 -3
- package/dist/chunks/chunk-P7VSBDR4.js +827 -0
- package/dist/chunks/chunk-PEC3CQSK.js +90 -0
- package/dist/chunks/{chunk-QDV5LZ4Q.js → chunk-PFM75KY3.js} +12 -8
- package/dist/chunks/chunk-PJXMXMCO.js +81 -0
- package/dist/chunks/chunk-PNGVSHR3.js +40 -0
- package/dist/chunks/{chunk-TPATD2MM.js → chunk-QHS645AZ.js} +14 -6
- package/dist/chunks/{chunk-OTXE7MHI.js → chunk-QKX7WKIN.js} +8 -6
- package/dist/chunks/chunk-QOPTXV4G.js +417 -0
- package/dist/chunks/chunk-RN6V5ODW.js +114 -0
- package/dist/chunks/chunk-RVBZ64EQ.js +52 -0
- package/dist/chunks/chunk-SHFNEZVI.js +49 -0
- package/dist/chunks/{chunk-OO3OF6MK.js → chunk-TGNEG57M.js} +44 -15
- package/dist/chunks/{chunk-WNAKOXGK.js → chunk-TO7QZGYK.js} +1 -1
- package/dist/chunks/chunk-UARGTFCT.js +875 -0
- package/dist/chunks/{chunk-FWKSJYDV.js → chunk-UG2WOB5L.js} +1 -1
- package/dist/chunks/chunk-V4RMJKQP.js +36 -0
- package/dist/chunks/chunk-VT3Z7HF6.js +233 -0
- package/dist/chunks/chunk-VUS2JQB2.js +121 -0
- package/dist/chunks/{chunk-6CZZ3SH3.js → chunk-VYC45Q4Z.js} +2 -2
- package/dist/chunks/{chunk-4KVJ2M4J.js → chunk-WL6QYSGD.js} +78 -17
- package/dist/chunks/{chunk-FZRBF25Y.js → chunk-X7DBBZQD.js} +4 -4
- package/dist/chunks/{chunk-2NJJ2K5S.js → chunk-XD4DCYMX.js} +6 -6
- package/dist/chunks/{chunk-ZSFEACZU.js → chunk-XFF5TGRA.js} +1 -1
- package/dist/chunks/{chunk-6TBDHUXK.js → chunk-XIFATBH5.js} +21 -15
- package/dist/chunks/chunk-XNIZGCN5.js +58 -0
- package/dist/chunks/chunk-XPJLPUKO.js +117 -0
- package/dist/chunks/{chunk-FXD67VN5.js → chunk-XUAWTW4W.js} +1 -1
- package/dist/chunks/{chunk-I526H4AS.js → chunk-YS76T533.js} +2 -2
- package/dist/chunks/chunk-Z7JWYFOY.js +58 -0
- package/dist/chunks/{chunk-6JPVTPTU.js → chunk-ZBEECGFD.js} +3 -3
- package/dist/chunks/{chunk-52QYYTM5.js → chunk-ZDU2NODC.js} +3 -127
- package/dist/chunks/chunk-ZW6HETRE.js +97 -0
- package/dist/chunks/{clear-IYGWCNXT.js → clear-XUQO4ZTK.js} +23 -18
- package/dist/chunks/{compile-vercel-config-NEEBZRUJ.js → compile-vercel-config-D3ARNHTN.js} +8 -11
- package/dist/chunks/{config-6DS6BBR2.js → config-37OAE7QJ.js} +22 -17
- package/dist/chunks/{config-NTB5EMV4.js → config-MEDLXUVM.js} +23 -18
- package/dist/chunks/{delete-LLC2OGHA.js → delete-3N3YZZOF.js} +16 -12
- package/dist/chunks/{delete-LSGID5FV.js → delete-VSWDZ2SW.js} +19 -14
- package/dist/chunks/detect-projects-ODNU4PK2.js +18 -0
- package/dist/chunks/detect-services-TESZCQWG.js +40 -0
- package/dist/chunks/{disable-H4EXEQK7.js → disable-A4FLFMC7.js} +17 -13
- package/dist/chunks/{discard-FG6VKHWN.js → discard-CHGFULBZ.js} +17 -13
- package/dist/chunks/{edit-YE7D3CPJ.js → edit-JZ63AJYQ.js} +17 -13
- package/dist/chunks/{edit-BZJSGUHT.js → edit-MHSYAPDR.js} +19 -15
- package/dist/chunks/{enable-6ESD4QTE.js → enable-KD46SEC5.js} +17 -13
- package/dist/chunks/{exec-XH4K34JM.js → exec-4IPHZ55G.js} +9 -5
- package/dist/chunks/{export-QWSJROLG.js → export-42QZLBSN.js} +16 -13
- package/dist/chunks/{image-LTHQMKFG.js → image-GP4H73A2.js} +11 -8
- package/dist/chunks/{import-builders-6O7ILGQJ.js → import-builders-6TBLMPL2.js} +18 -13
- package/dist/chunks/{inspect-2C4ZSNYC.js → inspect-5FMWMY3C.js} +22 -18
- package/dist/chunks/{inspect-N6SMHV3Z.js → inspect-MUVK6MMT.js} +18 -14
- package/dist/chunks/{inspect-F7KCTHIL.js → inspect-Q3DWW7MC.js} +22 -18
- package/dist/chunks/{inspect-TWDPMXZ5.js → inspect-QFXAOUL4.js} +18 -14
- package/dist/chunks/{inspect-ICKNCDMT.js → inspect-RNTSYM6O.js} +18 -14
- package/dist/chunks/{list-NWTIJF3L.js → list-IHHIPXEC.js} +20 -16
- package/dist/chunks/{list-IPGQVBJO.js → list-JRNWLSO5.js} +16 -14
- package/dist/chunks/{list-DS7ZOUXA.js → list-XHD5DLEX.js} +23 -19
- package/dist/chunks/{login-F7A7ONKC.js → login-PCT6KFWY.js} +23 -18
- package/dist/chunks/{ls-NBDX3MKN.js → ls-GPEHEFCF.js} +24 -18
- package/dist/chunks/{ls-RNGO257R.js → ls-PF7F4PP4.js} +27 -23
- package/dist/chunks/{ls-XINES6PL.js → ls-PQZ2RIDX.js} +24 -18
- package/dist/chunks/{ls-D4TUDBIH.js → ls-SVOHC3XW.js} +24 -18
- package/dist/chunks/{ls-2QW3ZSM6.js → ls-TGHCCARZ.js} +24 -18
- package/dist/chunks/{ls-LSJEUPFX.js → ls-VRIH5WA3.js} +22 -15
- package/dist/chunks/{open-VRQDWZAW.js → open-E7DEKYDU.js} +18 -13
- package/dist/chunks/{permissions-6C5C7TEV.js → permissions-JKOONWVL.js} +14 -11
- package/dist/chunks/{publish-GVIZPNLN.js → publish-EDDELDE5.js} +17 -13
- package/dist/chunks/pull-646WEVDE.js +45 -0
- package/dist/chunks/{push-EFZ5P5Z6.js → push-LTNW5OVD.js} +23 -18
- package/dist/chunks/{query-GBS2PIT4.js → query-LU4N6KPO.js} +22 -19
- package/dist/chunks/{reorder-TN65IFRL.js → reorder-22PKJMZP.js} +17 -13
- package/dist/chunks/{reply-DYVEV3PY.js → reply-SF2EZMVZ.js} +17 -13
- package/dist/chunks/{resolve-JAWFBPUM.js → resolve-ZCZGXTOT.js} +16 -12
- package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +36 -0
- package/dist/chunks/{restore-TJVMHUBQ.js → restore-VJAWZXB4.js} +17 -13
- package/dist/chunks/{rm-7XACNZ2U.js → rm-KN2QFCKO.js} +23 -18
- package/dist/chunks/{rm-REJVXALW.js → rm-KVEAJPRE.js} +23 -18
- package/dist/chunks/{rm-CBPNMSRP.js → rm-OSZ5FZUM.js} +23 -16
- package/dist/chunks/{rm-5B5VHWWN.js → rm-W722Q2AO.js} +21 -18
- package/dist/chunks/{rm-HQ5CYNJA.js → rm-WNPGTUBH.js} +23 -18
- package/dist/chunks/{routes-2OLIBRYX.js → routes-QVMBXOSX.js} +7 -3
- package/dist/chunks/{rule-inspect-ZSTDDFID.js → rule-inspect-25Z6SNX3.js} +28 -24
- package/dist/chunks/{rules-VGV4M4KY.js → rules-65LKAQ35.js} +15 -12
- package/dist/chunks/{schema-45SJNY5L.js → schema-7D6IGJEJ.js} +9 -7
- package/dist/chunks/{schema-GMTQOQCV.js → schema-NXCW4M75.js} +19 -17
- package/dist/chunks/{set-Z5FO2FCC.js → set-FYJVKMPV.js} +20 -13
- package/dist/chunks/setup-and-link-KXPZE32P.js +65 -0
- package/dist/chunks/{tags-SDRXWJ63.js → tags-ANIRP5E3.js} +10 -7
- package/dist/chunks/{types-JGANJ5EQ.js → types-4GAJ7XQQ.js} +9 -7
- package/dist/chunks/{update-JBQBC3IV.js → update-UT6CTKVG.js} +32 -19
- package/dist/commands/build/index.js +86 -49
- package/dist/commands/deploy/index.js +75 -66
- package/dist/commands/dev/index.js +98 -52
- package/dist/commands/env/index.js +67 -43
- package/dist/commands/link/index.js +48 -27
- package/dist/commands/list/index.js +33 -22
- package/dist/commands-bulk.js +1659 -1287
- package/dist/index.js +62 -40
- package/dist/version.mjs +1 -1
- package/package.json +46 -46
- package/dist/chunks/chunk-WYU64FLP.js +0 -62123
- package/dist/chunks/chunk-XNFHNTS2.js +0 -2939
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
__commonJS
|
|
9
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js
|
|
12
|
+
var require_wrappy = __commonJS({
|
|
13
|
+
"../../node_modules/.pnpm/wrappy@1.0.2/node_modules/wrappy/wrappy.js"(exports, module) {
|
|
14
|
+
module.exports = wrappy;
|
|
15
|
+
function wrappy(fn, cb) {
|
|
16
|
+
if (fn && cb)
|
|
17
|
+
return wrappy(fn)(cb);
|
|
18
|
+
if (typeof fn !== "function")
|
|
19
|
+
throw new TypeError("need wrapper function");
|
|
20
|
+
Object.keys(fn).forEach(function(k) {
|
|
21
|
+
wrapper[k] = fn[k];
|
|
22
|
+
});
|
|
23
|
+
return wrapper;
|
|
24
|
+
function wrapper() {
|
|
25
|
+
var args = new Array(arguments.length);
|
|
26
|
+
for (var i = 0; i < args.length; i++) {
|
|
27
|
+
args[i] = arguments[i];
|
|
28
|
+
}
|
|
29
|
+
var ret = fn.apply(this, args);
|
|
30
|
+
var cb2 = args[args.length - 1];
|
|
31
|
+
if (typeof ret === "function" && ret !== cb2) {
|
|
32
|
+
Object.keys(cb2).forEach(function(k) {
|
|
33
|
+
ret[k] = cb2[k];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// ../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js
|
|
43
|
+
var require_once = __commonJS({
|
|
44
|
+
"../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js"(exports, module) {
|
|
45
|
+
var wrappy = require_wrappy();
|
|
46
|
+
module.exports = wrappy(once);
|
|
47
|
+
module.exports.strict = wrappy(onceStrict);
|
|
48
|
+
once.proto = once(function() {
|
|
49
|
+
Object.defineProperty(Function.prototype, "once", {
|
|
50
|
+
value: function() {
|
|
51
|
+
return once(this);
|
|
52
|
+
},
|
|
53
|
+
configurable: true
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(Function.prototype, "onceStrict", {
|
|
56
|
+
value: function() {
|
|
57
|
+
return onceStrict(this);
|
|
58
|
+
},
|
|
59
|
+
configurable: true
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
function once(fn) {
|
|
63
|
+
var f = function() {
|
|
64
|
+
if (f.called)
|
|
65
|
+
return f.value;
|
|
66
|
+
f.called = true;
|
|
67
|
+
return f.value = fn.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
f.called = false;
|
|
70
|
+
return f;
|
|
71
|
+
}
|
|
72
|
+
function onceStrict(fn) {
|
|
73
|
+
var f = function() {
|
|
74
|
+
if (f.called)
|
|
75
|
+
throw new Error(f.onceError);
|
|
76
|
+
f.called = true;
|
|
77
|
+
return f.value = fn.apply(this, arguments);
|
|
78
|
+
};
|
|
79
|
+
var name = fn.name || "Function wrapped with `once`";
|
|
80
|
+
f.onceError = name + " shouldn't be called more than once";
|
|
81
|
+
f.called = false;
|
|
82
|
+
return f;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
require_wrappy,
|
|
89
|
+
require_once
|
|
90
|
+
};
|
|
@@ -7,25 +7,29 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
outputError,
|
|
9
9
|
writeJsonError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KFWQ3EFH.js";
|
|
11
11
|
import {
|
|
12
|
-
detectExplicitScope,
|
|
13
|
-
getLinkedProject,
|
|
14
|
-
getScope,
|
|
15
12
|
resolveProjectContext
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7KROIXQM.js";
|
|
14
|
+
import {
|
|
15
|
+
detectExplicitScope,
|
|
16
|
+
getScope
|
|
17
|
+
} from "./chunk-4IVSM24H.js";
|
|
17
18
|
import {
|
|
18
19
|
printError
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3VM7HWF6.js";
|
|
21
|
+
import {
|
|
22
|
+
getLinkedProject
|
|
23
|
+
} from "./chunk-2TSBB22D.js";
|
|
20
24
|
import {
|
|
21
25
|
isAPIError
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CV5YC2EN.js";
|
|
23
27
|
import {
|
|
24
28
|
getCommandName
|
|
25
29
|
} from "./chunk-Q2DGFCO7.js";
|
|
26
30
|
import {
|
|
27
31
|
output_manager_default
|
|
28
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2JIX6UMI.js";
|
|
29
33
|
|
|
30
34
|
// src/commands/comments/errors.ts
|
|
31
35
|
function handleCommentsParseError(err, subcommandName) {
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
AGENT_REASON,
|
|
9
|
+
AGENT_STATUS
|
|
10
|
+
} from "./chunk-VUS2JQB2.js";
|
|
11
|
+
import {
|
|
12
|
+
getScope
|
|
13
|
+
} from "./chunk-4IVSM24H.js";
|
|
14
|
+
import {
|
|
15
|
+
getOrgById
|
|
16
|
+
} from "./chunk-2TSBB22D.js";
|
|
17
|
+
import {
|
|
18
|
+
buildCommandWithGlobalFlags,
|
|
19
|
+
outputAgentError,
|
|
20
|
+
shouldEmitNonInteractiveCommandError
|
|
21
|
+
} from "./chunk-26CU4Q3C.js";
|
|
22
|
+
import {
|
|
23
|
+
output_manager_default
|
|
24
|
+
} from "./chunk-2JIX6UMI.js";
|
|
25
|
+
|
|
26
|
+
// src/util/projects/project-not-found-error.ts
|
|
27
|
+
async function printProjectNotFoundError(client, projectNameOrId, commandName, orgId) {
|
|
28
|
+
let contextName;
|
|
29
|
+
try {
|
|
30
|
+
if (orgId) {
|
|
31
|
+
const org = await getOrgById(client, orgId);
|
|
32
|
+
contextName = org?.slug ?? orgId;
|
|
33
|
+
} else {
|
|
34
|
+
const scope = await getScope(client);
|
|
35
|
+
contextName = scope.contextName;
|
|
36
|
+
}
|
|
37
|
+
} catch (err) {
|
|
38
|
+
contextName = orgId;
|
|
39
|
+
output_manager_default.debug(`Scope lookup failed during error reporting: ${err}`);
|
|
40
|
+
}
|
|
41
|
+
const scopeClause = contextName ? ` (${contextName})` : "";
|
|
42
|
+
const headline = `Project "${projectNameOrId}" was not found in the current scope${scopeClause}.`;
|
|
43
|
+
output_manager_default.error(
|
|
44
|
+
`${headline}
|
|
45
|
+
|
|
46
|
+
If it lives in a different team or account:
|
|
47
|
+
\u2022 Retry with \`--scope <team-slug|your-username>\`, or
|
|
48
|
+
\u2022 Run \`vercel switch <team-slug|your-username>\` to change scope.
|
|
49
|
+
|
|
50
|
+
List accessible teams with \`vercel teams ls\`.`
|
|
51
|
+
);
|
|
52
|
+
if (!shouldEmitNonInteractiveCommandError(client)) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const retryWithScope = buildCommandWithGlobalFlags(
|
|
56
|
+
client.argv,
|
|
57
|
+
`${commandName} --project ${projectNameOrId} --scope <team-slug>`
|
|
58
|
+
);
|
|
59
|
+
outputAgentError(
|
|
60
|
+
client,
|
|
61
|
+
{
|
|
62
|
+
status: AGENT_STATUS.ERROR,
|
|
63
|
+
reason: AGENT_REASON.PROJECT_NOT_FOUND,
|
|
64
|
+
message: `${headline} If it lives in a different team or account, retry with --scope <team-slug|your-username> or run \`vercel switch <team-slug|your-username>\` to change scope.`,
|
|
65
|
+
...contextName ? { scope: contextName } : {},
|
|
66
|
+
next: [
|
|
67
|
+
{ command: "vercel teams ls", when: "list accessible teams" },
|
|
68
|
+
{ command: retryWithScope, when: "retry with a specific team" },
|
|
69
|
+
{
|
|
70
|
+
command: "vercel switch <team-slug>",
|
|
71
|
+
when: "change the default scope"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
1
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
printProjectNotFoundError
|
|
81
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
output_manager_default
|
|
9
|
+
} from "./chunk-2JIX6UMI.js";
|
|
10
|
+
import {
|
|
11
|
+
require_source
|
|
12
|
+
} from "./chunk-S7KYDPEM.js";
|
|
13
|
+
import {
|
|
14
|
+
__toESM
|
|
15
|
+
} from "./chunk-TZ2YI2VH.js";
|
|
16
|
+
|
|
17
|
+
// src/util/projects/format-project.ts
|
|
18
|
+
var import_chalk = __toESM(require_source(), 1);
|
|
19
|
+
function formatProject(orgSlug, projectSlug, options) {
|
|
20
|
+
const orgProjectSlug = `${orgSlug}/${projectSlug}`;
|
|
21
|
+
const projectUrl = `https://vercel.com/${orgProjectSlug}`;
|
|
22
|
+
const projectSlugLink = output_manager_default.link(import_chalk.default.bold(orgProjectSlug), projectUrl, {
|
|
23
|
+
fallback: () => import_chalk.default.bold(orgProjectSlug),
|
|
24
|
+
color: false,
|
|
25
|
+
...options
|
|
26
|
+
});
|
|
27
|
+
return projectSlugLink;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// src/util/target/standard-environments.ts
|
|
31
|
+
var STANDARD_ENVIRONMENTS = [
|
|
32
|
+
"production",
|
|
33
|
+
"preview",
|
|
34
|
+
"development"
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
formatProject,
|
|
39
|
+
STANDARD_ENVIRONMENTS
|
|
40
|
+
};
|
|
@@ -5,15 +5,23 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
require_dist as
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
require_dist as require_dist4
|
|
9
|
+
} from "./chunk-UARGTFCT.js";
|
|
10
|
+
import {
|
|
11
|
+
require_dist2 as require_dist3
|
|
12
|
+
} from "./chunk-332LMJLZ.js";
|
|
13
|
+
import {
|
|
14
|
+
require_dist as require_dist2
|
|
15
|
+
} from "./chunk-G3PXSXIB.js";
|
|
16
|
+
import {
|
|
11
17
|
require_lib
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2TSBB22D.js";
|
|
19
|
+
import {
|
|
20
|
+
output_manager_default
|
|
21
|
+
} from "./chunk-2JIX6UMI.js";
|
|
13
22
|
import {
|
|
14
|
-
output_manager_default,
|
|
15
23
|
require_dist
|
|
16
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZW6HETRE.js";
|
|
17
25
|
import {
|
|
18
26
|
__commonJS,
|
|
19
27
|
__require,
|
|
@@ -6,21 +6,23 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
isJSONObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GUU4Z2AQ.js";
|
|
10
|
+
import {
|
|
11
|
+
AGENT_REASON
|
|
12
|
+
} from "./chunk-VUS2JQB2.js";
|
|
10
13
|
import {
|
|
11
14
|
getProjectByNameOrId
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2TSBB22D.js";
|
|
13
16
|
import {
|
|
14
|
-
AGENT_REASON,
|
|
15
17
|
outputAgentError
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-26CU4Q3C.js";
|
|
17
19
|
import {
|
|
18
20
|
ProjectNotFound,
|
|
19
21
|
isAPIError
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CV5YC2EN.js";
|
|
21
23
|
import {
|
|
22
24
|
output_manager_default
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2JIX6UMI.js";
|
|
24
26
|
|
|
25
27
|
// src/commands/alerts/rules/custom-alert-query.ts
|
|
26
28
|
async function resolveCustomAlertProjectName(client, scope, projectId) {
|