@shopify/cli 3.78.1 → 3.79.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/assets/dev-console/extensions/dev-console/assets/index-BteeGmYf.css +1 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +64 -0
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +20 -0
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +15 -0
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +44 -0
- package/dist/assets/hydrogen/starter/app/lib/redirect.ts +23 -0
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +8 -23
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +22 -2
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +4 -0
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +7 -41
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +11 -44
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +9 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +5 -1
- package/dist/assets/hydrogen/starter/app/styles/app.css +15 -3
- package/dist/assets/hydrogen/starter/package.json +5 -5
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +57 -36
- package/dist/{chunk-F3SJ7GH2.js → chunk-2B4E6VSB.js} +3 -3
- package/dist/{chunk-TJUGCRWY.js → chunk-4BO44W6A.js} +2 -2
- package/dist/{chunk-ZJ2IPVO4.js → chunk-54K4AM4U.js} +3 -3
- package/dist/{chunk-HE3BDMSQ.js → chunk-7QKG75SI.js} +73 -7
- package/dist/{chunk-6GQF27II.js → chunk-ALANDDAF.js} +3 -3
- package/dist/{chunk-GA5Q2G7N.js → chunk-ANW4ZUSD.js} +2 -2
- package/dist/{chunk-RH2XRA3A.js → chunk-AVR7SY23.js} +4 -4
- package/dist/{chunk-5DXEBIVF.js → chunk-CZ7EMDNP.js} +5 -5
- package/dist/{chunk-6IPFYNHW.js → chunk-DG3SRCQ7.js} +2 -2
- package/dist/{chunk-QYA3TD2H.js → chunk-DOKAITPJ.js} +4 -4
- package/dist/{chunk-SWU3QODP.js → chunk-EKAPTGJ2.js} +2 -2
- package/dist/{chunk-OAZABGFS.js → chunk-F55GHOR3.js} +83 -130
- package/dist/{chunk-HRT2J6AZ.js → chunk-G63ZK76J.js} +3 -3
- package/dist/{chunk-VE4ESNRH.js → chunk-HTK3YCUG.js} +3 -3
- package/dist/{chunk-F23MB6TB.js → chunk-IARZXI6R.js} +3 -3
- package/dist/{chunk-HGD26EDV.js → chunk-IYBFDT7N.js} +41 -16
- package/dist/{chunk-WWOE2EFZ.js → chunk-JCZQQS22.js} +4 -4
- package/dist/{chunk-TIMWAEJ5.js → chunk-KRTNJAVX.js} +3 -3
- package/dist/{chunk-AV64MUSE.js → chunk-KVPURBXO.js} +5 -5
- package/dist/{chunk-EBRJEUGC.js → chunk-LFQMCRXU.js} +13 -9
- package/dist/{chunk-H73PDGHM.js → chunk-MLGPNWXX.js} +87 -97
- package/dist/{chunk-3COQLGRL.js → chunk-MRU3X272.js} +4 -4
- package/dist/{chunk-BV6PURBM.js → chunk-NOSVFQH5.js} +3 -3
- package/dist/{chunk-GWN4I7WX.js → chunk-OOVDD552.js} +3 -3
- package/dist/{chunk-FHYKRLSA.js → chunk-P6WUJAQG.js} +3 -3
- package/dist/{chunk-FEYZLXHI.js → chunk-PRSCEDOW.js} +18 -5
- package/dist/{chunk-HO5XX2LU.js → chunk-QBB7AFBN.js} +7 -7
- package/dist/{chunk-LE26CN2H.js → chunk-QJTHRGGC.js} +7 -5
- package/dist/{chunk-TFCMG5O2.js → chunk-QW44EO42.js} +8 -8
- package/dist/{chunk-PT5BDLIN.js → chunk-SHIHLMYP.js} +8 -6
- package/dist/{chunk-UGX6DGR4.js → chunk-SUWZRQHU.js} +2 -2
- package/dist/{chunk-DNGCAQBF.js → chunk-U6TDVNHS.js} +16 -15
- package/dist/{chunk-QTRXKFCW.js → chunk-UQLLSBKG.js} +3 -3
- package/dist/{chunk-QAKYKTFV.js → chunk-UTDSSCPI.js} +5 -5
- package/dist/{chunk-O6JLOWUE.js → chunk-YILOICE5.js} +5 -5
- package/dist/{chunk-FZI742QM.js → chunk-ZCIGSW2P.js} +2 -2
- package/dist/cli/commands/auth/logout.js +13 -13
- package/dist/cli/commands/auth/logout.test.js +14 -14
- package/dist/cli/commands/cache/clear.js +12 -12
- package/dist/cli/commands/debug/command-flags.js +12 -12
- package/dist/cli/commands/docs/generate.js +12 -12
- package/dist/cli/commands/docs/generate.test.js +13 -13
- package/dist/cli/commands/help.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.js +13 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.js +15 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +15 -15
- package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +13 -13
- package/dist/cli/commands/notifications/generate.js +13 -13
- package/dist/cli/commands/notifications/list.js +13 -13
- package/dist/cli/commands/search.js +13 -13
- package/dist/cli/commands/upgrade.js +13 -13
- package/dist/cli/commands/version.js +13 -13
- package/dist/cli/commands/version.test.js +13 -13
- package/dist/cli/services/commands/notifications.js +8 -8
- package/dist/cli/services/commands/search.js +5 -4
- package/dist/cli/services/commands/search.test.js +5 -4
- package/dist/cli/services/commands/version.js +6 -5
- package/dist/cli/services/commands/version.test.js +7 -6
- package/dist/cli/services/kitchen-sink/async.js +5 -4
- package/dist/cli/services/kitchen-sink/prompts.js +5 -4
- package/dist/cli/services/kitchen-sink/static.js +5 -4
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +7 -7
- package/dist/configs/all.yml +19 -4
- package/dist/configs/recommended.yml +19 -4
- package/dist/{custom-oclif-loader-BGXT6N23.js → custom-oclif-loader-ZMH2MAPE.js} +5 -4
- package/dist/{error-handler-HVEM4RKZ.js → error-handler-7Z6N6VQJ.js} +10 -10
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +10 -10
- package/dist/index.js +2780 -2431
- package/dist/is-wsl-YAJ3DFN7.js +64 -0
- package/dist/{lib-IZAG57CE.js → lib-MWWAATIC.js} +3 -3
- package/dist/{local-UX2FKODS.js → local-LWMJQBFZ.js} +5 -6
- package/dist/{morph-W4XLLZ47.js → morph-MDY3DSJL.js} +9 -9
- package/dist/{node-RJ5OAO2M.js → node-JJXJUMVQ.js} +17 -17
- package/dist/{node-package-manager-NS6MYGUI.js → node-package-manager-BZGMCXZM.js} +5 -5
- package/dist/toml-patch-wasm-J5VGG6WG.js +140 -0
- package/dist/toml_patch_bg.wasm +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-FQHY2OWD.js → ui-IJDVK4OG.js} +5 -4
- package/dist/{workerd-KUHMQGDX.js → workerd-XA4WKUCO.js} +16 -16
- package/oclif.manifest.json +100 -2
- package/package.json +7 -7
- package/dist/assets/dev-console/extensions/dev-console/assets/index-lyGm6l3x.js +0 -64
- package/dist/assets/dev-console/extensions/dev-console/assets/index-n8yr6cxq.css +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G63ZK76J.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SHIHLMYP.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F55GHOR3.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.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-MRU3X272.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_cjs_shims
|
|
3
3
|
} from "./chunk-PKR7KJ6P.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
5
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
6
6
|
init_cjs_shims();
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
|
|
@@ -94,7 +94,7 @@ function portNumbers(from, to) {
|
|
|
94
94
|
}(from, to);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.
|
|
97
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_graphql@16.10.0_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
|
|
98
98
|
function findPort(portPreference, range = 100) {
|
|
99
99
|
return getPorts({
|
|
100
100
|
port: portNumbers(portPreference, portPreference + range)
|
|
@@ -104,4 +104,4 @@ function findPort(portPreference, range = 100) {
|
|
|
104
104
|
export {
|
|
105
105
|
findPort
|
|
106
106
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
107
|
+
//# sourceMappingURL=chunk-NOSVFQH5.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CZ7EMDNP.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-F55GHOR3.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
139
139
|
export {
|
|
140
140
|
upgrade
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-OOVDD552.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SUWZRQHU.js";
|
|
4
4
|
import {
|
|
5
5
|
outputInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F55GHOR3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -17,4 +17,4 @@ async function versionService() {
|
|
|
17
17
|
export {
|
|
18
18
|
versionService
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-P6WUJAQG.js.map
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureAuthenticated,
|
|
3
|
+
exchangeCliTokenForAppManagementAccessToken,
|
|
4
|
+
exchangeCliTokenForBusinessPlatformAccessToken,
|
|
3
5
|
exchangeCustomPartnerToken,
|
|
4
6
|
isThemeAccessSession,
|
|
5
7
|
normalizeStoreFqdn,
|
|
6
8
|
remove,
|
|
7
9
|
setLastSeenAuthMethod,
|
|
8
10
|
setLastSeenUserIdAfterAuth
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IYBFDT7N.js";
|
|
10
12
|
import {
|
|
11
|
-
BugError,
|
|
12
13
|
getPartnersToken,
|
|
13
|
-
nonRandomUUID
|
|
14
|
+
nonRandomUUID
|
|
15
|
+
} from "./chunk-7QKG75SI.js";
|
|
16
|
+
import {
|
|
17
|
+
BugError,
|
|
14
18
|
outputContent,
|
|
15
19
|
outputDebug,
|
|
16
20
|
outputToken
|
|
17
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F55GHOR3.js";
|
|
18
22
|
import {
|
|
19
23
|
init_cjs_shims
|
|
20
24
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -39,6 +43,15 @@ async function ensureAuthenticatedAppManagementAndBusinessPlatform(options = {},
|
|
|
39
43
|
outputDebug(outputContent`Ensuring that the user is authenticated with the App Management API with the following scopes:
|
|
40
44
|
${outputToken.json(appManagementScopes)}
|
|
41
45
|
`);
|
|
46
|
+
let envToken = getPartnersToken();
|
|
47
|
+
if (envToken) {
|
|
48
|
+
let appManagmentToken = await exchangeCliTokenForAppManagementAccessToken(envToken), businessPlatformToken = await exchangeCliTokenForBusinessPlatformAccessToken(envToken);
|
|
49
|
+
return {
|
|
50
|
+
appManagementToken: appManagmentToken.accessToken,
|
|
51
|
+
userId: appManagmentToken.userId,
|
|
52
|
+
businessPlatformToken: businessPlatformToken.accessToken
|
|
53
|
+
};
|
|
54
|
+
}
|
|
42
55
|
let tokens = await ensureAuthenticated({ appManagementApi: { scopes: appManagementScopes }, businessPlatformApi: { scopes: businessPlatformScopes } }, env, options);
|
|
43
56
|
if (!tokens.appManagement || !tokens.businessPlatform)
|
|
44
57
|
throw new BugError("No App Management or Business Platform token found after ensuring authenticated");
|
|
@@ -104,4 +117,4 @@ export {
|
|
|
104
117
|
ensureAuthenticatedBusinessPlatform,
|
|
105
118
|
logout
|
|
106
119
|
};
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-PRSCEDOW.js.map
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getEnvironmentData,
|
|
3
3
|
getLastSeenUserIdAfterAuth,
|
|
4
4
|
getSensitiveEnvironmentData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IYBFDT7N.js";
|
|
6
6
|
import {
|
|
7
7
|
fetch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7QKG75SI.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SUWZRQHU.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithRateLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CZ7EMDNP.js";
|
|
15
15
|
import {
|
|
16
16
|
alwaysLogAnalytics,
|
|
17
17
|
alwaysLogMetrics,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
outputDebug,
|
|
29
29
|
outputToken,
|
|
30
30
|
reportingRateLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-F55GHOR3.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -15477,7 +15477,7 @@ init_cjs_shims();
|
|
|
15477
15477
|
|
|
15478
15478
|
// ../cli-kit/dist/public/node/monorail.js
|
|
15479
15479
|
init_cjs_shims();
|
|
15480
|
-
var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.
|
|
15480
|
+
var url = "https://monorail-edge.shopifysvc.com/v1/produce", MONORAIL_COMMAND_TOPIC = "app_cli3_command/1.17", publishedCommandNames = /* @__PURE__ */ new Set();
|
|
15481
15481
|
async function publishMonorailEvent(schemaId, publicData, sensitiveData) {
|
|
15482
15482
|
let commandName = publicData.command;
|
|
15483
15483
|
if (commandName && typeof commandName == "string") {
|
|
@@ -15930,4 +15930,4 @@ export {
|
|
|
15930
15930
|
requestIdsCollection,
|
|
15931
15931
|
reportAnalyticsEvent
|
|
15932
15932
|
};
|
|
15933
|
-
//# sourceMappingURL=chunk-
|
|
15933
|
+
//# sourceMappingURL=chunk-QBB7AFBN.js.map
|
|
@@ -2,19 +2,21 @@ import {
|
|
|
2
2
|
fetchNotifications,
|
|
3
3
|
getNotifications,
|
|
4
4
|
stringifyFilters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U6TDVNHS.js";
|
|
6
|
+
import {
|
|
7
|
+
randomUUID
|
|
8
|
+
} from "./chunk-7QKG75SI.js";
|
|
6
9
|
import {
|
|
7
10
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SUWZRQHU.js";
|
|
9
12
|
import {
|
|
10
13
|
outputInfo,
|
|
11
|
-
randomUUID,
|
|
12
14
|
renderSelectPrompt,
|
|
13
15
|
renderSuccess,
|
|
14
16
|
renderTable,
|
|
15
17
|
renderTextPrompt,
|
|
16
18
|
writeFile
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F55GHOR3.js";
|
|
18
20
|
import {
|
|
19
21
|
init_cjs_shims
|
|
20
22
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -101,4 +103,4 @@ export {
|
|
|
101
103
|
generate,
|
|
102
104
|
list
|
|
103
105
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-QJTHRGGC.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SHIHLMYP.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CZ7EMDNP.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F55GHOR3.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UTDSSCPI.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -26,7 +26,7 @@ init_cjs_shims();
|
|
|
26
26
|
init_cjs_shims();
|
|
27
27
|
import { fileURLToPath } from "node:url";
|
|
28
28
|
async function launchCLI(options) {
|
|
29
|
-
let { errorHandler } = await import("./error-handler-
|
|
29
|
+
let { errorHandler } = await import("./error-handler-7Z6N6VQJ.js"), { isDevelopment } = await import("./local-LWMJQBFZ.js"), oclif = await import("./lib-MWWAATIC.js"), { ShopifyConfig } = await import("./custom-oclif-loader-ZMH2MAPE.js");
|
|
30
30
|
isDevelopment() && (oclif.default.settings.debug = !0);
|
|
31
31
|
try {
|
|
32
32
|
let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
|
|
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
|
|
|
41
41
|
async function exitIfOldNodeVersion(versions = process.versions) {
|
|
42
42
|
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
43
43
|
if (nodeMajorVersion < 18) {
|
|
44
|
-
let { renderError } = await import("./ui-
|
|
44
|
+
let { renderError } = await import("./ui-IJDVK4OG.js");
|
|
45
45
|
renderError({
|
|
46
46
|
headline: "Upgrade to a supported Node version now.",
|
|
47
47
|
body: [
|
|
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
68
68
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
|
|
69
69
|
}
|
|
70
70
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
71
|
-
let { findUpAndReadPackageJson } = await import("./node-package-manager-
|
|
71
|
+
let { findUpAndReadPackageJson } = await import("./node-package-manager-BZGMCXZM.js"), { moduleDirectory } = await import("./path-2K5HIMHZ.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
72
72
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
73
73
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
74
74
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
jsonFlag,
|
|
118
118
|
ClearCache
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-QW44EO42.js.map
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LFQMCRXU.js";
|
|
5
5
|
import {
|
|
6
6
|
setCurrentCommandId,
|
|
7
7
|
showNotificationsIfNeeded
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U6TDVNHS.js";
|
|
9
|
+
import {
|
|
10
|
+
hashString
|
|
11
|
+
} from "./chunk-7QKG75SI.js";
|
|
9
12
|
import {
|
|
10
13
|
AbortError,
|
|
11
14
|
addPublicMetadata,
|
|
12
15
|
addSensitiveMetadata,
|
|
13
16
|
findPathUp,
|
|
14
|
-
hashString,
|
|
15
17
|
isDevelopment,
|
|
16
18
|
isTruthy,
|
|
17
19
|
outputContent,
|
|
@@ -22,13 +24,13 @@ import {
|
|
|
22
24
|
renderWarning,
|
|
23
25
|
terminalSupportsPrompting,
|
|
24
26
|
underscore
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-F55GHOR3.js";
|
|
26
28
|
import {
|
|
27
29
|
cwd
|
|
28
30
|
} from "./chunk-57Q6OQG4.js";
|
|
29
31
|
import {
|
|
30
32
|
require_lib
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UTDSSCPI.js";
|
|
32
34
|
import {
|
|
33
35
|
__commonJS,
|
|
34
36
|
__require,
|
|
@@ -1663,4 +1665,4 @@ export {
|
|
|
1663
1665
|
loadEnvironment,
|
|
1664
1666
|
base_command_default
|
|
1665
1667
|
};
|
|
1666
|
-
//# sourceMappingURL=chunk-
|
|
1668
|
+
//# sourceMappingURL=chunk-SHIHLMYP.js.map
|
|
@@ -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.79.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-SUWZRQHU.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetch,
|
|
3
|
+
jsonOutputEnabled,
|
|
3
4
|
z
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7QKG75SI.js";
|
|
5
6
|
import {
|
|
6
7
|
CLI_KIT_VERSION
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SUWZRQHU.js";
|
|
8
9
|
import {
|
|
9
10
|
cacheRetrieve,
|
|
10
11
|
cacheStore,
|
|
11
12
|
versionSatisfies
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CZ7EMDNP.js";
|
|
13
14
|
import {
|
|
14
15
|
AbortSilentError,
|
|
15
16
|
exec,
|
|
16
17
|
isTruthy,
|
|
17
|
-
jsonOutputEnabled,
|
|
18
18
|
outputDebug,
|
|
19
19
|
renderError,
|
|
20
20
|
renderInfo,
|
|
21
21
|
renderWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-F55GHOR3.js";
|
|
23
23
|
import {
|
|
24
24
|
init_cjs_shims
|
|
25
25
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -87,7 +87,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
87
87
|
throw new AbortSilentError();
|
|
88
88
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
89
89
|
outputDebug(errorMessage);
|
|
90
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
90
|
+
let { sendErrorToBugsnag } = await import("./error-handler-7Z6N6VQJ.js");
|
|
91
91
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -140,15 +140,16 @@ async function cacheNotifications(notifications) {
|
|
|
140
140
|
cacheStore(`notifications-${url()}`, notifications), outputDebug(`Notifications from ${url()} stored in the cache`);
|
|
141
141
|
}
|
|
142
142
|
function fetchNotificationsInBackground(currentCommand, argv = process.argv, environment = process.env) {
|
|
143
|
-
if (skipNotifications(currentCommand, environment))
|
|
143
|
+
if (skipNotifications(currentCommand, environment) || !argv[0] || !argv[1])
|
|
144
144
|
return;
|
|
145
|
-
let
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
let nodeBinary = argv[0], args = [argv[1], "notifications", "list", "--ignore-errors"];
|
|
146
|
+
exec(nodeBinary, args, {
|
|
147
|
+
background: !0,
|
|
148
|
+
env: { ...process.env, SHOPIFY_CLI_NO_ANALYTICS: "1" },
|
|
149
|
+
externalErrorHandler: async (error) => {
|
|
150
|
+
outputDebug(`Failed to fetch notifications in background: ${error.message}`);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
152
153
|
}
|
|
153
154
|
function filterNotifications(notifications, commandId, currentSurfaces, today = new Date((/* @__PURE__ */ new Date()).setUTCHours(0, 0, 0, 0)), currentVersion = CLI_KIT_VERSION) {
|
|
154
155
|
return notifications.filter((notification) => filterByVersion(notification, currentVersion)).filter((notifications2) => filterByDate(notifications2, today)).filter((notification) => filterByCommand(notification, commandId)).filter((notification) => filterBySurface(notification, commandId, currentSurfaces)).filter((notification) => filterByFrequency(notification));
|
|
@@ -199,4 +200,4 @@ export {
|
|
|
199
200
|
fetchNotificationsInBackground,
|
|
200
201
|
stringifyFilters
|
|
201
202
|
};
|
|
202
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-U6TDVNHS.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DG3SRCQ7.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SHIHLMYP.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.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-UQLLSBKG.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
require_brace_expansion,
|
|
3
|
-
require_source_map_support
|
|
4
|
-
} from "./chunk-G5R6YD27.js";
|
|
5
1
|
import {
|
|
6
2
|
require_has_flag,
|
|
7
3
|
require_supports_color
|
|
8
4
|
} from "./chunk-3I3GQNEW.js";
|
|
5
|
+
import {
|
|
6
|
+
require_brace_expansion,
|
|
7
|
+
require_source_map_support
|
|
8
|
+
} from "./chunk-G5R6YD27.js";
|
|
9
9
|
import {
|
|
10
10
|
require_is_wsl
|
|
11
11
|
} from "./chunk-G2ZZKGSV.js";
|
|
@@ -175258,4 +175258,4 @@ ejs/lib/ejs.js:
|
|
|
175258
175258
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
175259
175259
|
*)
|
|
175260
175260
|
*/
|
|
175261
|
-
//# sourceMappingURL=chunk-
|
|
175261
|
+
//# sourceMappingURL=chunk-UTDSSCPI.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4BO44W6A.js";
|
|
4
4
|
import {
|
|
5
5
|
staticService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZCIGSW2P.js";
|
|
7
7
|
import {
|
|
8
8
|
asyncTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DG3SRCQ7.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SHIHLMYP.js";
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
15
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var KitchenSinkAll = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
KitchenSinkAll
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-YILOICE5.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F55GHOR3.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -203,4 +203,4 @@ async function staticService() {
|
|
|
203
203
|
export {
|
|
204
204
|
staticService
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-ZCIGSW2P.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Logout
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-DOKAITPJ.js";
|
|
4
|
+
import "../../../chunk-PRSCEDOW.js";
|
|
5
|
+
import "../../../chunk-SHIHLMYP.js";
|
|
6
|
+
import "../../../chunk-LFQMCRXU.js";
|
|
7
7
|
import "../../../chunk-SHWOPMLQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
11
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-QBB7AFBN.js";
|
|
9
|
+
import "../../../chunk-IYBFDT7N.js";
|
|
10
|
+
import "../../../chunk-U6TDVNHS.js";
|
|
11
|
+
import "../../../chunk-7QKG75SI.js";
|
|
12
12
|
import "../../../chunk-25IMI7TH.js";
|
|
13
|
-
import "../../../chunk-
|
|
14
|
-
import "../../../chunk-
|
|
13
|
+
import "../../../chunk-SUWZRQHU.js";
|
|
14
|
+
import "../../../chunk-CZ7EMDNP.js";
|
|
15
|
+
import "../../../chunk-F55GHOR3.js";
|
|
15
16
|
import "../../../chunk-HMDWNGIV.js";
|
|
16
|
-
import "../../../chunk-OAZABGFS.js";
|
|
17
17
|
import "../../../chunk-B5EXYCV3.js";
|
|
18
18
|
import "../../../chunk-75LV6AQS.js";
|
|
19
19
|
import "../../../chunk-57Q6OQG4.js";
|
|
20
|
-
import "../../../chunk-
|
|
21
|
-
import "../../../chunk-G5R6YD27.js";
|
|
20
|
+
import "../../../chunk-UTDSSCPI.js";
|
|
22
21
|
import "../../../chunk-3I3GQNEW.js";
|
|
22
|
+
import "../../../chunk-G5R6YD27.js";
|
|
23
23
|
import "../../../chunk-G2ZZKGSV.js";
|
|
24
24
|
import "../../../chunk-MP5RLDFN.js";
|
|
25
25
|
import "../../../chunk-XE5EOEBL.js";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mockAndCaptureOutput
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-EKAPTGJ2.js";
|
|
4
4
|
import {
|
|
5
5
|
Logout
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-DOKAITPJ.js";
|
|
7
7
|
import {
|
|
8
8
|
logout
|
|
9
|
-
} from "../../../chunk-
|
|
9
|
+
} from "../../../chunk-PRSCEDOW.js";
|
|
10
10
|
import {
|
|
11
11
|
describe,
|
|
12
12
|
globalExpect,
|
|
13
13
|
test,
|
|
14
14
|
vi
|
|
15
15
|
} from "../../../chunk-Y53XECL6.js";
|
|
16
|
-
import "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
16
|
+
import "../../../chunk-SHIHLMYP.js";
|
|
17
|
+
import "../../../chunk-LFQMCRXU.js";
|
|
18
18
|
import "../../../chunk-SHWOPMLQ.js";
|
|
19
|
-
import "../../../chunk-
|
|
20
|
-
import "../../../chunk-
|
|
21
|
-
import "../../../chunk-
|
|
22
|
-
import "../../../chunk-
|
|
19
|
+
import "../../../chunk-QBB7AFBN.js";
|
|
20
|
+
import "../../../chunk-IYBFDT7N.js";
|
|
21
|
+
import "../../../chunk-U6TDVNHS.js";
|
|
22
|
+
import "../../../chunk-7QKG75SI.js";
|
|
23
23
|
import "../../../chunk-25IMI7TH.js";
|
|
24
|
-
import "../../../chunk-
|
|
25
|
-
import "../../../chunk-
|
|
24
|
+
import "../../../chunk-SUWZRQHU.js";
|
|
25
|
+
import "../../../chunk-CZ7EMDNP.js";
|
|
26
|
+
import "../../../chunk-F55GHOR3.js";
|
|
26
27
|
import "../../../chunk-HMDWNGIV.js";
|
|
27
|
-
import "../../../chunk-OAZABGFS.js";
|
|
28
28
|
import "../../../chunk-B5EXYCV3.js";
|
|
29
29
|
import "../../../chunk-75LV6AQS.js";
|
|
30
30
|
import "../../../chunk-57Q6OQG4.js";
|
|
31
|
-
import "../../../chunk-
|
|
32
|
-
import "../../../chunk-G5R6YD27.js";
|
|
31
|
+
import "../../../chunk-UTDSSCPI.js";
|
|
33
32
|
import "../../../chunk-3I3GQNEW.js";
|
|
33
|
+
import "../../../chunk-G5R6YD27.js";
|
|
34
34
|
import "../../../chunk-G2ZZKGSV.js";
|
|
35
35
|
import "../../../chunk-MP5RLDFN.js";
|
|
36
36
|
import "../../../chunk-XE5EOEBL.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClearCache
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-QW44EO42.js";
|
|
4
|
+
import "../../../chunk-SHIHLMYP.js";
|
|
5
|
+
import "../../../chunk-LFQMCRXU.js";
|
|
6
6
|
import "../../../chunk-SHWOPMLQ.js";
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-QBB7AFBN.js";
|
|
8
|
+
import "../../../chunk-IYBFDT7N.js";
|
|
9
|
+
import "../../../chunk-U6TDVNHS.js";
|
|
10
|
+
import "../../../chunk-7QKG75SI.js";
|
|
11
11
|
import "../../../chunk-25IMI7TH.js";
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
12
|
+
import "../../../chunk-SUWZRQHU.js";
|
|
13
|
+
import "../../../chunk-CZ7EMDNP.js";
|
|
14
|
+
import "../../../chunk-F55GHOR3.js";
|
|
14
15
|
import "../../../chunk-HMDWNGIV.js";
|
|
15
|
-
import "../../../chunk-OAZABGFS.js";
|
|
16
16
|
import "../../../chunk-B5EXYCV3.js";
|
|
17
17
|
import "../../../chunk-75LV6AQS.js";
|
|
18
18
|
import "../../../chunk-57Q6OQG4.js";
|
|
19
|
-
import "../../../chunk-
|
|
20
|
-
import "../../../chunk-G5R6YD27.js";
|
|
19
|
+
import "../../../chunk-UTDSSCPI.js";
|
|
21
20
|
import "../../../chunk-3I3GQNEW.js";
|
|
21
|
+
import "../../../chunk-G5R6YD27.js";
|
|
22
22
|
import "../../../chunk-G2ZZKGSV.js";
|
|
23
23
|
import "../../../chunk-MP5RLDFN.js";
|
|
24
24
|
import "../../../chunk-XE5EOEBL.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommandFlags
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-AVR7SY23.js";
|
|
4
|
+
import "../../../chunk-SHIHLMYP.js";
|
|
5
|
+
import "../../../chunk-LFQMCRXU.js";
|
|
6
6
|
import "../../../chunk-SHWOPMLQ.js";
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-QBB7AFBN.js";
|
|
8
|
+
import "../../../chunk-IYBFDT7N.js";
|
|
9
|
+
import "../../../chunk-U6TDVNHS.js";
|
|
10
|
+
import "../../../chunk-7QKG75SI.js";
|
|
11
11
|
import "../../../chunk-25IMI7TH.js";
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
12
|
+
import "../../../chunk-SUWZRQHU.js";
|
|
13
|
+
import "../../../chunk-CZ7EMDNP.js";
|
|
14
|
+
import "../../../chunk-F55GHOR3.js";
|
|
14
15
|
import "../../../chunk-HMDWNGIV.js";
|
|
15
|
-
import "../../../chunk-OAZABGFS.js";
|
|
16
16
|
import "../../../chunk-B5EXYCV3.js";
|
|
17
17
|
import "../../../chunk-75LV6AQS.js";
|
|
18
18
|
import "../../../chunk-57Q6OQG4.js";
|
|
19
|
-
import "../../../chunk-
|
|
20
|
-
import "../../../chunk-G5R6YD27.js";
|
|
19
|
+
import "../../../chunk-UTDSSCPI.js";
|
|
21
20
|
import "../../../chunk-3I3GQNEW.js";
|
|
21
|
+
import "../../../chunk-G5R6YD27.js";
|
|
22
22
|
import "../../../chunk-G2ZZKGSV.js";
|
|
23
23
|
import "../../../chunk-MP5RLDFN.js";
|
|
24
24
|
import "../../../chunk-XE5EOEBL.js";
|