@shopify/cli 3.59.3 → 3.60.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/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +1 -1
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +1 -1
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/extension/syncer/extension_serve_job.rb +1 -18
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb +1 -1
- package/dist/assets/cli-ruby/test/shopify-cli/theme/dev_server/proxy_test.rb +21 -8
- package/dist/{chokidar-DGBVSVUZ.js → chokidar-DOC6OXDL.js} +3 -3
- package/dist/chunk-23EONB5V.js +2488 -0
- package/dist/{chunk-AXXAG7WU.js → chunk-3JLUTHGR.js} +1 -1
- package/dist/{chunk-7ZP3BQHT.js → chunk-3MBQVTEX.js} +1 -1
- package/dist/{chunk-3MMF34G4.js → chunk-4AOK4O3R.js} +14196 -14093
- package/dist/{chunk-53M3MKPI.js → chunk-4LDHNDYE.js} +5 -5
- package/dist/{chunk-PAZZ5BCS.js → chunk-5AS274TH.js} +2 -2
- package/dist/{chunk-7D6QIBBS.js → chunk-5R5555YE.js} +2 -2
- package/dist/{chunk-SIH2DDL6.js → chunk-6HKMY2UF.js} +3 -3
- package/dist/{chunk-FS2KWH4D.js → chunk-6IDIGZKI.js} +3 -3
- package/dist/{chunk-WD7SEY5L.js → chunk-76FPU4Y4.js} +6 -6
- package/dist/{chunk-GG6BKQB7.js → chunk-7DPKKYLI.js} +4 -4
- package/dist/{chunk-WBWFZ6IT.js → chunk-7P2SWIQY.js} +1 -1
- package/dist/{chunk-LIWGTANH.js → chunk-A63WAXQ5.js} +2 -2
- package/dist/{chunk-SMULJJG3.js → chunk-BE73NZXB.js} +1 -1
- package/dist/{chunk-DLDVLYHU.js → chunk-BKLNHG3A.js} +20 -16
- package/dist/{chunk-JCAIZOYO.js → chunk-FBB6KUZG.js} +1 -1
- package/dist/{chunk-SA32EMWV.js → chunk-FQIRJADJ.js} +1 -1
- package/dist/{chunk-YLPWACJJ.js → chunk-FWGRGI4R.js} +1 -1
- package/dist/{chunk-M336AND6.js → chunk-G6FN5VUE.js} +2 -2
- package/dist/{chunk-566AK3QG.js → chunk-GXPKATXW.js} +1 -1
- package/dist/{chunk-MWCOJGV6.js → chunk-GZXEPYCR.js} +2 -2
- package/dist/{chunk-IUKVZDDI.js → chunk-I5U2GOJX.js} +3 -3
- package/dist/{chunk-764QFYJX.js → chunk-IDJLU3F6.js} +4 -4
- package/dist/{chunk-YNJ3FUKX.js → chunk-IKV3JAIE.js} +4 -4
- package/dist/{chunk-TKNIQF4H.js → chunk-IN5IG3IS.js} +2 -2
- package/dist/{chunk-CXG2USMP.js → chunk-IUHH3PST.js} +1 -1
- package/dist/{chunk-Q3AO7F62.js → chunk-KDOLMUJB.js} +1 -1
- package/dist/{chunk-HVHJU6BK.js → chunk-KPUG3N6O.js} +7 -7
- package/dist/{chunk-6MJ52OLD.js → chunk-LKGDG6WW.js} +1 -1
- package/dist/{chunk-GPBOTRYV.js → chunk-M2LKXZGR.js} +9 -9
- package/dist/{chunk-BVGYIZ3O.js → chunk-M63RTPGR.js} +0 -7
- package/dist/chunk-MSXPXGEQ.js +176 -0
- package/dist/{chunk-SDNI4T2T.js → chunk-OK6RFX7A.js} +14 -13
- package/dist/{chunk-QI5VKSMW.js → chunk-OVPEO3GL.js} +2 -2
- package/dist/{chunk-FWZYDOOO.js → chunk-QE677YMX.js} +2 -2
- package/dist/{chunk-NLMW7YYN.js → chunk-QGJ5DP4W.js} +5 -5
- package/dist/{chunk-24FJTPDB.js → chunk-QNRAAJ6E.js} +4 -4
- package/dist/{chunk-WI3E2P3B.js → chunk-QTHWTF4X.js} +2 -2
- package/dist/{chunk-4N5YPEOH.js → chunk-QU5QY6ID.js} +4 -4
- package/dist/{chunk-OIWSTE6V.js → chunk-R2FRHR2E.js} +3 -3
- package/dist/{chunk-CYG4QPQ3.js → chunk-RQ24VTW4.js} +1 -1
- package/dist/{chunk-ZQSNWZD4.js → chunk-S42TVKB4.js} +3 -3
- package/dist/{chunk-BEYT7IAV.js → chunk-SQR2WUOU.js} +14 -10
- package/dist/{chunk-37WSDC6Z.js → chunk-STBFB2GC.js} +3 -3
- package/dist/{chunk-7SNGGY5B.js → chunk-TMGCRPEZ.js} +1 -1
- package/dist/{chunk-3CU2FNWB.js → chunk-TZ5DL7CA.js} +3 -3
- package/dist/{chunk-PNZIXRIF.js → chunk-UJNJ5XCL.js} +9 -2487
- package/dist/{chunk-TOONJ2CA.js → chunk-UQNUIOTG.js} +2 -2
- package/dist/{chunk-LOF3ZXQM.js → chunk-VNBOO6TJ.js} +64 -2
- package/dist/{chunk-RRHAA7U3.js → chunk-VQWQFBVA.js} +2 -2
- package/dist/{chunk-QBOF3CYT.js → chunk-WC5J3EVR.js} +5 -5
- package/dist/{chunk-P52UWCZD.js → chunk-WCNR75S2.js} +1 -1
- package/dist/{chunk-HEOKQONH.js → chunk-WWX3LICJ.js} +14 -11
- package/dist/{chunk-OVCQRTZZ.js → chunk-Z3ORRLFL.js} +3 -3
- package/dist/{chunk-LJA4EOTX.js → chunk-ZDPFPYD3.js} +5 -5
- package/dist/cli/commands/auth/logout.js +28 -28
- package/dist/cli/commands/auth/logout.test.js +30 -30
- package/dist/cli/commands/debug/command-flags.js +26 -26
- package/dist/cli/commands/demo/catalog.js +28 -28
- package/dist/cli/commands/demo/generate-file.js +29 -29
- package/dist/cli/commands/demo/index.js +27 -27
- package/dist/cli/commands/demo/print-ai-prompt.js +29 -29
- package/dist/cli/commands/docs/generate.js +26 -26
- package/dist/cli/commands/docs/generate.js.map +1 -1
- package/dist/cli/commands/docs/generate.test.js +30 -27
- package/dist/cli/commands/help.js +26 -26
- package/dist/cli/commands/hydrogen/init.js +26 -26
- package/dist/cli/commands/kitchen-sink/async.js +27 -27
- package/dist/cli/commands/kitchen-sink/async.test.js +28 -28
- package/dist/cli/commands/kitchen-sink/index.js +29 -29
- package/dist/cli/commands/kitchen-sink/index.test.js +30 -30
- package/dist/cli/commands/kitchen-sink/prompts.js +27 -27
- package/dist/cli/commands/kitchen-sink/prompts.test.js +28 -28
- package/dist/cli/commands/kitchen-sink/static.js +27 -27
- package/dist/cli/commands/kitchen-sink/static.test.js +28 -28
- package/dist/cli/commands/search.js +27 -27
- package/dist/cli/commands/upgrade.js +26 -26
- package/dist/cli/commands/upgrade.test.js +4 -4
- package/dist/cli/commands/version.js +27 -27
- package/dist/cli/commands/version.test.js +28 -28
- package/dist/cli/services/commands/search.js +16 -17
- package/dist/cli/services/commands/search.test.js +17 -18
- package/dist/cli/services/commands/version.js +19 -19
- package/dist/cli/services/commands/version.test.js +21 -21
- package/dist/cli/services/demo.js +17 -18
- package/dist/cli/services/demo.test.js +18 -19
- package/dist/cli/services/kitchen-sink/async.js +16 -17
- package/dist/cli/services/kitchen-sink/prompts.js +16 -17
- package/dist/cli/services/kitchen-sink/static.js +16 -17
- package/dist/cli/services/upgrade.js +18 -18
- package/dist/cli/services/upgrade.test.js +21 -21
- package/dist/{constants-OQPDSWGZ.js → constants-3B4PKIC7.js} +4 -4
- package/dist/{custom-oclif-loader-C3NJVUH5.js → custom-oclif-loader-SV4V5NXW.js} +15 -16
- package/dist/data/app_block_entry.json +13 -0
- package/dist/data/default_setting_values.json +24 -0
- package/dist/data/filters.json +5818 -0
- package/dist/data/latest.json +2 -0
- package/dist/data/local_block_entry.json +25 -0
- package/dist/data/manifest_theme.json +17 -0
- package/dist/data/manifest_theme_app_extension.json +10 -0
- package/dist/data/objects.json +21250 -0
- package/dist/data/section.json +241 -0
- package/dist/data/setting.json +913 -0
- package/dist/data/settings.json +10 -0
- package/dist/data/shopify_system_translations.json +1882 -0
- package/dist/data/tags.json +1273 -0
- package/dist/data/targetted_block_entry.json +15 -0
- package/dist/data/theme_block.json +123 -0
- package/dist/data/theme_block_entry.json +14 -0
- package/dist/data/theme_settings.json +83 -0
- package/dist/data/translations.json +56 -0
- package/dist/{del-HVOV3MSN.js → del-5I7QSZXM.js} +7 -8
- package/dist/{devtools-SPNRC62Y.js → devtools-KQM4GF6J.js} +1 -1
- package/dist/error-handler-WRZSR3LR.js +37 -0
- package/dist/hooks/init.js +15 -16
- package/dist/hooks/postrun.js +23 -23
- package/dist/hooks/prerun.js +19 -19
- package/dist/{http-proxy-UXKO35LH.js → http-proxy-42DFA6MY.js} +2 -2
- package/dist/index.js +7843 -7196
- package/dist/{lib-2EBQB76J.js → lib-AAMRQUES.js} +3 -3
- package/dist/lib-KV4KCWH7.js +11 -0
- package/dist/{local-LOUQD2TP.js → local-A6DCNVDB.js} +15 -16
- package/dist/{magic-string.es-XWLPTYL2.js → magic-string.es-6WMSFIAX.js} +1 -1
- package/dist/{multipart-parser-KUMTOIY4.js → multipart-parser-O2BQODS2.js} +2 -2
- package/dist/{node-package-manager-HN2BURTH.js → node-package-manager-CLN2ZN2M.js} +17 -17
- package/dist/npa-VW3Y6UCQ.js +2262 -0
- package/dist/{open-4QOBUNAV.js → open-B7XFJJCK.js} +2 -2
- package/dist/out-MH5VOFOS.js +6 -0
- package/dist/{path-NJJ6ID3F.js → path-HO4HBKK5.js} +3 -3
- package/dist/system-OPIC6REP.js +28 -0
- package/dist/templates/ui-extensions/projects/web_pixel_extension/package.json.liquid +1 -1
- package/dist/templates/ui-extensions/projects/web_pixel_extension/src/index.liquid +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-36MRS2GL.js → ui-WTE37V74.js} +15 -16
- package/oclif.manifest.json +99 -30
- package/package.json +7 -6
- package/dist/assets/cli-ruby/test/shopify-cli/theme/extension/syncer_test.rb +0 -82
- package/dist/chunk-F6GZ5SSL.js +0 -69
- package/dist/error-handler-WFXXE3PZ.js +0 -37
- package/dist/favicon-4808307e.ico +0 -0
- package/dist/index-878807df.js +0 -5
- package/dist/index-a69a7f3d.js +0 -7
- package/dist/index-e6f8190d.js +0 -953
- package/dist/lib-ZHR6CBL4.js +0 -12
- package/dist/out-K5X4ON7U.js +0 -6
- package/dist/package-9a1ede4a.json +0 -268
- package/dist/shell-FSGSHXVH.js +0 -2517
- package/dist/style-49513a24.css +0 -58
- package/dist/system-PSH5D5DY.js +0 -29
- package/dist/yarn-e8df42e5.js +0 -31
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_semver
|
|
3
|
+
} from "./chunk-23EONB5V.js";
|
|
4
|
+
import {
|
|
5
|
+
__commonJS,
|
|
6
|
+
init_cjs_shims
|
|
7
|
+
} from "./chunk-M63RTPGR.js";
|
|
8
|
+
|
|
9
|
+
// ../../node_modules/.pnpm/builtins@5.0.1/node_modules/builtins/index.js
|
|
10
|
+
var require_builtins = __commonJS({
|
|
11
|
+
"../../node_modules/.pnpm/builtins@5.0.1/node_modules/builtins/index.js"(exports, module) {
|
|
12
|
+
"use strict";
|
|
13
|
+
init_cjs_shims();
|
|
14
|
+
var semver = require_semver();
|
|
15
|
+
var permanentModules = [
|
|
16
|
+
"assert",
|
|
17
|
+
"buffer",
|
|
18
|
+
"child_process",
|
|
19
|
+
"cluster",
|
|
20
|
+
"console",
|
|
21
|
+
"constants",
|
|
22
|
+
"crypto",
|
|
23
|
+
"dgram",
|
|
24
|
+
"dns",
|
|
25
|
+
"domain",
|
|
26
|
+
"events",
|
|
27
|
+
"fs",
|
|
28
|
+
"http",
|
|
29
|
+
"https",
|
|
30
|
+
"module",
|
|
31
|
+
"net",
|
|
32
|
+
"os",
|
|
33
|
+
"path",
|
|
34
|
+
"punycode",
|
|
35
|
+
"querystring",
|
|
36
|
+
"readline",
|
|
37
|
+
"repl",
|
|
38
|
+
"stream",
|
|
39
|
+
"string_decoder",
|
|
40
|
+
"sys",
|
|
41
|
+
"timers",
|
|
42
|
+
"tls",
|
|
43
|
+
"tty",
|
|
44
|
+
"url",
|
|
45
|
+
"util",
|
|
46
|
+
"vm",
|
|
47
|
+
"zlib"
|
|
48
|
+
];
|
|
49
|
+
var versionLockedModules = {
|
|
50
|
+
freelist: "<6.0.0",
|
|
51
|
+
v8: ">=1.0.0",
|
|
52
|
+
process: ">=1.1.0",
|
|
53
|
+
inspector: ">=8.0.0",
|
|
54
|
+
async_hooks: ">=8.1.0",
|
|
55
|
+
http2: ">=8.4.0",
|
|
56
|
+
perf_hooks: ">=8.5.0",
|
|
57
|
+
trace_events: ">=10.0.0",
|
|
58
|
+
worker_threads: ">=12.0.0",
|
|
59
|
+
"node:test": ">=18.0.0"
|
|
60
|
+
};
|
|
61
|
+
var experimentalModules = {
|
|
62
|
+
worker_threads: ">=10.5.0",
|
|
63
|
+
wasi: ">=12.16.0",
|
|
64
|
+
diagnostics_channel: "^14.17.0 || >=15.1.0"
|
|
65
|
+
};
|
|
66
|
+
module.exports = ({ version = process.version, experimental = false } = {}) => {
|
|
67
|
+
const builtins = [...permanentModules];
|
|
68
|
+
for (const [name, semverRange] of Object.entries(versionLockedModules)) {
|
|
69
|
+
if (version === "*" || semver.satisfies(version, semverRange)) {
|
|
70
|
+
builtins.push(name);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (experimental) {
|
|
74
|
+
for (const [name, semverRange] of Object.entries(experimentalModules)) {
|
|
75
|
+
if (!builtins.includes(name) && (version === "*" || semver.satisfies(version, semverRange))) {
|
|
76
|
+
builtins.push(name);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return builtins;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// ../../node_modules/.pnpm/validate-npm-package-name@5.0.0/node_modules/validate-npm-package-name/lib/index.js
|
|
86
|
+
var require_lib = __commonJS({
|
|
87
|
+
"../../node_modules/.pnpm/validate-npm-package-name@5.0.0/node_modules/validate-npm-package-name/lib/index.js"(exports, module) {
|
|
88
|
+
"use strict";
|
|
89
|
+
init_cjs_shims();
|
|
90
|
+
var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
|
|
91
|
+
var builtins = require_builtins();
|
|
92
|
+
var blacklist = [
|
|
93
|
+
"node_modules",
|
|
94
|
+
"favicon.ico"
|
|
95
|
+
];
|
|
96
|
+
function validate(name) {
|
|
97
|
+
var warnings = [];
|
|
98
|
+
var errors = [];
|
|
99
|
+
if (name === null) {
|
|
100
|
+
errors.push("name cannot be null");
|
|
101
|
+
return done(warnings, errors);
|
|
102
|
+
}
|
|
103
|
+
if (name === void 0) {
|
|
104
|
+
errors.push("name cannot be undefined");
|
|
105
|
+
return done(warnings, errors);
|
|
106
|
+
}
|
|
107
|
+
if (typeof name !== "string") {
|
|
108
|
+
errors.push("name must be a string");
|
|
109
|
+
return done(warnings, errors);
|
|
110
|
+
}
|
|
111
|
+
if (!name.length) {
|
|
112
|
+
errors.push("name length must be greater than zero");
|
|
113
|
+
}
|
|
114
|
+
if (name.match(/^\./)) {
|
|
115
|
+
errors.push("name cannot start with a period");
|
|
116
|
+
}
|
|
117
|
+
if (name.match(/^_/)) {
|
|
118
|
+
errors.push("name cannot start with an underscore");
|
|
119
|
+
}
|
|
120
|
+
if (name.trim() !== name) {
|
|
121
|
+
errors.push("name cannot contain leading or trailing spaces");
|
|
122
|
+
}
|
|
123
|
+
blacklist.forEach(function(blacklistedName) {
|
|
124
|
+
if (name.toLowerCase() === blacklistedName) {
|
|
125
|
+
errors.push(blacklistedName + " is a blacklisted name");
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
builtins({ version: "*" }).forEach(function(builtin) {
|
|
129
|
+
if (name.toLowerCase() === builtin) {
|
|
130
|
+
warnings.push(builtin + " is a core module name");
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
if (name.length > 214) {
|
|
134
|
+
warnings.push("name can no longer contain more than 214 characters");
|
|
135
|
+
}
|
|
136
|
+
if (name.toLowerCase() !== name) {
|
|
137
|
+
warnings.push("name can no longer contain capital letters");
|
|
138
|
+
}
|
|
139
|
+
if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
|
|
140
|
+
warnings.push(`name can no longer contain special characters ("~'!()*")`);
|
|
141
|
+
}
|
|
142
|
+
if (encodeURIComponent(name) !== name) {
|
|
143
|
+
var nameMatch = name.match(scopedPackagePattern);
|
|
144
|
+
if (nameMatch) {
|
|
145
|
+
var user = nameMatch[1];
|
|
146
|
+
var pkg = nameMatch[2];
|
|
147
|
+
if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
|
|
148
|
+
return done(warnings, errors);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
errors.push("name can only contain URL-friendly characters");
|
|
152
|
+
}
|
|
153
|
+
return done(warnings, errors);
|
|
154
|
+
}
|
|
155
|
+
var done = function(warnings, errors) {
|
|
156
|
+
var result = {
|
|
157
|
+
validForNewPackages: errors.length === 0 && warnings.length === 0,
|
|
158
|
+
validForOldPackages: errors.length === 0,
|
|
159
|
+
warnings,
|
|
160
|
+
errors
|
|
161
|
+
};
|
|
162
|
+
if (!result.warnings.length) {
|
|
163
|
+
delete result.warnings;
|
|
164
|
+
}
|
|
165
|
+
if (!result.errors.length) {
|
|
166
|
+
delete result.errors;
|
|
167
|
+
}
|
|
168
|
+
return result;
|
|
169
|
+
};
|
|
170
|
+
module.exports = validate;
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export {
|
|
175
|
+
require_lib
|
|
176
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_signal_exit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQIRJADJ.js";
|
|
4
4
|
import {
|
|
5
5
|
require_graceful_fs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FBB6KUZG.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
pathConstants
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OVPEO3GL.js";
|
|
11
11
|
import {
|
|
12
12
|
require_brace_expansion,
|
|
13
13
|
require_cross_spawn,
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
require_source_map,
|
|
17
17
|
require_supports_color,
|
|
18
18
|
require_supports_hyperlinks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4AOK4O3R.js";
|
|
20
20
|
import {
|
|
21
21
|
require_has_flag
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FWGRGI4R.js";
|
|
23
23
|
import {
|
|
24
24
|
cwd,
|
|
25
25
|
joinPath,
|
|
26
26
|
normalizePath,
|
|
27
27
|
relativizePath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-G6FN5VUE.js";
|
|
29
29
|
import {
|
|
30
30
|
pLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-3JLUTHGR.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
__toCommonJS,
|
|
38
38
|
__toESM,
|
|
39
39
|
init_cjs_shims
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-M63RTPGR.js";
|
|
41
41
|
|
|
42
42
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
|
|
43
43
|
var require_listCacheClear = __commonJS({
|
|
@@ -35356,7 +35356,7 @@ async function renameFile(from, to) {
|
|
|
35356
35356
|
await fsRename(from, to);
|
|
35357
35357
|
}
|
|
35358
35358
|
async function rmdir(path7, options = {}) {
|
|
35359
|
-
const { default: del } = await import("./del-
|
|
35359
|
+
const { default: del } = await import("./del-5I7QSZXM.js");
|
|
35360
35360
|
outputDebug(outputContent`Removing directory at ${outputToken.path(path7)}...`);
|
|
35361
35361
|
await del(path7, { force: options.force });
|
|
35362
35362
|
}
|
|
@@ -35425,7 +35425,7 @@ async function generateRandomNameForSubdirectory(options) {
|
|
|
35425
35425
|
}
|
|
35426
35426
|
}
|
|
35427
35427
|
async function glob(pattern, options) {
|
|
35428
|
-
const { default: fastGlob } = await import("./out-
|
|
35428
|
+
const { default: fastGlob } = await import("./out-MH5VOFOS.js");
|
|
35429
35429
|
let overridenOptions = options;
|
|
35430
35430
|
if (options?.dot == null) {
|
|
35431
35431
|
overridenOptions = { ...options, dot: true };
|
|
@@ -36832,7 +36832,7 @@ var $ = create$();
|
|
|
36832
36832
|
|
|
36833
36833
|
// ../cli-kit/src/public/node/system.ts
|
|
36834
36834
|
async function openURL(url2) {
|
|
36835
|
-
const externalOpen = await import("./open-
|
|
36835
|
+
const externalOpen = await import("./open-B7XFJJCK.js");
|
|
36836
36836
|
await externalOpen.default(url2);
|
|
36837
36837
|
}
|
|
36838
36838
|
async function captureOutput(command, args, options) {
|
|
@@ -40302,7 +40302,7 @@ var styles_default = styles4;
|
|
|
40302
40302
|
// ../../node_modules/.pnpm/ink@4.4.1_@types+react@17.0.2_react@18.2.0/node_modules/ink/build/reconciler.js
|
|
40303
40303
|
if (process9.env["DEV"] === "true") {
|
|
40304
40304
|
try {
|
|
40305
|
-
await import("./devtools-
|
|
40305
|
+
await import("./devtools-KQM4GF6J.js");
|
|
40306
40306
|
} catch (error) {
|
|
40307
40307
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
40308
40308
|
console.warn(`
|
|
@@ -43238,7 +43238,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
43238
43238
|
try {
|
|
43239
43239
|
await getAndSet();
|
|
43240
43240
|
} catch (error) {
|
|
43241
|
-
const { sendErrorToBugsnag } = await import("./error-handler-
|
|
43241
|
+
const { sendErrorToBugsnag } = await import("./error-handler-WRZSR3LR.js");
|
|
43242
43242
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
43243
43243
|
}
|
|
43244
43244
|
}
|
|
@@ -45496,6 +45496,7 @@ export {
|
|
|
45496
45496
|
shouldReportError,
|
|
45497
45497
|
cleanSingleStackTracePath,
|
|
45498
45498
|
import_ts_error,
|
|
45499
|
+
pathKey,
|
|
45499
45500
|
mimicFunction,
|
|
45500
45501
|
require_get_stream,
|
|
45501
45502
|
execa,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OK6RFX7A.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-M63RTPGR.js";
|
|
14
14
|
|
|
15
15
|
// src/cli/services/kitchen-sink/static.ts
|
|
16
16
|
init_cjs_shims();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_zod_to_json_schema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IUHH3PST.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z3ORRLFL.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-76FPU4Y4.js";
|
|
10
10
|
import {
|
|
11
11
|
outputInfo,
|
|
12
12
|
renderInfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OK6RFX7A.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-M63RTPGR.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/demo/print-ai-prompt.ts
|
|
20
20
|
init_cjs_shims();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-76FPU4Y4.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OK6RFX7A.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4AOK4O3R.js";
|
|
11
11
|
import {
|
|
12
12
|
__toESM,
|
|
13
13
|
init_cjs_shims
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M63RTPGR.js";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/debug/command-flags.ts
|
|
17
17
|
init_cjs_shims();
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
require_glob_parent,
|
|
4
4
|
require_picomatch,
|
|
5
5
|
require_utils
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RQ24VTW4.js";
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
9
|
__require,
|
|
10
10
|
init_cjs_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M63RTPGR.js";
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js
|
|
14
14
|
var require_array = __commonJS({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UQNUIOTG.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForNewVersion,
|
|
6
6
|
packageManagerFromUserAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UJNJ5XCL.js";
|
|
8
8
|
import {
|
|
9
9
|
getOutputUpdateCLIReminder,
|
|
10
10
|
outputContent,
|
|
11
11
|
outputInfo,
|
|
12
12
|
outputToken
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OK6RFX7A.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M63RTPGR.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/services/commands/version.ts
|
|
19
19
|
init_cjs_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QU5QY6ID.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76FPU4Y4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M63RTPGR.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/version.ts
|
|
12
12
|
init_cjs_shims();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQWQFBVA.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76FPU4Y4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M63RTPGR.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/kitchen-sink/prompts.ts
|
|
12
12
|
init_cjs_shims();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-76FPU4Y4.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OK6RFX7A.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-G6FN5VUE.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M63RTPGR.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/docs/generate.ts
|
|
19
19
|
init_cjs_shims();
|
|
@@ -42,7 +42,7 @@ var DocsGenerate = class extends base_command_default {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
var hiddenTopics = ["commands", "help", "plugins"];
|
|
45
|
-
var
|
|
45
|
+
var generalTopics = ["config", "auth"];
|
|
46
46
|
function isHidden(command) {
|
|
47
47
|
if (command.hidden) {
|
|
48
48
|
hiddenTopics.push(command.id);
|
|
@@ -68,16 +68,18 @@ async function writeCommandDocumentation(command, { commandName, fileName, inter
|
|
|
68
68
|
description: 'The following flags are available for the \`${commandName}\` command:',
|
|
69
69
|
type: '${interfaceName}',
|
|
70
70
|
},`;
|
|
71
|
-
const description = command.descriptionWithMarkdown ?? command.description ?? command.summary;
|
|
72
|
-
const
|
|
73
|
-
const
|
|
71
|
+
const description = command.descriptionWithMarkdown ?? command.description ?? command.summary ?? "";
|
|
72
|
+
const cleanDescription = description?.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, "");
|
|
73
|
+
const previewDescription = command.summary ?? description ?? "";
|
|
74
|
+
const cleanPreview = previewDescription.replace(/`/g, "\\`").replace(/https:\/\/shopify\.dev/g, "");
|
|
75
|
+
const category = hasTopic && !generalTopics.includes(topic) ? topic : "general commands";
|
|
74
76
|
const string = `// This is an autogenerated file. Don't edit this file manually.
|
|
75
77
|
import {ReferenceEntityTemplateSchema} from '@shopify/generate-docs'
|
|
76
78
|
|
|
77
79
|
const data: ReferenceEntityTemplateSchema = {
|
|
78
80
|
name: '${commandName}',
|
|
79
|
-
description: \`${
|
|
80
|
-
overviewPreviewDescription: \`${
|
|
81
|
+
description: \`${cleanDescription}\`,
|
|
82
|
+
overviewPreviewDescription: \`${cleanPreview}\`,
|
|
81
83
|
type: 'command',
|
|
82
84
|
isVisualComponent: false,
|
|
83
85
|
defaultExample: {
|
|
@@ -115,8 +117,10 @@ async function writeCommandFlagInterface(command, { fileName, interfaceName }) {
|
|
|
115
117
|
const type = flag.type === "option" ? "string" : "''";
|
|
116
118
|
const value = flag.type === "option" ? " <value>" : "";
|
|
117
119
|
const optional = flag.required ? "" : "?";
|
|
120
|
+
const envValue = flag.env !== void 0 ? ` @environment ${flag.env}` : "";
|
|
118
121
|
const flagContent = ` /**
|
|
119
122
|
* ${flagDescription}
|
|
123
|
+
*${envValue}
|
|
120
124
|
*/
|
|
121
125
|
'${char}--${flagName}${value}'${optional}: ${type}`;
|
|
122
126
|
return flagContent;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QE677YMX.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-76FPU4Y4.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M63RTPGR.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/kitchen-sink/static.ts
|
|
12
12
|
init_cjs_shims();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__require,
|
|
4
4
|
__toESM,
|
|
5
5
|
init_cjs_shims
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M63RTPGR.js";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js
|
|
9
9
|
var require_ponyfill_es2018 = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_once,
|
|
3
3
|
require_wrappy
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LKGDG6WW.js";
|
|
5
5
|
import {
|
|
6
6
|
require_balanced_match
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VNBOO6TJ.js";
|
|
8
8
|
import {
|
|
9
9
|
__commonJS,
|
|
10
10
|
__require,
|
|
11
11
|
init_cjs_shims
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M63RTPGR.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js
|
|
15
15
|
var require_old = __commonJS({
|