@shopify/cli 3.70.0 → 3.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DVTWERMH.js → chunk-24P2IYB3.js} +5 -5
- package/dist/{lib-CPSRXLFM.js → chunk-2HGYYNE5.js} +5 -2
- package/dist/{chunk-5OP2SA7G.js → chunk-2S2TOSUR.js} +214 -56
- package/dist/{chunk-I3IIDOBX.js → chunk-2ULUZCOJ.js} +3 -3
- package/dist/{chunk-PNN7RS7Y.js → chunk-3NSN5Z4N.js} +100 -11
- package/dist/{chunk-AT4IG4GJ.js → chunk-4BWP64T3.js} +9 -11
- package/dist/{chunk-SYRHCENA.js → chunk-4FXGYSQK.js} +2 -2
- package/dist/{chunk-PKE54TAY.js → chunk-5EH323MO.js} +7 -7
- package/dist/{chunk-JLK5OMFF.js → chunk-5RITYBXF.js} +2 -2
- package/dist/{chunk-47OJGAFT.js → chunk-6XIQQAII.js} +3 -3
- package/dist/{chunk-VFQMUAHB.js → chunk-DGICBICS.js} +4 -4
- package/dist/{chunk-335KXO4I.js → chunk-DN4PETPW.js} +7 -7
- package/dist/{chunk-MRDDDATQ.js → chunk-EIYEVKVE.js} +3 -3
- package/dist/{chunk-N2DEYZD6.js → chunk-EKRPU77H.js} +3 -3
- package/dist/{chunk-ZGHNMRBX.js → chunk-HSTSRNLJ.js} +121 -66
- package/dist/{chunk-MMQOVZDR.js → chunk-JJUWGFVJ.js} +5 -5
- package/dist/{chunk-MX4RJDBM.js → chunk-KYB6A4PE.js} +1 -2
- package/dist/{chunk-X6F3DHKX.js → chunk-L2JRQYNX.js} +2 -2
- package/dist/{chunk-GDYKHT64.js → chunk-L5QY66M5.js} +2805 -33
- package/dist/{chunk-XSMWYZDC.js → chunk-LFQTQLLB.js} +10 -10
- package/dist/{chunk-NH4U4X67.js → chunk-LVCMJDAE.js} +4 -4
- package/dist/{chunk-5QQTRGJ7.js → chunk-MU52LLEY.js} +4 -4
- package/dist/{chunk-43YGIE7Y.js → chunk-NGHX3OJ3.js} +2 -2
- package/dist/{chunk-NYFXBTWK.js → chunk-NZRMJMX6.js} +4 -4
- package/dist/{chunk-TCTXUAZT.js → chunk-O53RG2PS.js} +3 -3
- package/dist/{chunk-CBD6UXLA.js → chunk-OJOHMVV7.js} +5 -5
- package/dist/chunk-OSIMKPXN.js +104 -0
- package/dist/{chunk-N4X7XQWN.js → chunk-PGVLZNNX.js} +7 -3
- package/dist/{chunk-VHAXHYTL.js → chunk-PPETSPYI.js} +3 -3
- package/dist/{chunk-UOZCMFCN.js → chunk-RJ26EKJZ.js} +18 -13
- package/dist/{chunk-WN3FKMKB.js → chunk-RWUKHJPN.js} +14 -19
- package/dist/{chunk-ND6AGPC6.js → chunk-RYLVSBYA.js} +3 -3
- package/dist/{chunk-MH5JSAVK.js → chunk-SBXDGZUV.js} +3 -3
- package/dist/{chunk-BMNDAI5O.js → chunk-SQN45NED.js} +4 -4
- package/dist/{chunk-WI6MEN7U.js → chunk-TFYGB36T.js} +2 -2
- package/dist/{chunk-PJKCWDDX.js → chunk-TM56R4RM.js} +548 -550
- package/dist/{chunk-KYBCPKPL.js → chunk-V2IQ2QWA.js} +3 -3
- package/dist/{chunk-NEOIQ6PN.js → chunk-WNDN5FAY.js} +2 -2
- package/dist/{chunk-FDJVVEGH.js → chunk-WQY4NQRT.js} +4 -6
- package/dist/{chunk-LN444KRM.js → chunk-ZINX4YDI.js} +2 -2
- package/dist/{chunk-MQXHFQM3.js → chunk-ZPWQCUYD.js} +4 -4
- package/dist/cli/commands/auth/logout.js +18 -20
- package/dist/cli/commands/auth/logout.test.js +24 -26
- package/dist/cli/commands/cache/clear.js +17 -19
- package/dist/cli/commands/debug/command-flags.js +17 -19
- package/dist/cli/commands/docs/generate.js +17 -19
- package/dist/cli/commands/docs/generate.test.js +18 -20
- package/dist/cli/commands/help.js +17 -19
- package/dist/cli/commands/kitchen-sink/async.js +18 -20
- package/dist/cli/commands/kitchen-sink/async.test.js +19 -21
- package/dist/cli/commands/kitchen-sink/index.js +20 -22
- package/dist/cli/commands/kitchen-sink/index.test.js +23 -25
- package/dist/cli/commands/kitchen-sink/prompts.js +18 -20
- package/dist/cli/commands/kitchen-sink/prompts.test.js +19 -21
- package/dist/cli/commands/kitchen-sink/static.js +18 -20
- package/dist/cli/commands/kitchen-sink/static.test.js +19 -21
- package/dist/cli/commands/notifications/generate.js +18 -20
- package/dist/cli/commands/notifications/list.js +18 -20
- package/dist/cli/commands/search.js +18 -20
- package/dist/cli/commands/upgrade.js +18 -20
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +18 -20
- package/dist/cli/commands/version.test.js +19 -21
- package/dist/cli/services/commands/notifications.js +12 -14
- package/dist/cli/services/commands/search.js +8 -9
- package/dist/cli/services/commands/search.test.js +9 -10
- package/dist/cli/services/commands/version.js +9 -10
- package/dist/cli/services/commands/version.test.js +11 -12
- package/dist/cli/services/kitchen-sink/async.js +8 -9
- package/dist/cli/services/kitchen-sink/prompts.js +8 -9
- package/dist/cli/services/kitchen-sink/static.js +8 -9
- package/dist/cli/services/upgrade.js +9 -10
- package/dist/cli/services/upgrade.test.js +12 -13
- package/dist/configs/all.yml +15 -0
- package/dist/configs/recommended.yml +9 -0
- package/dist/{custom-oclif-loader-IZLFCRGJ.js → custom-oclif-loader-4ILBNUIN.js} +8 -9
- package/dist/data/filters.json +98 -3
- package/dist/data/latest.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +39 -1619
- package/dist/data/preset_blocks.json +78 -0
- package/dist/data/section.json +1 -42
- package/dist/data/shopify_system_translations.json +34 -7
- package/dist/data/tags.json +10 -0
- package/dist/data/theme_block.json +1 -19
- package/dist/{del-FEQWOMIX.js → del-K5ZJEWTD.js} +3 -3
- package/dist/{error-handler-DAI5HMQW.js → error-handler-VW3Z4CSO.js} +15 -17
- package/dist/hooks/postrun.js +13 -15
- package/dist/hooks/prerun.js +15 -19
- package/dist/index.js +19504 -17453
- package/dist/lib-PPXZBVZX.js +6 -0
- package/dist/{lib-JJXX7GH6.js → lib-XYCLX35G.js} +5 -5
- package/dist/{local-QD6GDUUE.js → local-42CRL4YR.js} +10 -9
- package/dist/{morph-FN23MJ2S.js → morph-SEECJQ2W.js} +2 -2
- package/dist/{node-4XKDIIJ7.js → node-RJUK5KNM.js} +19 -21
- package/dist/{node-package-manager-IEZ6F5VN.js → node-package-manager-6PHP23VI.js} +9 -10
- package/dist/{out-ZDSLKX4N.js → out-MHEKZJWS.js} +2 -2
- package/dist/{path-T2RCZTRE.js → path-5SZGULBR.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-BUB4OWO7.js → ui-OIACULNZ.js} +8 -9
- package/dist/{workerd-DIIGDIHZ.js → workerd-MTYSNN63.js} +19 -21
- package/oclif.manifest.json +334 -131
- package/package.json +7 -8
- package/assets/demo-catalog.json +0 -655
- package/dist/assets/demo-catalog.json +0 -655
- package/dist/chunk-2PUMVRDO.js +0 -131
- package/dist/chunk-7GNQ7YY4.js +0 -116
- package/dist/chunk-E2SYFYJU.js +0 -58
- package/dist/chunk-NLUGD7PZ.js +0 -2731
- package/dist/chunk-P6ABWRKD.js +0 -59
- package/dist/chunk-QSUS3GJF.js +0 -3838
- package/dist/chunk-RUK73IAH.js +0 -312
- package/dist/chunk-T2GATXSP.js +0 -112
- package/dist/chunk-VT3VJHZ7.js +0 -45
- package/dist/chunk-XEDHKQZA.js +0 -116
- package/dist/cli/commands/demo/catalog.d.ts +0 -6
- package/dist/cli/commands/demo/catalog.js +0 -36
- package/dist/cli/commands/demo/generate-file.d.ts +0 -11
- package/dist/cli/commands/demo/generate-file.js +0 -37
- package/dist/cli/commands/demo/index.d.ts +0 -10
- package/dist/cli/commands/demo/index.js +0 -36
- package/dist/cli/commands/demo/print-ai-prompt.d.ts +0 -6
- package/dist/cli/commands/demo/print-ai-prompt.js +0 -37
- package/dist/cli/services/demo.d.ts +0 -26440
- package/dist/cli/services/demo.js +0 -25
- package/dist/cli/services/demo.test.js +0 -42
- package/dist/constants-QFFDI47A.js +0 -26
- package/dist/system-KSIGUX64.js +0 -29
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
ensureAuthenticatedAdmin,
|
|
3
3
|
ensureAuthenticatedBusinessPlatform,
|
|
4
4
|
logout
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JJUWGFVJ.js";
|
|
6
6
|
import {
|
|
7
7
|
base_command_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DN4PETPW.js";
|
|
9
9
|
import {
|
|
10
10
|
fanoutHooks
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4BWP64T3.js";
|
|
12
12
|
import {
|
|
13
13
|
businessPlatformFqdn,
|
|
14
14
|
graphqlRequest,
|
|
15
15
|
graphqlRequestDoc,
|
|
16
16
|
handleDeprecations,
|
|
17
17
|
normalizeStoreFqdn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2S2TOSUR.js";
|
|
19
19
|
import {
|
|
20
20
|
findUpAndReadPackageJson,
|
|
21
21
|
getPackageManager,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
packageManagerFromUserAgent,
|
|
24
24
|
readAndParsePackageJson,
|
|
25
25
|
writePackageJSON
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WQY4NQRT.js";
|
|
27
27
|
import {
|
|
28
28
|
AbortError,
|
|
29
29
|
BugError,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
runWithTimer,
|
|
62
62
|
source_default,
|
|
63
63
|
writeFile
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TM56R4RM.js";
|
|
65
65
|
import {
|
|
66
66
|
basename,
|
|
67
67
|
cwd,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
relativePath,
|
|
72
72
|
relativizePath,
|
|
73
73
|
resolvePath
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-3NSN5Z4N.js";
|
|
75
75
|
import {
|
|
76
76
|
require_lib
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-OJOHMVV7.js";
|
|
78
78
|
import {
|
|
79
79
|
require_source_map_support
|
|
80
80
|
} from "./chunk-CBBS4CV7.js";
|
|
@@ -140658,7 +140658,7 @@ init_cjs_shims();
|
|
|
140658
140658
|
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.2_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
140659
140659
|
init_cjs_shims();
|
|
140660
140660
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
140661
|
-
let { transpileTs } = await import("./morph-
|
|
140661
|
+
let { transpileTs } = await import("./morph-SEECJQ2W.js");
|
|
140662
140662
|
return transpileTs(code, filepath, keepTypes);
|
|
140663
140663
|
}
|
|
140664
140664
|
|
|
@@ -146601,4 +146601,4 @@ export {
|
|
|
146601
146601
|
getDebugBannerLine,
|
|
146602
146602
|
getUtilityBannerlines
|
|
146603
146603
|
};
|
|
146604
|
-
//# sourceMappingURL=chunk-
|
|
146604
|
+
//# sourceMappingURL=chunk-LFQTQLLB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WQY4NQRT.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TM56R4RM.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
22
22
|
moduleDirectory
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3NSN5Z4N.js";
|
|
24
24
|
import {
|
|
25
25
|
init_cjs_shims
|
|
26
26
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -140,4 +140,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
140
140
|
export {
|
|
141
141
|
upgrade
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=chunk-
|
|
143
|
+
//# sourceMappingURL=chunk-LVCMJDAE.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O53RG2PS.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DN4PETPW.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TM56R4RM.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-MU52LLEY.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.71.1";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-NGHX3OJ3.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DN4PETPW.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TM56R4RM.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3NSN5Z4N.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -116,4 +116,4 @@ export {
|
|
|
116
116
|
writeCommandFlagInterface,
|
|
117
117
|
writeCommandUsageExampleFile
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-NZRMJMX6.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WQY4NQRT.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TM56R4RM.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-O53RG2PS.js.map
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
require_src,
|
|
8
8
|
require_supports_color
|
|
9
9
|
} from "./chunk-SNOECVP4.js";
|
|
10
|
-
import {
|
|
11
|
-
require_globby,
|
|
12
|
-
require_indent_string
|
|
13
|
-
} from "./chunk-NEOIQ6PN.js";
|
|
14
10
|
import {
|
|
15
11
|
require_is_wsl
|
|
16
12
|
} from "./chunk-UBB7JKND.js";
|
|
13
|
+
import {
|
|
14
|
+
require_globby,
|
|
15
|
+
require_indent_string
|
|
16
|
+
} from "./chunk-WNDN5FAY.js";
|
|
17
17
|
import {
|
|
18
18
|
__commonJS,
|
|
19
19
|
__require,
|
|
@@ -156515,4 +156515,4 @@ ejs/lib/ejs.js:
|
|
|
156515
156515
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
156516
156516
|
*)
|
|
156517
156517
|
*/
|
|
156518
|
-
//# sourceMappingURL=chunk-
|
|
156518
|
+
//# sourceMappingURL=chunk-OJOHMVV7.js.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
base_command_default
|
|
3
|
+
} from "./chunk-DN4PETPW.js";
|
|
4
|
+
import {
|
|
5
|
+
cacheClear
|
|
6
|
+
} from "./chunk-WQY4NQRT.js";
|
|
7
|
+
import {
|
|
8
|
+
environmentVariables,
|
|
9
|
+
isTruthy
|
|
10
|
+
} from "./chunk-TM56R4RM.js";
|
|
11
|
+
import {
|
|
12
|
+
require_lib
|
|
13
|
+
} from "./chunk-OJOHMVV7.js";
|
|
14
|
+
import {
|
|
15
|
+
__toESM,
|
|
16
|
+
init_cjs_shims
|
|
17
|
+
} from "./chunk-POZ5MGPT.js";
|
|
18
|
+
|
|
19
|
+
// src/cli/commands/cache/clear.ts
|
|
20
|
+
init_cjs_shims();
|
|
21
|
+
|
|
22
|
+
// ../cli-kit/dist/public/node/cli.js
|
|
23
|
+
init_cjs_shims();
|
|
24
|
+
var import_core = __toESM(require_lib());
|
|
25
|
+
async function warnIfOldNodeVersion(versions = process.versions) {
|
|
26
|
+
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
27
|
+
if (nodeMajorVersion < 18) {
|
|
28
|
+
let { renderWarning } = await import("./ui-OIACULNZ.js");
|
|
29
|
+
renderWarning({
|
|
30
|
+
headline: "Upgrade to a supported Node version now.",
|
|
31
|
+
body: [
|
|
32
|
+
`Node ${nodeMajorVersion} has reached end-of-life and poses security risks. When you upgrade to a`,
|
|
33
|
+
{
|
|
34
|
+
link: {
|
|
35
|
+
url: "https://nodejs.dev/en/about/previous-releases",
|
|
36
|
+
label: "supported version"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ char: "," },
|
|
40
|
+
"you'll be able to use Shopify CLI without interruption."
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function setupEnvironmentVariables(options, argv = process.argv, env = process.env) {
|
|
46
|
+
argv.includes("--verbose") && (env.DEBUG = env.DEBUG ?? "*"), options.development && (env.SHOPIFY_CLI_ENV = env.SHOPIFY_CLI_ENV ?? "development");
|
|
47
|
+
}
|
|
48
|
+
function forceNoColor(argv = process.argv, env = process.env) {
|
|
49
|
+
(argv.includes("--no-color") || isTruthy(env.NO_COLOR) || isTruthy(env.SHOPIFY_FLAG_NO_COLOR) || env.TERM === "dumb") && (env.FORCE_COLOR = "0");
|
|
50
|
+
}
|
|
51
|
+
async function runCLI(options, launchCLI, argv = process.argv, env = process.env, versions = process.versions) {
|
|
52
|
+
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions), launchCLI({ moduleURL: options.moduleURL });
|
|
53
|
+
}
|
|
54
|
+
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
55
|
+
let { findUpAndReadPackageJson } = await import("./node-package-manager-6PHP23VI.js"), { moduleDirectory } = await import("./path-5SZGULBR.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
56
|
+
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
57
|
+
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
58
|
+
argv.splice(initIndex2, 0, "init");
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
var globalFlags = {
|
|
62
|
+
"no-color": import_core.Flags.boolean({
|
|
63
|
+
hidden: !1,
|
|
64
|
+
description: "Disable color output.",
|
|
65
|
+
env: "SHOPIFY_FLAG_NO_COLOR"
|
|
66
|
+
}),
|
|
67
|
+
verbose: import_core.Flags.boolean({
|
|
68
|
+
hidden: !1,
|
|
69
|
+
description: "Increase the verbosity of the output.",
|
|
70
|
+
env: "SHOPIFY_FLAG_VERBOSE"
|
|
71
|
+
})
|
|
72
|
+
}, jsonFlag = {
|
|
73
|
+
json: import_core.Flags.boolean({
|
|
74
|
+
char: "j",
|
|
75
|
+
description: "Output the result as JSON.",
|
|
76
|
+
hidden: !1,
|
|
77
|
+
default: !1,
|
|
78
|
+
env: environmentVariables.json
|
|
79
|
+
})
|
|
80
|
+
};
|
|
81
|
+
function clearCache() {
|
|
82
|
+
cacheClear();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// src/cli/commands/cache/clear.ts
|
|
86
|
+
var ClearCache = class extends base_command_default {
|
|
87
|
+
static {
|
|
88
|
+
this.description = "Clear the CLI cache, used to store some API responses and handle notifications status";
|
|
89
|
+
}
|
|
90
|
+
static {
|
|
91
|
+
this.hidden = !0;
|
|
92
|
+
}
|
|
93
|
+
async run() {
|
|
94
|
+
clearCache();
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
runCLI,
|
|
100
|
+
globalFlags,
|
|
101
|
+
jsonFlag,
|
|
102
|
+
ClearCache
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=chunk-OSIMKPXN.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TM56R4RM.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -76,7 +76,11 @@ async function staticService() {
|
|
|
76
76
|
title: "Custom section",
|
|
77
77
|
body: {
|
|
78
78
|
list: {
|
|
79
|
-
items: [
|
|
79
|
+
items: [
|
|
80
|
+
{ link: { label: "Item 1", url: "https://shopify.com" } },
|
|
81
|
+
"Item 2",
|
|
82
|
+
{ link: { url: "https://community.shopify.com/" } }
|
|
83
|
+
]
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
},
|
|
@@ -185,4 +189,4 @@ async function staticService() {
|
|
|
185
189
|
export {
|
|
186
190
|
staticService
|
|
187
191
|
};
|
|
188
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-PGVLZNNX.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZINX4YDI.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DN4PETPW.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-PPETSPYI.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
fetch
|
|
3
|
-
|
|
2
|
+
fetch,
|
|
3
|
+
jsonOutputEnabled,
|
|
4
|
+
z
|
|
5
|
+
} from "./chunk-L5QY66M5.js";
|
|
6
|
+
import {
|
|
7
|
+
CLI_KIT_VERSION
|
|
8
|
+
} from "./chunk-NGHX3OJ3.js";
|
|
4
9
|
import {
|
|
5
10
|
cacheRetrieve,
|
|
6
11
|
cacheRetrieveOrRepopulate,
|
|
7
12
|
cacheStore,
|
|
8
13
|
versionSatisfies
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
CLI_KIT_VERSION
|
|
12
|
-
} from "./chunk-43YGIE7Y.js";
|
|
13
|
-
import {
|
|
14
|
-
z
|
|
15
|
-
} from "./chunk-NLUGD7PZ.js";
|
|
14
|
+
} from "./chunk-WQY4NQRT.js";
|
|
16
15
|
import {
|
|
17
16
|
AbortSilentError,
|
|
17
|
+
isTruthy,
|
|
18
18
|
outputDebug,
|
|
19
19
|
renderError,
|
|
20
20
|
renderInfo,
|
|
21
21
|
renderWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TM56R4RM.js";
|
|
23
23
|
import {
|
|
24
24
|
init_cjs_shims
|
|
25
25
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -63,8 +63,10 @@ var NotificationSchema = z.object({
|
|
|
63
63
|
commands: z.array(z.string()).optional(),
|
|
64
64
|
surface: z.string().optional()
|
|
65
65
|
}), NotificationsSchema = z.object({ notifications: z.array(NotificationSchema) });
|
|
66
|
-
async function showNotificationsIfNeeded(currentSurfaces) {
|
|
66
|
+
async function showNotificationsIfNeeded(currentSurfaces, environment = process.env) {
|
|
67
67
|
try {
|
|
68
|
+
if (skipNotifications(environment))
|
|
69
|
+
return;
|
|
68
70
|
let notifications = await getNotifications(), commandId = getCurrentCommandId(), notificationsToShow = filterNotifications(notifications.notifications, commandId, currentSurfaces);
|
|
69
71
|
outputDebug(`Notifications to show: ${notificationsToShow.length}`), await renderNotifications(notificationsToShow);
|
|
70
72
|
} catch (error) {
|
|
@@ -72,10 +74,13 @@ async function showNotificationsIfNeeded(currentSurfaces) {
|
|
|
72
74
|
throw new AbortSilentError();
|
|
73
75
|
let errorMessage = `Error retrieving notifications: ${error.message}`;
|
|
74
76
|
outputDebug(errorMessage);
|
|
75
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
77
|
+
let { sendErrorToBugsnag } = await import("./error-handler-VW3Z4CSO.js");
|
|
76
78
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
77
79
|
}
|
|
78
80
|
}
|
|
81
|
+
function skipNotifications(environment) {
|
|
82
|
+
return isTruthy(environment.CI) || isTruthy(environment.SHOPIFY_UNIT_TEST) || jsonOutputEnabled(environment);
|
|
83
|
+
}
|
|
79
84
|
async function renderNotifications(notifications) {
|
|
80
85
|
notifications.slice(0, 2).forEach((notification) => {
|
|
81
86
|
let content = {
|
|
@@ -157,4 +162,4 @@ export {
|
|
|
157
162
|
getNotifications,
|
|
158
163
|
stringifyFilters
|
|
159
164
|
};
|
|
160
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-RJ26EKJZ.js.map
|
|
@@ -4,19 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4BWP64T3.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
runWithRateLimit
|
|
13
|
-
} from "./chunk-FDJVVEGH.js";
|
|
10
|
+
} from "./chunk-2S2TOSUR.js";
|
|
14
11
|
import {
|
|
15
12
|
CLI_KIT_VERSION
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NGHX3OJ3.js";
|
|
14
|
+
import {
|
|
15
|
+
runWithRateLimit
|
|
16
|
+
} from "./chunk-WQY4NQRT.js";
|
|
17
17
|
import {
|
|
18
18
|
AbortSilentError,
|
|
19
19
|
CancelExecution,
|
|
20
|
+
bugsnagApiKey,
|
|
20
21
|
cleanSingleStackTracePath,
|
|
21
22
|
errorMapper,
|
|
22
23
|
getAllPublicMetadata,
|
|
@@ -24,24 +25,20 @@ import {
|
|
|
24
25
|
handler,
|
|
25
26
|
outputDebug,
|
|
26
27
|
outputInfo,
|
|
27
|
-
|
|
28
|
+
reportingRateLimit,
|
|
28
29
|
require_stacktracey,
|
|
29
30
|
shouldReportErrorAsUnexpected
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
bugsnagApiKey,
|
|
33
|
-
reportingRateLimit
|
|
34
|
-
} from "./chunk-XEDHKQZA.js";
|
|
31
|
+
} from "./chunk-TM56R4RM.js";
|
|
35
32
|
import {
|
|
36
33
|
cwd,
|
|
37
34
|
isAbsolutePath,
|
|
38
35
|
joinPath,
|
|
39
36
|
normalizePath,
|
|
40
37
|
relativePath
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3NSN5Z4N.js";
|
|
42
39
|
import {
|
|
43
40
|
require_lib
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-OJOHMVV7.js";
|
|
45
42
|
import {
|
|
46
43
|
__commonJS,
|
|
47
44
|
__require,
|
|
@@ -2048,10 +2045,8 @@ import { realpath } from "fs/promises";
|
|
|
2048
2045
|
async function errorHandler(error, config) {
|
|
2049
2046
|
if (error instanceof CancelExecution)
|
|
2050
2047
|
error.message && error.message !== "" && outputInfo(`\u2728 ${error.message}`);
|
|
2051
|
-
else if (error instanceof AbortSilentError)
|
|
2052
|
-
|
|
2053
|
-
else
|
|
2054
|
-
return errorMapper(error).then((error2) => handler(error2)).then((mappedError) => (printEventsJson(), reportError(mappedError, config)));
|
|
2048
|
+
else if (!(error instanceof AbortSilentError))
|
|
2049
|
+
return errorMapper(error).then((error2) => handler(error2)).then((mappedError) => reportError(mappedError, config));
|
|
2055
2050
|
}
|
|
2056
2051
|
var reportError = async (error, config) => {
|
|
2057
2052
|
let exitMode = "expected_error";
|
|
@@ -2152,4 +2147,4 @@ export {
|
|
|
2152
2147
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2153
2148
|
addBugsnagMetadata
|
|
2154
2149
|
};
|
|
2155
|
-
//# sourceMappingURL=chunk-
|
|
2150
|
+
//# sourceMappingURL=chunk-RWUKHJPN.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NGHX3OJ3.js";
|
|
4
4
|
import {
|
|
5
5
|
outputInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TM56R4RM.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -17,4 +17,4 @@ async function versionService() {
|
|
|
17
17
|
export {
|
|
18
18
|
versionService
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=chunk-
|
|
20
|
+
//# sourceMappingURL=chunk-RYLVSBYA.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24P2IYB3.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DN4PETPW.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -25,4 +25,4 @@ var Generate = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
Generate
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-SBXDGZUV.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JJUWGFVJ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DN4PETPW.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TM56R4RM.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-SQN45NED.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCollectedLogs,
|
|
3
3
|
collectedLogs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TM56R4RM.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-TFYGB36T.js.map
|