@shopify/cli 3.85.3 → 3.85.5

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.
Files changed (153) hide show
  1. package/dist/assets/hydrogen/bundle/analyzer.html +155 -148
  2. package/dist/assets/hydrogen/starter/CHANGELOG.md +125 -49
  3. package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
  4. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
  5. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
  6. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +62 -29
  7. package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
  8. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
  9. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +2 -2
  10. package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
  11. package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +8 -3
  12. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +3 -11
  13. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +2 -6
  14. package/dist/assets/hydrogen/starter/app/entry.client.tsx +10 -2
  15. package/dist/assets/hydrogen/starter/app/entry.server.tsx +5 -3
  16. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerAddressMutations.ts +7 -4
  17. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +1 -1
  18. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrderQuery.ts +4 -1
  19. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +10 -5
  20. package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +3 -2
  21. package/dist/assets/hydrogen/starter/app/lib/context.ts +34 -17
  22. package/dist/assets/hydrogen/starter/app/lib/fragments.ts +1 -0
  23. package/dist/assets/hydrogen/starter/app/lib/orderFilters.ts +90 -0
  24. package/dist/assets/hydrogen/starter/app/lib/redirect.ts +1 -1
  25. package/dist/assets/hydrogen/starter/app/lib/session.ts +1 -1
  26. package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
  27. package/dist/assets/hydrogen/starter/app/root.tsx +23 -18
  28. package/dist/assets/hydrogen/starter/app/routes/$.tsx +2 -2
  29. package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +2 -2
  30. package/dist/assets/hydrogen/starter/app/routes/[sitemap.xml].tsx +2 -3
  31. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +12 -8
  32. package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +4 -3
  33. package/dist/assets/hydrogen/starter/app/routes/account._index.tsx +1 -1
  34. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +15 -11
  35. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +47 -22
  36. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +152 -23
  37. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +11 -8
  38. package/dist/assets/hydrogen/starter/app/routes/account.tsx +16 -4
  39. package/dist/assets/hydrogen/starter/app/routes/account_.authorize.tsx +2 -2
  40. package/dist/assets/hydrogen/starter/app/routes/account_.login.tsx +5 -3
  41. package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +3 -2
  42. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +2 -2
  43. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +6 -10
  44. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +10 -7
  45. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +13 -7
  46. package/dist/assets/hydrogen/starter/app/routes/cart.$lines.tsx +3 -2
  47. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +13 -9
  48. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +8 -11
  49. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +6 -6
  50. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +10 -7
  51. package/dist/assets/hydrogen/starter/app/routes/discount.$code.tsx +3 -2
  52. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +8 -6
  53. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +7 -4
  54. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +19 -13
  55. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +9 -6
  56. package/dist/assets/hydrogen/starter/app/routes/search.tsx +14 -14
  57. package/dist/assets/hydrogen/starter/app/routes/sitemap.$type.$page[.xml].tsx +2 -3
  58. package/dist/assets/hydrogen/starter/app/routes.ts +1 -1
  59. package/dist/assets/hydrogen/starter/app/styles/app.css +53 -1
  60. package/dist/assets/hydrogen/starter/customer-accountapi.generated.d.ts +47 -13
  61. package/dist/assets/hydrogen/starter/env.d.ts +1 -39
  62. package/dist/assets/hydrogen/starter/eslint.config.js +35 -52
  63. package/dist/assets/hydrogen/starter/package.json +14 -15
  64. package/dist/assets/hydrogen/starter/react-router.config.ts +9 -3
  65. package/dist/assets/hydrogen/starter/server.ts +7 -7
  66. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +1 -1
  67. package/dist/assets/hydrogen/starter/tsconfig.json +17 -13
  68. package/dist/assets/hydrogen/starter/vite.config.ts +3 -0
  69. package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +13 -20
  70. package/dist/assets/hydrogen/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.jsx +37 -0
  71. package/dist/{chokidar-TTCYG5AA.js → chokidar-HTKREZL3.js} +482 -7
  72. package/dist/{chunk-RPU6TIF2.js → chunk-3ULYQTX3.js} +7 -7
  73. package/dist/{chunk-IHXRXBUN.js → chunk-AVSSZ6MY.js} +6 -6
  74. package/dist/{chunk-I4ATBX6D.js → chunk-CHLX44DR.js} +4 -4
  75. package/dist/{chunk-UW4ASA6Y.js → chunk-CQSO2B3C.js} +2 -2
  76. package/dist/{chunk-OQKAZQIC.js → chunk-DHW4GI57.js} +5 -5
  77. package/dist/{chunk-HTTZVPR6.js → chunk-FGSQR4VQ.js} +3 -3
  78. package/dist/{chunk-3XWYM7QS.js → chunk-FMD2ETAR.js} +3 -3
  79. package/dist/{chunk-FGEKMLLA.js → chunk-FRHZJBJZ.js} +5 -5
  80. package/dist/{chunk-Y4H4HMEZ.js → chunk-G2I4CD5D.js} +2 -2
  81. package/dist/{chunk-HS2O5IHL.js → chunk-GG2ELY5O.js} +2 -3
  82. package/dist/{chunk-F7TU455C.js → chunk-GQ63RYWN.js} +2 -2
  83. package/dist/{chunk-VVUZFYUK.js → chunk-IAX3IWUQ.js} +4 -4
  84. package/dist/{chunk-EWEA4LRT.js → chunk-J6T7KVRL.js} +2 -2
  85. package/dist/{chunk-GRVHLYQS.js → chunk-JF6DQIJR.js} +3 -3
  86. package/dist/{chunk-JAUHWNMJ.js → chunk-MDDWB46W.js} +5 -5
  87. package/dist/{chunk-QHKSKL4E.js → chunk-MR763CPY.js} +3 -3
  88. package/dist/{chunk-6A6GDV25.js → chunk-MUZ7NPCX.js} +4 -4
  89. package/dist/{chunk-NLFRHIZY.js → chunk-NMGJYSTC.js} +5 -5
  90. package/dist/{chunk-D5DJSKHK.js → chunk-NTCXWD2Q.js} +111 -112
  91. package/dist/{chunk-HBANZKAF.js → chunk-O2O5GRI6.js} +3 -3
  92. package/dist/{chunk-CAONVM2S.js → chunk-ODJ7LSLO.js} +3 -3
  93. package/dist/{chunk-5RNGA7FX.js → chunk-P46WMXBU.js} +5 -5
  94. package/dist/{chunk-LJXXOFEJ.js → chunk-PFBQBDNU.js} +2 -2
  95. package/dist/{chunk-OURS5IQY.js → chunk-PZUWEJO3.js} +3 -3
  96. package/dist/{chunk-VR6Z7LKU.js → chunk-R6BNSDGA.js} +3 -3
  97. package/dist/{chunk-AMWSD3HH.js → chunk-RAZVOMJW.js} +3 -3
  98. package/dist/{chunk-C45MKMJT.js → chunk-RZPYG7LO.js} +28 -25
  99. package/dist/{chunk-EDXQ22O4.js → chunk-SMBX232U.js} +6 -6
  100. package/dist/{chunk-QP2MOS2Y.js → chunk-TE4CUUT4.js} +2 -2
  101. package/dist/{chunk-V5ONTA7N.js → chunk-TXX6R3WL.js} +2 -2
  102. package/dist/{chunk-L54PNQGV.js → chunk-TYHJPUOR.js} +2 -2
  103. package/dist/{chunk-XJBIASMX.js → chunk-UF2X5VHR.js} +3 -3
  104. package/dist/{chunk-ZHKIKKU7.js → chunk-UQT7B7DM.js} +3 -3
  105. package/dist/{chunk-6RJ7HBOQ.js → chunk-VVDGGMKJ.js} +3 -3
  106. package/dist/cli/commands/auth/login.js +10 -10
  107. package/dist/cli/commands/auth/login.test.js +11 -11
  108. package/dist/cli/commands/auth/logout.js +10 -10
  109. package/dist/cli/commands/auth/logout.test.js +11 -11
  110. package/dist/cli/commands/cache/clear.js +10 -10
  111. package/dist/cli/commands/debug/command-flags.js +10 -10
  112. package/dist/cli/commands/docs/generate.js +10 -10
  113. package/dist/cli/commands/docs/generate.test.js +10 -10
  114. package/dist/cli/commands/help.js +10 -10
  115. package/dist/cli/commands/kitchen-sink/async.js +11 -11
  116. package/dist/cli/commands/kitchen-sink/async.test.js +11 -11
  117. package/dist/cli/commands/kitchen-sink/index.js +13 -13
  118. package/dist/cli/commands/kitchen-sink/index.test.js +13 -13
  119. package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
  120. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -11
  121. package/dist/cli/commands/kitchen-sink/static.js +11 -11
  122. package/dist/cli/commands/kitchen-sink/static.test.js +11 -11
  123. package/dist/cli/commands/notifications/generate.js +11 -11
  124. package/dist/cli/commands/notifications/list.js +11 -11
  125. package/dist/cli/commands/search.js +11 -11
  126. package/dist/cli/commands/upgrade.js +11 -11
  127. package/dist/cli/commands/version.js +11 -11
  128. package/dist/cli/commands/version.test.js +11 -11
  129. package/dist/cli/services/commands/notifications.js +6 -6
  130. package/dist/cli/services/commands/search.js +2 -2
  131. package/dist/cli/services/commands/search.test.js +2 -2
  132. package/dist/cli/services/commands/version.js +3 -3
  133. package/dist/cli/services/commands/version.test.js +4 -4
  134. package/dist/cli/services/kitchen-sink/async.js +2 -2
  135. package/dist/cli/services/kitchen-sink/prompts.js +2 -2
  136. package/dist/cli/services/kitchen-sink/static.js +2 -2
  137. package/dist/cli/services/upgrade.js +3 -3
  138. package/dist/cli/services/upgrade.test.js +4 -4
  139. package/dist/{custom-oclif-loader-YDKLB47A.js → custom-oclif-loader-X7GLA66E.js} +2 -2
  140. package/dist/{error-handler-BYZU2C5C.js → error-handler-QOTWDLMF.js} +8 -8
  141. package/dist/hooks/postrun.js +6 -6
  142. package/dist/hooks/prerun.js +7 -7
  143. package/dist/index.js +1800 -3480
  144. package/dist/{local-XLJD5WYP.js → local-FS3UI7PE.js} +2 -2
  145. package/dist/{morph-5D7H6MU2.js → morph-D4BXY376.js} +9 -9
  146. package/dist/{node-package-manager-I7AWSWJ4.js → node-package-manager-TX3WZQGI.js} +3 -3
  147. package/dist/tsconfig.tsbuildinfo +1 -1
  148. package/dist/{ui-2AJAFJYY.js → ui-PUN5STUM.js} +2 -2
  149. package/dist/{workerd-4DJKRJUB.js → workerd-GJFM5MYN.js} +12 -12
  150. package/oclif.manifest.json +11 -56
  151. package/package.json +8 -8
  152. package/dist/chokidar-XUA2BN3J.js +0 -1120
  153. package/dist/chunk-F7J5CUMZ.js +0 -497
@@ -1,15 +1,11 @@
1
- import {
2
- require_anymatch,
3
- require_is_binary_path,
4
- require_readdirp
5
- } from "./chunk-F7J5CUMZ.js";
6
1
  import {
7
2
  require_normalize_path
8
3
  } from "./chunk-X7YTIMNN.js";
9
4
  import {
10
5
  require_braces,
11
6
  require_glob_parent,
12
- require_is_glob
7
+ require_is_glob,
8
+ require_picomatch
13
9
  } from "./chunk-7IK72W75.js";
14
10
  import {
15
11
  __commonJS,
@@ -17,6 +13,485 @@ import {
17
13
  init_cjs_shims
18
14
  } from "./chunk-PKR7KJ6P.js";
19
15
 
16
+ // ../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js
17
+ var require_readdirp = __commonJS({
18
+ "../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js"(exports, module) {
19
+ "use strict";
20
+ init_cjs_shims();
21
+ var fs = __require("fs"), { Readable } = __require("stream"), sysPath = __require("path"), { promisify } = __require("util"), picomatch = require_picomatch(), readdir = promisify(fs.readdir), stat = promisify(fs.stat), lstat = promisify(fs.lstat), realpath = promisify(fs.realpath), BANG = "!", RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR", NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]), FILE_TYPE = "files", DIR_TYPE = "directories", FILE_DIR_TYPE = "files_directories", EVERYTHING_TYPE = "all", ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE], isNormalFlowError = (error) => NORMAL_FLOW_ERRORS.has(error.code), [maj, min] = process.versions.node.split(".").slice(0, 2).map((n) => Number.parseInt(n, 10)), wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5), normalizeFilter = (filter) => {
22
+ if (filter !== void 0) {
23
+ if (typeof filter == "function") return filter;
24
+ if (typeof filter == "string") {
25
+ let glob = picomatch(filter.trim());
26
+ return (entry) => glob(entry.basename);
27
+ }
28
+ if (Array.isArray(filter)) {
29
+ let positive = [], negative = [];
30
+ for (let item of filter) {
31
+ let trimmed = item.trim();
32
+ trimmed.charAt(0) === BANG ? negative.push(picomatch(trimmed.slice(1))) : positive.push(picomatch(trimmed));
33
+ }
34
+ return negative.length > 0 ? positive.length > 0 ? (entry) => positive.some((f) => f(entry.basename)) && !negative.some((f) => f(entry.basename)) : (entry) => !negative.some((f) => f(entry.basename)) : (entry) => positive.some((f) => f(entry.basename));
35
+ }
36
+ }
37
+ }, ReaddirpStream = class _ReaddirpStream extends Readable {
38
+ static get defaultOptions() {
39
+ return {
40
+ root: ".",
41
+ /* eslint-disable no-unused-vars */
42
+ fileFilter: (path) => !0,
43
+ directoryFilter: (path) => !0,
44
+ /* eslint-enable no-unused-vars */
45
+ type: FILE_TYPE,
46
+ lstat: !1,
47
+ depth: 2147483648,
48
+ alwaysStat: !1
49
+ };
50
+ }
51
+ constructor(options = {}) {
52
+ super({
53
+ objectMode: !0,
54
+ autoDestroy: !0,
55
+ highWaterMark: options.highWaterMark || 4096
56
+ });
57
+ let opts = { ..._ReaddirpStream.defaultOptions, ...options }, { root, type } = opts;
58
+ this._fileFilter = normalizeFilter(opts.fileFilter), this._directoryFilter = normalizeFilter(opts.directoryFilter);
59
+ let statMethod = opts.lstat ? lstat : stat;
60
+ wantBigintFsStats ? this._stat = (path) => statMethod(path, { bigint: !0 }) : this._stat = statMethod, this._maxDepth = opts.depth, this._wantsDir = [DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type), this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type), this._wantsEverything = type === EVERYTHING_TYPE, this._root = sysPath.resolve(root), this._isDirent = "Dirent" in fs && !opts.alwaysStat, this._statsProp = this._isDirent ? "dirent" : "stats", this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent }, this.parents = [this._exploreDir(root, 1)], this.reading = !1, this.parent = void 0;
61
+ }
62
+ async _read(batch) {
63
+ if (!this.reading) {
64
+ this.reading = !0;
65
+ try {
66
+ for (; !this.destroyed && batch > 0; ) {
67
+ let { path, depth, files = [] } = this.parent || {};
68
+ if (files.length > 0) {
69
+ let slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path));
70
+ for (let entry of await Promise.all(slice)) {
71
+ if (this.destroyed) return;
72
+ let entryType = await this._getEntryType(entry);
73
+ entryType === "directory" && this._directoryFilter(entry) ? (depth <= this._maxDepth && this.parents.push(this._exploreDir(entry.fullPath, depth + 1)), this._wantsDir && (this.push(entry), batch--)) : (entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry) && this._wantsFile && (this.push(entry), batch--);
74
+ }
75
+ } else {
76
+ let parent = this.parents.pop();
77
+ if (!parent) {
78
+ this.push(null);
79
+ break;
80
+ }
81
+ if (this.parent = await parent, this.destroyed) return;
82
+ }
83
+ }
84
+ } catch (error) {
85
+ this.destroy(error);
86
+ } finally {
87
+ this.reading = !1;
88
+ }
89
+ }
90
+ }
91
+ async _exploreDir(path, depth) {
92
+ let files;
93
+ try {
94
+ files = await readdir(path, this._rdOptions);
95
+ } catch (error) {
96
+ this._onError(error);
97
+ }
98
+ return { files, depth, path };
99
+ }
100
+ async _formatEntry(dirent, path) {
101
+ let entry;
102
+ try {
103
+ let basename = this._isDirent ? dirent.name : dirent, fullPath = sysPath.resolve(sysPath.join(path, basename));
104
+ entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename }, entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
105
+ } catch (err) {
106
+ this._onError(err);
107
+ }
108
+ return entry;
109
+ }
110
+ _onError(err) {
111
+ isNormalFlowError(err) && !this.destroyed ? this.emit("warn", err) : this.destroy(err);
112
+ }
113
+ async _getEntryType(entry) {
114
+ let stats = entry && entry[this._statsProp];
115
+ if (stats) {
116
+ if (stats.isFile())
117
+ return "file";
118
+ if (stats.isDirectory())
119
+ return "directory";
120
+ if (stats && stats.isSymbolicLink()) {
121
+ let full = entry.fullPath;
122
+ try {
123
+ let entryRealPath = await realpath(full), entryRealPathStats = await lstat(entryRealPath);
124
+ if (entryRealPathStats.isFile())
125
+ return "file";
126
+ if (entryRealPathStats.isDirectory()) {
127
+ let len = entryRealPath.length;
128
+ if (full.startsWith(entryRealPath) && full.substr(len, 1) === sysPath.sep) {
129
+ let recursiveError = new Error(
130
+ `Circular symlink detected: "${full}" points to "${entryRealPath}"`
131
+ );
132
+ return recursiveError.code = RECURSIVE_ERROR_CODE, this._onError(recursiveError);
133
+ }
134
+ return "directory";
135
+ }
136
+ } catch (error) {
137
+ this._onError(error);
138
+ }
139
+ }
140
+ }
141
+ }
142
+ _includeAsFile(entry) {
143
+ let stats = entry && entry[this._statsProp];
144
+ return stats && this._wantsEverything && !stats.isDirectory();
145
+ }
146
+ }, readdirp = (root, options = {}) => {
147
+ let type = options.entryType || options.type;
148
+ if (type === "both" && (type = FILE_DIR_TYPE), type && (options.type = type), root) {
149
+ if (typeof root != "string")
150
+ throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
151
+ if (type && !ALL_TYPES.includes(type))
152
+ throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
153
+ } else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
154
+ return options.root = root, new ReaddirpStream(options);
155
+ }, readdirpPromise = (root, options = {}) => new Promise((resolve, reject) => {
156
+ let files = [];
157
+ readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve(files)).on("error", (error) => reject(error));
158
+ });
159
+ readdirp.promise = readdirpPromise;
160
+ readdirp.ReaddirpStream = ReaddirpStream;
161
+ readdirp.default = readdirp;
162
+ module.exports = readdirp;
163
+ }
164
+ });
165
+
166
+ // ../../node_modules/.pnpm/anymatch@3.1.3/node_modules/anymatch/index.js
167
+ var require_anymatch = __commonJS({
168
+ "../../node_modules/.pnpm/anymatch@3.1.3/node_modules/anymatch/index.js"(exports, module) {
169
+ "use strict";
170
+ init_cjs_shims();
171
+ Object.defineProperty(exports, "__esModule", { value: !0 });
172
+ var picomatch = require_picomatch(), normalizePath = require_normalize_path(), BANG = "!", DEFAULT_OPTIONS = { returnIndex: !1 }, arrify = (item) => Array.isArray(item) ? item : [item], createPattern = (matcher, options) => {
173
+ if (typeof matcher == "function")
174
+ return matcher;
175
+ if (typeof matcher == "string") {
176
+ let glob = picomatch(matcher, options);
177
+ return (string) => matcher === string || glob(string);
178
+ }
179
+ return matcher instanceof RegExp ? (string) => matcher.test(string) : (string) => !1;
180
+ }, matchPatterns = (patterns, negPatterns, args, returnIndex) => {
181
+ let isList = Array.isArray(args), _path = isList ? args[0] : args;
182
+ if (!isList && typeof _path != "string")
183
+ throw new TypeError("anymatch: second argument must be a string: got " + Object.prototype.toString.call(_path));
184
+ let path = normalizePath(_path, !1);
185
+ for (let index = 0; index < negPatterns.length; index++) {
186
+ let nglob = negPatterns[index];
187
+ if (nglob(path))
188
+ return returnIndex ? -1 : !1;
189
+ }
190
+ let applied = isList && [path].concat(args.slice(1));
191
+ for (let index = 0; index < patterns.length; index++) {
192
+ let pattern = patterns[index];
193
+ if (isList ? pattern(...applied) : pattern(path))
194
+ return returnIndex ? index : !0;
195
+ }
196
+ return returnIndex ? -1 : !1;
197
+ }, anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
198
+ if (matchers == null)
199
+ throw new TypeError("anymatch: specify first argument");
200
+ let opts = typeof options == "boolean" ? { returnIndex: options } : options, returnIndex = opts.returnIndex || !1, mtchers = arrify(matchers), negatedGlobs = mtchers.filter((item) => typeof item == "string" && item.charAt(0) === BANG).map((item) => item.slice(1)).map((item) => picomatch(item, opts)), patterns = mtchers.filter((item) => typeof item != "string" || typeof item == "string" && item.charAt(0) !== BANG).map((matcher) => createPattern(matcher, opts));
201
+ return testString == null ? (testString2, ri = !1) => matchPatterns(patterns, negatedGlobs, testString2, typeof ri == "boolean" ? ri : !1) : matchPatterns(patterns, negatedGlobs, testString, returnIndex);
202
+ };
203
+ anymatch.default = anymatch;
204
+ module.exports = anymatch;
205
+ }
206
+ });
207
+
208
+ // ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json
209
+ var require_binary_extensions = __commonJS({
210
+ "../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json"(exports, module) {
211
+ module.exports = [
212
+ "3dm",
213
+ "3ds",
214
+ "3g2",
215
+ "3gp",
216
+ "7z",
217
+ "a",
218
+ "aac",
219
+ "adp",
220
+ "afdesign",
221
+ "afphoto",
222
+ "afpub",
223
+ "ai",
224
+ "aif",
225
+ "aiff",
226
+ "alz",
227
+ "ape",
228
+ "apk",
229
+ "appimage",
230
+ "ar",
231
+ "arj",
232
+ "asf",
233
+ "au",
234
+ "avi",
235
+ "bak",
236
+ "baml",
237
+ "bh",
238
+ "bin",
239
+ "bk",
240
+ "bmp",
241
+ "btif",
242
+ "bz2",
243
+ "bzip2",
244
+ "cab",
245
+ "caf",
246
+ "cgm",
247
+ "class",
248
+ "cmx",
249
+ "cpio",
250
+ "cr2",
251
+ "cur",
252
+ "dat",
253
+ "dcm",
254
+ "deb",
255
+ "dex",
256
+ "djvu",
257
+ "dll",
258
+ "dmg",
259
+ "dng",
260
+ "doc",
261
+ "docm",
262
+ "docx",
263
+ "dot",
264
+ "dotm",
265
+ "dra",
266
+ "DS_Store",
267
+ "dsk",
268
+ "dts",
269
+ "dtshd",
270
+ "dvb",
271
+ "dwg",
272
+ "dxf",
273
+ "ecelp4800",
274
+ "ecelp7470",
275
+ "ecelp9600",
276
+ "egg",
277
+ "eol",
278
+ "eot",
279
+ "epub",
280
+ "exe",
281
+ "f4v",
282
+ "fbs",
283
+ "fh",
284
+ "fla",
285
+ "flac",
286
+ "flatpak",
287
+ "fli",
288
+ "flv",
289
+ "fpx",
290
+ "fst",
291
+ "fvt",
292
+ "g3",
293
+ "gh",
294
+ "gif",
295
+ "graffle",
296
+ "gz",
297
+ "gzip",
298
+ "h261",
299
+ "h263",
300
+ "h264",
301
+ "icns",
302
+ "ico",
303
+ "ief",
304
+ "img",
305
+ "ipa",
306
+ "iso",
307
+ "jar",
308
+ "jpeg",
309
+ "jpg",
310
+ "jpgv",
311
+ "jpm",
312
+ "jxr",
313
+ "key",
314
+ "ktx",
315
+ "lha",
316
+ "lib",
317
+ "lvp",
318
+ "lz",
319
+ "lzh",
320
+ "lzma",
321
+ "lzo",
322
+ "m3u",
323
+ "m4a",
324
+ "m4v",
325
+ "mar",
326
+ "mdi",
327
+ "mht",
328
+ "mid",
329
+ "midi",
330
+ "mj2",
331
+ "mka",
332
+ "mkv",
333
+ "mmr",
334
+ "mng",
335
+ "mobi",
336
+ "mov",
337
+ "movie",
338
+ "mp3",
339
+ "mp4",
340
+ "mp4a",
341
+ "mpeg",
342
+ "mpg",
343
+ "mpga",
344
+ "mxu",
345
+ "nef",
346
+ "npx",
347
+ "numbers",
348
+ "nupkg",
349
+ "o",
350
+ "odp",
351
+ "ods",
352
+ "odt",
353
+ "oga",
354
+ "ogg",
355
+ "ogv",
356
+ "otf",
357
+ "ott",
358
+ "pages",
359
+ "pbm",
360
+ "pcx",
361
+ "pdb",
362
+ "pdf",
363
+ "pea",
364
+ "pgm",
365
+ "pic",
366
+ "png",
367
+ "pnm",
368
+ "pot",
369
+ "potm",
370
+ "potx",
371
+ "ppa",
372
+ "ppam",
373
+ "ppm",
374
+ "pps",
375
+ "ppsm",
376
+ "ppsx",
377
+ "ppt",
378
+ "pptm",
379
+ "pptx",
380
+ "psd",
381
+ "pya",
382
+ "pyc",
383
+ "pyo",
384
+ "pyv",
385
+ "qt",
386
+ "rar",
387
+ "ras",
388
+ "raw",
389
+ "resources",
390
+ "rgb",
391
+ "rip",
392
+ "rlc",
393
+ "rmf",
394
+ "rmvb",
395
+ "rpm",
396
+ "rtf",
397
+ "rz",
398
+ "s3m",
399
+ "s7z",
400
+ "scpt",
401
+ "sgi",
402
+ "shar",
403
+ "snap",
404
+ "sil",
405
+ "sketch",
406
+ "slk",
407
+ "smv",
408
+ "snk",
409
+ "so",
410
+ "stl",
411
+ "suo",
412
+ "sub",
413
+ "swf",
414
+ "tar",
415
+ "tbz",
416
+ "tbz2",
417
+ "tga",
418
+ "tgz",
419
+ "thmx",
420
+ "tif",
421
+ "tiff",
422
+ "tlz",
423
+ "ttc",
424
+ "ttf",
425
+ "txz",
426
+ "udf",
427
+ "uvh",
428
+ "uvi",
429
+ "uvm",
430
+ "uvp",
431
+ "uvs",
432
+ "uvu",
433
+ "viv",
434
+ "vob",
435
+ "war",
436
+ "wav",
437
+ "wax",
438
+ "wbmp",
439
+ "wdp",
440
+ "weba",
441
+ "webm",
442
+ "webp",
443
+ "whl",
444
+ "wim",
445
+ "wm",
446
+ "wma",
447
+ "wmv",
448
+ "wmx",
449
+ "woff",
450
+ "woff2",
451
+ "wrm",
452
+ "wvx",
453
+ "xbm",
454
+ "xif",
455
+ "xla",
456
+ "xlam",
457
+ "xls",
458
+ "xlsb",
459
+ "xlsm",
460
+ "xlsx",
461
+ "xlt",
462
+ "xltm",
463
+ "xltx",
464
+ "xm",
465
+ "xmind",
466
+ "xpi",
467
+ "xpm",
468
+ "xwd",
469
+ "xz",
470
+ "z",
471
+ "zip",
472
+ "zipx"
473
+ ];
474
+ }
475
+ });
476
+
477
+ // ../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/index.js
478
+ var require_binary_extensions2 = __commonJS({
479
+ "../../node_modules/.pnpm/binary-extensions@2.3.0/node_modules/binary-extensions/index.js"(exports, module) {
480
+ init_cjs_shims();
481
+ module.exports = require_binary_extensions();
482
+ }
483
+ });
484
+
485
+ // ../../node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js
486
+ var require_is_binary_path = __commonJS({
487
+ "../../node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js"(exports, module) {
488
+ "use strict";
489
+ init_cjs_shims();
490
+ var path = __require("path"), binaryExtensions = require_binary_extensions2(), extensions = new Set(binaryExtensions);
491
+ module.exports = (filePath) => extensions.has(path.extname(filePath).slice(1).toLowerCase());
492
+ }
493
+ });
494
+
20
495
  // ../../node_modules/.pnpm/chokidar@3.6.0/node_modules/chokidar/lib/constants.js
21
496
  var require_constants = __commonJS({
22
497
  "../../node_modules/.pnpm/chokidar@3.6.0/node_modules/chokidar/lib/constants.js"(exports) {
@@ -1119,4 +1594,4 @@ var require_chokidar = __commonJS({
1119
1594
  }
1120
1595
  });
1121
1596
  export default require_chokidar();
1122
- //# sourceMappingURL=chokidar-TTCYG5AA.js.map
1597
+ //# sourceMappingURL=chokidar-HTKREZL3.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-NLFRHIZY.js";
3
+ } from "./chunk-NMGJYSTC.js";
4
4
  import {
5
5
  cacheClear
6
- } from "./chunk-UW4ASA6Y.js";
6
+ } from "./chunk-CQSO2B3C.js";
7
7
  import {
8
8
  environmentVariables,
9
9
  isTruthy
10
- } from "./chunk-HS2O5IHL.js";
10
+ } from "./chunk-GG2ELY5O.js";
11
11
  import {
12
12
  require_lib
13
13
  } from "./chunk-F7F4BQYW.js";
@@ -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-BYZU2C5C.js"), { isDevelopment } = await import("./local-XLJD5WYP.js"), oclif = await import("./lib-DEEC6IKU.js"), { ShopifyConfig } = await import("./custom-oclif-loader-YDKLB47A.js");
29
+ let { errorHandler } = await import("./error-handler-QOTWDLMF.js"), { isDevelopment } = await import("./local-FS3UI7PE.js"), oclif = await import("./lib-DEEC6IKU.js"), { ShopifyConfig } = await import("./custom-oclif-loader-X7GLA66E.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-2AJAFJYY.js");
44
+ let { renderError } = await import("./ui-PUN5STUM.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-I7AWSWJ4.js"), { moduleDirectory } = await import("./path-GB4VIEM6.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
71
+ let { findUpAndReadPackageJson } = await import("./node-package-manager-TX3WZQGI.js"), { moduleDirectory } = await import("./path-GB4VIEM6.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-RPU6TIF2.js.map
120
+ //# sourceMappingURL=chunk-3ULYQTX3.js.map
@@ -2,15 +2,15 @@ import {
2
2
  fetch,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-GRVHLYQS.js";
5
+ } from "./chunk-JF6DQIJR.js";
6
6
  import {
7
7
  cacheRetrieve,
8
8
  cacheStore,
9
9
  versionSatisfies
10
- } from "./chunk-UW4ASA6Y.js";
10
+ } from "./chunk-CQSO2B3C.js";
11
11
  import {
12
12
  CLI_KIT_VERSION
13
- } from "./chunk-L54PNQGV.js";
13
+ } from "./chunk-TYHJPUOR.js";
14
14
  import {
15
15
  AbortSilentError,
16
16
  exec,
@@ -19,7 +19,7 @@ import {
19
19
  renderError,
20
20
  renderInfo,
21
21
  renderWarning
22
- } from "./chunk-HS2O5IHL.js";
22
+ } from "./chunk-GG2ELY5O.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-BYZU2C5C.js");
90
+ let { sendErrorToBugsnag } = await import("./error-handler-QOTWDLMF.js");
91
91
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
92
92
  }
93
93
  }
@@ -200,4 +200,4 @@ export {
200
200
  fetchNotificationsInBackground,
201
201
  stringifyFilters
202
202
  };
203
- //# sourceMappingURL=chunk-IHXRXBUN.js.map
203
+ //# sourceMappingURL=chunk-AVSSZ6MY.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  base_command_default
3
- } from "./chunk-NLFRHIZY.js";
3
+ } from "./chunk-NMGJYSTC.js";
4
4
  import {
5
5
  logout
6
- } from "./chunk-FGEKMLLA.js";
6
+ } from "./chunk-FRHZJBJZ.js";
7
7
  import {
8
8
  outputSuccess
9
- } from "./chunk-HS2O5IHL.js";
9
+ } from "./chunk-GG2ELY5O.js";
10
10
  import {
11
11
  init_cjs_shims
12
12
  } from "./chunk-PKR7KJ6P.js";
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
25
25
  export {
26
26
  Logout
27
27
  };
28
- //# sourceMappingURL=chunk-I4ATBX6D.js.map
28
+ //# sourceMappingURL=chunk-CHLX44DR.js.map
@@ -18,7 +18,7 @@ import {
18
18
  require_get_stream,
19
19
  runWithTimer,
20
20
  writeFile
21
- } from "./chunk-HS2O5IHL.js";
21
+ } from "./chunk-GG2ELY5O.js";
22
22
  import {
23
23
  require_semver
24
24
  } from "./chunk-F7F4BQYW.js";
@@ -13972,4 +13972,4 @@ deep-extend/lib/deep-extend.js:
13972
13972
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13973
13973
  *)
13974
13974
  */
13975
- //# sourceMappingURL=chunk-UW4ASA6Y.js.map
13975
+ //# sourceMappingURL=chunk-CQSO2B3C.js.map
@@ -2,13 +2,13 @@ import {
2
2
  fetchNotifications,
3
3
  getNotifications,
4
4
  stringifyFilters
5
- } from "./chunk-IHXRXBUN.js";
5
+ } from "./chunk-AVSSZ6MY.js";
6
6
  import {
7
7
  randomUUID
8
- } from "./chunk-GRVHLYQS.js";
8
+ } from "./chunk-JF6DQIJR.js";
9
9
  import {
10
10
  CLI_KIT_VERSION
11
- } from "./chunk-L54PNQGV.js";
11
+ } from "./chunk-TYHJPUOR.js";
12
12
  import {
13
13
  outputInfo,
14
14
  renderSelectPrompt,
@@ -16,7 +16,7 @@ import {
16
16
  renderTable,
17
17
  renderTextPrompt,
18
18
  writeFile
19
- } from "./chunk-HS2O5IHL.js";
19
+ } from "./chunk-GG2ELY5O.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -103,4 +103,4 @@ export {
103
103
  generate,
104
104
  list
105
105
  };
106
- //# sourceMappingURL=chunk-OQKAZQIC.js.map
106
+ //# sourceMappingURL=chunk-DHW4GI57.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  versionService
3
- } from "./chunk-AMWSD3HH.js";
3
+ } from "./chunk-RAZVOMJW.js";
4
4
  import {
5
5
  base_command_default
6
- } from "./chunk-NLFRHIZY.js";
6
+ } from "./chunk-NMGJYSTC.js";
7
7
  import {
8
8
  init_cjs_shims
9
9
  } from "./chunk-PKR7KJ6P.js";
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
22
22
  export {
23
23
  Version
24
24
  };
25
- //# sourceMappingURL=chunk-HTTZVPR6.js.map
25
+ //# sourceMappingURL=chunk-FGSQR4VQ.js.map