@shopify/cli 3.67.3 → 3.68.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/{chunk-7BK74JM2.js → chunk-4H7GRGC6.js} +3 -3
- package/dist/{chunk-OVBHC7XZ.js → chunk-5VZ6BLBM.js} +3 -3
- package/dist/{chunk-ESCACI7K.js → chunk-6IS7OFWG.js} +5 -5
- package/dist/{chunk-67E32Z72.js → chunk-7PUJMPXN.js} +5528 -17168
- package/dist/{chunk-XHO4O3WD.js → chunk-A3DV6VXO.js} +2 -2
- package/dist/{chunk-QQWDDZPJ.js → chunk-C4FBYE7F.js} +4 -4
- package/dist/{chunk-CL6KB3RG.js → chunk-D72SCNZ2.js} +6 -2
- package/dist/chunk-DD5ULVKP.js +103 -0
- package/dist/{chunk-FMTK2DLI.js → chunk-DMM6NVLV.js} +4 -4
- package/dist/{chunk-MP5JBUFB.js → chunk-E2OAY724.js} +2 -2
- package/dist/{chunk-YZHXAE4H.js → chunk-EUBA2XGP.js} +4 -4
- package/dist/{chunk-QK4M5NLW.js → chunk-FIAUTHMT.js} +2 -2
- package/dist/{chunk-SK3QXUXV.js → chunk-FKQTUQ3O.js} +4 -4
- package/dist/{chunk-Y6XYGV3K.js → chunk-G47SEBU3.js} +3 -3
- package/dist/{chunk-IVO3C5LM.js → chunk-GDKBDEZV.js} +3 -3
- package/dist/{chunk-UOH7XDLM.js → chunk-HTDUPJH5.js} +3 -3
- package/dist/{chunk-SAKJRSNZ.js → chunk-IL455HI5.js} +3 -3
- package/dist/{chunk-J44K26AK.js → chunk-INEJACZ7.js} +3 -3
- package/dist/{chunk-X2LIPDBQ.js → chunk-JAH3NBCG.js} +4 -4
- package/dist/{chunk-SERYSNVE.js → chunk-JAQZDU4S.js} +2 -2
- package/dist/{chunk-ADIIAXPI.js → chunk-JJOZP7G6.js} +3 -3
- package/dist/{chunk-UE5ILNA5.js → chunk-JR6ZN4TY.js} +4 -4
- package/dist/{chunk-5GMBDXCT.js → chunk-MXZ6B3TP.js} +2 -2
- package/dist/{chunk-EMUNMNK7.js → chunk-NCUKAORS.js} +6 -6
- package/dist/{chunk-NBY455BA.js → chunk-OBX5DIH4.js} +4 -4
- package/dist/{chunk-FPTBJGSU.js → chunk-QIBFYG6F.js} +3 -3
- package/dist/{chunk-NV2K2JNI.js → chunk-RUR45G5U.js} +15 -3
- package/dist/{chunk-VVCAHOHL.js → chunk-UCYJX4VB.js} +2 -2
- package/dist/{chunk-UI7DIACQ.js → chunk-VVY6VJR6.js} +2 -2
- package/dist/{chunk-AYJMV2UJ.js → chunk-WJBW5QHV.js} +2 -2
- package/dist/chunk-WUA6LTEH.js +15959 -0
- package/dist/{chunk-F2FF5RRS.js → chunk-XCGES3AJ.js} +3 -3
- package/dist/{chunk-GBZFBWCM.js → chunk-YKH4ILAB.js} +14 -12
- package/dist/{chunk-UTJGWPED.js → chunk-ZJZ3SGOJ.js} +2 -2
- package/dist/cli/commands/auth/logout.js +11 -12
- package/dist/cli/commands/auth/logout.test.js +12 -13
- package/dist/cli/commands/debug/command-flags.js +10 -9
- package/dist/cli/commands/demo/catalog.js +11 -11
- package/dist/cli/commands/demo/generate-file.js +11 -11
- package/dist/cli/commands/demo/index.js +11 -11
- package/dist/cli/commands/demo/print-ai-prompt.js +11 -11
- package/dist/cli/commands/docs/generate.js +10 -9
- package/dist/cli/commands/docs/generate.test.js +10 -9
- package/dist/cli/commands/help.js +10 -9
- package/dist/cli/commands/kitchen-sink/async.js +11 -10
- package/dist/cli/commands/kitchen-sink/async.test.js +11 -10
- package/dist/cli/commands/kitchen-sink/index.js +13 -12
- package/dist/cli/commands/kitchen-sink/index.test.js +13 -12
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -10
- package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -10
- package/dist/cli/commands/kitchen-sink/static.js +11 -10
- package/dist/cli/commands/kitchen-sink/static.test.js +11 -10
- package/dist/cli/commands/search.js +11 -10
- package/dist/cli/commands/upgrade.js +11 -10
- package/dist/cli/commands/version.js +11 -10
- package/dist/cli/commands/version.test.js +11 -10
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +3 -3
- package/dist/cli/services/commands/version.test.js +4 -4
- package/dist/cli/services/demo.js +2 -2
- package/dist/cli/services/demo.test.js +3 -3
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-ROCHTOS5.js → custom-oclif-loader-Y5TLP3GI.js} +2 -2
- package/dist/{error-handler-GT7C27BQ.js → error-handler-EORUUIBK.js} +9 -8
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +8 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +500 -605
- package/dist/{local-T3UMODTX.js → local-4NQ3UGM2.js} +4 -2
- package/dist/{node-V2ZJPWY5.js → node-NWOSUD3V.js} +12 -13
- package/dist/{node-package-manager-PYU7QL5O.js → node-package-manager-D7JIOBLM.js} +5 -3
- package/dist/{system-CEM4NSPG.js → system-WDT2XUAD.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-KGCQLCOJ.js → ui-JUVEDXYN.js} +2 -2
- package/dist/{workerd-TOCBV52P.js → workerd-VWTWLJIV.js} +12 -13
- package/oclif.manifest.json +15 -52
- package/package.json +6 -6
- package/dist/chunk-3E44DPAU.js +0 -118
- package/dist/chunk-EMJI2MUZ.js +0 -4244
- package/dist/chunk-LCWH3FW5.js +0 -33
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/dist/public/common/version.js
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.68.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-A3DV6VXO.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JJOZP7G6.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72SCNZ2.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
Upgrade
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-C4FBYE7F.js.map
|
|
@@ -25403,6 +25403,9 @@ function codespacePortForwardingDomain(env2 = process.env) {
|
|
|
25403
25403
|
function isCloudEnvironment(env2 = process.env) {
|
|
25404
25404
|
return cloudEnvironment(env2).platform !== "localhost";
|
|
25405
25405
|
}
|
|
25406
|
+
function themeToken(env2 = process.env) {
|
|
25407
|
+
return env2[environmentVariables.themeToken];
|
|
25408
|
+
}
|
|
25406
25409
|
function cloudEnvironment(env2 = process.env) {
|
|
25407
25410
|
return isSet(env2[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env2[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env2[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : isSpin(env2) ? { platform: "spin", editor: !1 } : { platform: "localhost", editor: !1 };
|
|
25408
25411
|
}
|
|
@@ -29805,7 +29808,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29805
29808
|
try {
|
|
29806
29809
|
await getAndSet();
|
|
29807
29810
|
} catch (error) {
|
|
29808
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29811
|
+
let { sendErrorToBugsnag } = await import("./error-handler-EORUUIBK.js");
|
|
29809
29812
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29810
29813
|
}
|
|
29811
29814
|
}, durationStack = [];
|
|
@@ -31643,6 +31646,7 @@ export {
|
|
|
31643
31646
|
codespaceURL,
|
|
31644
31647
|
codespacePortForwardingDomain,
|
|
31645
31648
|
isCloudEnvironment,
|
|
31649
|
+
themeToken,
|
|
31646
31650
|
cloudEnvironment,
|
|
31647
31651
|
hasGit,
|
|
31648
31652
|
ciPlatform,
|
|
@@ -31762,4 +31766,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31762
31766
|
* LICENSE file in the root directory of this source tree.
|
|
31763
31767
|
*)
|
|
31764
31768
|
*/
|
|
31765
|
-
//# sourceMappingURL=chunk-
|
|
31769
|
+
//# sourceMappingURL=chunk-D72SCNZ2.js.map
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ensureAuthenticated,
|
|
3
|
+
exchangeCustomPartnerToken,
|
|
4
|
+
getPartnersToken,
|
|
5
|
+
isThemeAccessSession,
|
|
6
|
+
nonRandomUUID,
|
|
7
|
+
normalizeStoreFqdn,
|
|
8
|
+
remove,
|
|
9
|
+
setLastSeenAuthMethod,
|
|
10
|
+
setLastSeenUserIdAfterAuth
|
|
11
|
+
} from "./chunk-7PUJMPXN.js";
|
|
12
|
+
import {
|
|
13
|
+
BugError,
|
|
14
|
+
outputContent,
|
|
15
|
+
outputDebug,
|
|
16
|
+
outputToken
|
|
17
|
+
} from "./chunk-D72SCNZ2.js";
|
|
18
|
+
import {
|
|
19
|
+
init_cjs_shims
|
|
20
|
+
} from "./chunk-POZ5MGPT.js";
|
|
21
|
+
|
|
22
|
+
// ../cli-kit/dist/public/node/session.js
|
|
23
|
+
init_cjs_shims();
|
|
24
|
+
async function ensureAuthenticatedPartners(scopes = [], env = process.env, options = {}) {
|
|
25
|
+
outputDebug(outputContent`Ensuring that the user is authenticated with the Partners API with the following scopes:
|
|
26
|
+
${outputToken.json(scopes)}
|
|
27
|
+
`);
|
|
28
|
+
let envToken = getPartnersToken();
|
|
29
|
+
if (envToken) {
|
|
30
|
+
let result = await exchangeCustomPartnerToken(envToken);
|
|
31
|
+
return { token: result.accessToken, userId: result.userId };
|
|
32
|
+
}
|
|
33
|
+
let tokens = await ensureAuthenticated({ partnersApi: { scopes } }, env, options);
|
|
34
|
+
if (!tokens.partners)
|
|
35
|
+
throw new BugError("No partners token found after ensuring authenticated");
|
|
36
|
+
return { token: tokens.partners, userId: tokens.userId };
|
|
37
|
+
}
|
|
38
|
+
async function ensureAuthenticatedAppManagement(scopes = [], env = process.env, options = {}) {
|
|
39
|
+
outputDebug(outputContent`Ensuring that the user is authenticated with the App Management API with the following scopes:
|
|
40
|
+
${outputToken.json(scopes)}
|
|
41
|
+
`);
|
|
42
|
+
let tokens = await ensureAuthenticated({ appManagementApi: { scopes } }, env, options);
|
|
43
|
+
if (!tokens)
|
|
44
|
+
throw new BugError("No App Management token found after ensuring authenticated");
|
|
45
|
+
return { token: tokens.appManagement, userId: tokens.userId };
|
|
46
|
+
}
|
|
47
|
+
async function ensureAuthenticatedStorefront(scopes = [], password = void 0, forceRefresh = !1) {
|
|
48
|
+
if (password) {
|
|
49
|
+
let authMethod = isThemeAccessSession({ token: password, storeFqdn: "" }) ? "theme_access_token" : "custom_app_token";
|
|
50
|
+
return setLastSeenAuthMethod(authMethod), setLastSeenUserIdAfterAuth(nonRandomUUID(password)), password;
|
|
51
|
+
}
|
|
52
|
+
outputDebug(outputContent`Ensuring that the user is authenticated with the Storefront API with the following scopes:
|
|
53
|
+
${outputToken.json(scopes)}
|
|
54
|
+
`);
|
|
55
|
+
let tokens = await ensureAuthenticated({ storefrontRendererApi: { scopes } }, process.env, { forceRefresh });
|
|
56
|
+
if (!tokens.storefront)
|
|
57
|
+
throw new BugError("No storefront token found after ensuring authenticated");
|
|
58
|
+
return tokens.storefront;
|
|
59
|
+
}
|
|
60
|
+
async function ensureAuthenticatedAdmin(store, scopes = [], forceRefresh = !1, options = {}) {
|
|
61
|
+
outputDebug(outputContent`Ensuring that the user is authenticated with the Admin API with the following scopes for the store ${outputToken.raw(store)}:
|
|
62
|
+
${outputToken.json(scopes)}
|
|
63
|
+
`);
|
|
64
|
+
let tokens = await ensureAuthenticated({ adminApi: { scopes, storeFqdn: store } }, process.env, {
|
|
65
|
+
forceRefresh,
|
|
66
|
+
...options
|
|
67
|
+
});
|
|
68
|
+
if (!tokens.admin)
|
|
69
|
+
throw new BugError("No admin token found after ensuring authenticated");
|
|
70
|
+
return tokens.admin;
|
|
71
|
+
}
|
|
72
|
+
async function ensureAuthenticatedThemes(store, password, scopes = [], forceRefresh = !1) {
|
|
73
|
+
if (outputDebug(outputContent`Ensuring that the user is authenticated with the Theme API with the following scopes:
|
|
74
|
+
${outputToken.json(scopes)}
|
|
75
|
+
`), password) {
|
|
76
|
+
let session = { token: password, storeFqdn: await normalizeStoreFqdn(store) }, authMethod = isThemeAccessSession(session) ? "theme_access_token" : "custom_app_token";
|
|
77
|
+
return setLastSeenAuthMethod(authMethod), setLastSeenUserIdAfterAuth(nonRandomUUID(password)), session;
|
|
78
|
+
}
|
|
79
|
+
return ensureAuthenticatedAdmin(store, scopes, forceRefresh);
|
|
80
|
+
}
|
|
81
|
+
async function ensureAuthenticatedBusinessPlatform(scopes = []) {
|
|
82
|
+
outputDebug(outputContent`Ensuring that the user is authenticated with the Business Platform API with the following scopes:
|
|
83
|
+
${outputToken.json(scopes)}
|
|
84
|
+
`);
|
|
85
|
+
let tokens = await ensureAuthenticated({ businessPlatformApi: { scopes } }, process.env);
|
|
86
|
+
if (!tokens.businessPlatform)
|
|
87
|
+
throw new BugError("No business-platform token found after ensuring authenticated");
|
|
88
|
+
return tokens.businessPlatform;
|
|
89
|
+
}
|
|
90
|
+
function logout() {
|
|
91
|
+
return remove();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
ensureAuthenticatedPartners,
|
|
96
|
+
ensureAuthenticatedAppManagement,
|
|
97
|
+
ensureAuthenticatedStorefront,
|
|
98
|
+
ensureAuthenticatedAdmin,
|
|
99
|
+
ensureAuthenticatedThemes,
|
|
100
|
+
ensureAuthenticatedBusinessPlatform,
|
|
101
|
+
logout
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=chunk-DD5ULVKP.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-QSUS3GJF.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WJBW5QHV.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EUBA2XGP.js";
|
|
10
10
|
import {
|
|
11
11
|
outputInfo,
|
|
12
12
|
renderInfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D72SCNZ2.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -55,4 +55,4 @@ The demo should perform the following steps:
|
|
|
55
55
|
export {
|
|
56
56
|
PrintAIPrompt
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
58
|
+
//# sourceMappingURL=chunk-DMM6NVLV.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
renderDangerousConfirmationPrompt,
|
|
6
6
|
renderSelectPrompt,
|
|
7
7
|
renderTextPrompt
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D72SCNZ2.js";
|
|
9
9
|
import {
|
|
10
10
|
init_cjs_shims
|
|
11
11
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -176,4 +176,4 @@ async function prompts() {
|
|
|
176
176
|
export {
|
|
177
177
|
prompts
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-E2OAY724.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NCUKAORS.js";
|
|
5
5
|
import {
|
|
6
6
|
hashString
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7PUJMPXN.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
addPublicMetadata,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
renderWarning,
|
|
21
21
|
terminalSupportsPrompting,
|
|
22
22
|
underscore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-D72SCNZ2.js";
|
|
24
24
|
import {
|
|
25
25
|
require_lib
|
|
26
26
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -1682,4 +1682,4 @@ export {
|
|
|
1682
1682
|
encodeToml,
|
|
1683
1683
|
base_command_default
|
|
1684
1684
|
};
|
|
1685
|
-
//# sourceMappingURL=chunk-
|
|
1685
|
+
//# sourceMappingURL=chunk-EUBA2XGP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCollectedLogs,
|
|
3
3
|
collectedLogs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D72SCNZ2.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -33,4 +33,4 @@ function mockAndCaptureOutput() {
|
|
|
33
33
|
export {
|
|
34
34
|
mockAndCaptureOutput
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-FIAUTHMT.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-QSUS3GJF.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WJBW5QHV.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EUBA2XGP.js";
|
|
10
10
|
import {
|
|
11
11
|
AbortError,
|
|
12
12
|
fileExists,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readFile,
|
|
18
18
|
renderAutocompletePrompt,
|
|
19
19
|
writeFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D72SCNZ2.js";
|
|
21
21
|
import {
|
|
22
22
|
require_lib
|
|
23
23
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -113,4 +113,4 @@ async function selectSteps() {
|
|
|
113
113
|
export {
|
|
114
114
|
GenerateFile
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-FKQTUQ3O.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MXZ6B3TP.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
9
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -45,4 +45,4 @@ var import_core = __toESM(require_lib(), 1), Search = class _Search extends base
|
|
|
45
45
|
export {
|
|
46
46
|
Search
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-G47SEBU3.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EUBA2XGP.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D72SCNZ2.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -83,4 +83,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
|
|
|
83
83
|
export {
|
|
84
84
|
CommandFlags
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-GDKBDEZV.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UCYJX4VB.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkAsync
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-HTDUPJH5.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XCGES3AJ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
|
|
|
22
22
|
export {
|
|
23
23
|
Version
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-IL455HI5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RUR45G5U.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D72SCNZ2.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
@@ -140,4 +140,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
140
140
|
export {
|
|
141
141
|
upgrade
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=chunk-
|
|
143
|
+
//# sourceMappingURL=chunk-INEJACZ7.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DD5ULVKP.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72SCNZ2.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
Logout
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-JAH3NBCG.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
execa,
|
|
3
3
|
outputContent,
|
|
4
4
|
outputDebug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D72SCNZ2.js";
|
|
6
6
|
import {
|
|
7
7
|
init_cjs_shims
|
|
8
8
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
username,
|
|
61
61
|
platformAndArch
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-JAQZDU4S.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RUR45G5U.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72SCNZ2.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
cliInstallCommand,
|
|
26
26
|
getOutputUpdateCLIReminder
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-JJOZP7G6.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
demo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WJBW5QHV.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
readFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D72SCNZ2.js";
|
|
10
10
|
import {
|
|
11
11
|
require_lib
|
|
12
12
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -56,4 +56,4 @@ var Demo = class _Demo extends base_command_default {
|
|
|
56
56
|
export {
|
|
57
57
|
Demo
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=chunk-
|
|
59
|
+
//# sourceMappingURL=chunk-JR6ZN4TY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D72SCNZ2.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -15,4 +15,4 @@ async function searchService(query) {
|
|
|
15
15
|
export {
|
|
16
16
|
searchService
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=chunk-
|
|
18
|
+
//# sourceMappingURL=chunk-MXZ6B3TP.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WUA6LTEH.js";
|
|
5
5
|
import {
|
|
6
6
|
getEnvironmentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7PUJMPXN.js";
|
|
8
8
|
import {
|
|
9
9
|
runWithRateLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RUR45G5U.js";
|
|
11
11
|
import {
|
|
12
12
|
require_once
|
|
13
13
|
} from "./chunk-O5K4AU7Q.js";
|
|
14
14
|
import {
|
|
15
15
|
CLI_KIT_VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A3DV6VXO.js";
|
|
17
17
|
import {
|
|
18
18
|
AbortSilentError,
|
|
19
19
|
CancelExecution,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
printEventsJson,
|
|
28
28
|
require_stacktracey,
|
|
29
29
|
shouldReportError
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D72SCNZ2.js";
|
|
31
31
|
import {
|
|
32
32
|
bugsnagApiKey,
|
|
33
33
|
reportingRateLimit
|
|
@@ -2152,4 +2152,4 @@ export {
|
|
|
2152
2152
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2153
2153
|
addBugsnagMetadata
|
|
2154
2154
|
};
|
|
2155
|
-
//# sourceMappingURL=chunk-
|
|
2155
|
+
//# sourceMappingURL=chunk-NCUKAORS.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
demo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WJBW5QHV.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
outputInfo,
|
|
9
9
|
readFile,
|
|
10
10
|
renderAutocompletePrompt
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D72SCNZ2.js";
|
|
12
12
|
import {
|
|
13
13
|
joinPath
|
|
14
14
|
} from "./chunk-T2GATXSP.js";
|
|
@@ -42,4 +42,4 @@ var Catalog = class extends base_command_default {
|
|
|
42
42
|
export {
|
|
43
43
|
Catalog
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-OBX5DIH4.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJZ3SGOJ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUBA2XGP.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkStatic = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkStatic
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-QIBFYG6F.js.map
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
fileExists,
|
|
11
11
|
findPathUp,
|
|
12
12
|
glob,
|
|
13
|
+
inferPackageManagerForGlobalCLI,
|
|
13
14
|
isUnitTest,
|
|
14
15
|
mimicFunction,
|
|
15
16
|
outputContent,
|
|
@@ -19,7 +20,7 @@ import {
|
|
|
19
20
|
require_get_stream,
|
|
20
21
|
runWithTimer,
|
|
21
22
|
writeFile
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-D72SCNZ2.js";
|
|
23
24
|
import {
|
|
24
25
|
envPaths
|
|
25
26
|
} from "./chunk-NZDBLGNM.js";
|
|
@@ -9046,6 +9047,7 @@ __export(node_package_manager_exports, {
|
|
|
9046
9047
|
getPackageManager: () => getPackageManager,
|
|
9047
9048
|
getPackageName: () => getPackageName,
|
|
9048
9049
|
getPackageVersion: () => getPackageVersion,
|
|
9050
|
+
inferPackageManager: () => inferPackageManager,
|
|
9049
9051
|
installNPMDependenciesRecursively: () => installNPMDependenciesRecursively,
|
|
9050
9052
|
installNodeModules: () => installNodeModules,
|
|
9051
9053
|
lockfiles: () => lockfiles,
|
|
@@ -13668,7 +13670,7 @@ async function latestVersion(packageName, options) {
|
|
|
13668
13670
|
}
|
|
13669
13671
|
|
|
13670
13672
|
// ../cli-kit/dist/public/node/node-package-manager.js
|
|
13671
|
-
var import_semver3 = __toESM(require_semver()
|
|
13673
|
+
var import_semver3 = __toESM(require_semver()), yarnLockfile = "yarn.lock", npmLockfile = "package-lock.json", pnpmLockfile = "pnpm-lock.yaml", bunLockfile = "bun.lockb", pnpmWorkspaceFile = "pnpm-workspace.yaml", lockfiles = [yarnLockfile, pnpmLockfile, npmLockfile, bunLockfile], packageManager = ["yarn", "npm", "pnpm", "bun", "unknown"], UnknownPackageManagerError = class extends AbortError {
|
|
13672
13674
|
constructor() {
|
|
13673
13675
|
super("Unknown package manager");
|
|
13674
13676
|
}
|
|
@@ -13887,6 +13889,15 @@ async function writePackageJSON(directory, packageJSON) {
|
|
|
13887
13889
|
let packagePath = joinPath(directory, "package.json");
|
|
13888
13890
|
await writeFile(packagePath, JSON.stringify(packageJSON, null, 2));
|
|
13889
13891
|
}
|
|
13892
|
+
function inferPackageManager(optionsPackageManager, env = process.env) {
|
|
13893
|
+
if (optionsPackageManager && packageManager.includes(optionsPackageManager))
|
|
13894
|
+
return optionsPackageManager;
|
|
13895
|
+
let usedPackageManager = packageManagerFromUserAgent(env);
|
|
13896
|
+
if (usedPackageManager !== "unknown")
|
|
13897
|
+
return usedPackageManager;
|
|
13898
|
+
let globalPackageManager = inferPackageManagerForGlobalCLI();
|
|
13899
|
+
return globalPackageManager !== "unknown" ? globalPackageManager : "npm";
|
|
13900
|
+
}
|
|
13890
13901
|
|
|
13891
13902
|
export {
|
|
13892
13903
|
require_ajv,
|
|
@@ -13927,6 +13938,7 @@ export {
|
|
|
13927
13938
|
findUpAndReadPackageJson,
|
|
13928
13939
|
addResolutionOrOverride,
|
|
13929
13940
|
writePackageJSON,
|
|
13941
|
+
inferPackageManager,
|
|
13930
13942
|
node_package_manager_exports
|
|
13931
13943
|
};
|
|
13932
13944
|
/*! Bundled license information:
|
|
@@ -13962,4 +13974,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13962
13974
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13963
13975
|
*)
|
|
13964
13976
|
*/
|
|
13965
|
-
//# sourceMappingURL=chunk-
|
|
13977
|
+
//# sourceMappingURL=chunk-RUR45G5U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderConcurrent,
|
|
3
3
|
renderTasks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D72SCNZ2.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -43,4 +43,4 @@ async function asyncTasks() {
|
|
|
43
43
|
export {
|
|
44
44
|
asyncTasks
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-UCYJX4VB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EUBA2XGP.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
6
|
} from "./chunk-BFQFJ7IZ.js";
|
|
@@ -43,4 +43,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
43
43
|
export {
|
|
44
44
|
HelpCommand
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=chunk-
|
|
46
|
+
//# sourceMappingURL=chunk-VVY6VJR6.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
renderTextPrompt,
|
|
18
18
|
renderWarning,
|
|
19
19
|
sleep
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-D72SCNZ2.js";
|
|
21
21
|
import {
|
|
22
22
|
init_cjs_shims
|
|
23
23
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -309,4 +309,4 @@ export {
|
|
|
309
309
|
demoStepsSchema,
|
|
310
310
|
demo
|
|
311
311
|
};
|
|
312
|
-
//# sourceMappingURL=chunk-
|
|
312
|
+
//# sourceMappingURL=chunk-WJBW5QHV.js.map
|