@shopify/create-app 3.73.2 → 3.74.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.
Files changed (39) hide show
  1. package/dist/{chokidar-5LLC6S6D.js → chokidar-LYCK7UIU.js} +20 -574
  2. package/dist/chunk-3I3GQNEW.js +95 -0
  3. package/dist/{chunk-CRHXI6PS.js → chunk-5DBS6QOU.js} +102 -638
  4. package/dist/{chunk-7BLDARWR.js → chunk-7LUJ2Y3A.js} +40 -22
  5. package/dist/{chunk-Z2K6T5HO.js → chunk-A2CUF3IE.js} +2 -2
  6. package/dist/{chunk-BUFIEXZ5.js → chunk-B3YWYURY.js} +701 -141
  7. package/dist/{chunk-K7HGDAI4.js → chunk-CDBXAE2F.js} +20 -104
  8. package/dist/chunk-CP3BRHWK.js +33 -0
  9. package/dist/{chunk-5MQK53ZB.js → chunk-IS43CUN4.js} +490 -411
  10. package/dist/{chunk-OAZFIMJ3.js → chunk-LQ2ZKVR6.js} +45 -115
  11. package/dist/{chunk-3HBRMIPY.js → chunk-MW7RWHY5.js} +341 -211
  12. package/dist/{chunk-BOBYVF6Z.js → chunk-NBA3G6YQ.js} +55430 -36539
  13. package/dist/chunk-UV6IYZ3Q.js +15929 -0
  14. package/dist/{chunk-55N7E5WW.js → chunk-VS6UX7CH.js} +1849 -4319
  15. package/dist/{chunk-U52U2BAX.js → chunk-XENZIRXB.js} +640 -1166
  16. package/dist/{chunk-EZFQXNK5.js → chunk-ZKGBK6WQ.js} +2 -2
  17. package/dist/chunk-ZUCWDIGE.js +111 -0
  18. package/dist/{custom-oclif-loader-COXUWDRX.js → custom-oclif-loader-N77DUCDG.js} +9 -8
  19. package/dist/{del-WGII2Y5S.js → del-CKAQ44SX.js} +5 -5
  20. package/dist/{devtools-K7FXBBFZ.js → devtools-6LOQORRT.js} +2 -2
  21. package/dist/{error-handler-NLEDBRP4.js → error-handler-OVH57TNJ.js} +13 -12
  22. package/dist/hooks/postrun.js +14 -12
  23. package/dist/hooks/prerun.js +27 -12
  24. package/dist/{http-proxy-FXWKYHZ3.js → http-proxy-L3MCJRQS.js} +3 -2
  25. package/dist/index.js +19915 -17261
  26. package/dist/index.test.js +80 -133
  27. package/dist/lib-ZAUU5FOJ.js +11 -0
  28. package/dist/{local-WM5Y2GKE.js → local-ERLG2ZPN.js} +11 -10
  29. package/dist/{node-package-manager-U4IKWNRD.js → node-package-manager-YQCLDJCT.js} +10 -9
  30. package/dist/out-AZBX4ITJ.js +7 -0
  31. package/dist/{path-2HZUSAGR.js → path-GWAZZN2N.js} +3 -2
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/{ui-NMBUMLWD.js → ui-J4ZQO6RP.js} +9 -8
  34. package/oclif.manifest.json +1 -1
  35. package/package.json +3 -4
  36. package/dist/chunk-JHSNPAK4.js +0 -15742
  37. package/dist/chunk-TKDPJ4ZU.js +0 -27
  38. package/dist/lib-CKTRCGTR.js +0 -11
  39. package/dist/out-JR4DWQ2G.js +0 -7
@@ -1,46 +1,14 @@
1
1
  import {
2
- __commonJS,
3
- __require,
4
- __toESM,
5
2
  init_cjs_shims
6
3
  } from "./chunk-PKR7KJ6P.js";
7
4
 
8
- // ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
9
- var require_commondir = __commonJS({
10
- "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
11
- init_cjs_shims();
12
- var path2 = __require("path");
13
- module.exports = function(basedir, relfiles) {
14
- if (relfiles)
15
- var files = relfiles.map(function(r) {
16
- return path2.resolve(basedir, r);
17
- });
18
- else
19
- var files = basedir;
20
- var res = files.slice(1).reduce(function(ps, file) {
21
- if (!file.match(/^([A-Za-z]:)?\/|\\/))
22
- throw new Error("relative path without a basedir");
23
- for (var xs = file.split(/\/+|\\+/), i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++) ;
24
- return ps.slice(0, i);
25
- }, files[0].split(/\/+|\\+/));
26
- return res.length > 1 ? res.join("/") : "/";
27
- };
28
- }
29
- });
30
-
31
- // ../cli-kit/dist/public/node/path.js
32
- init_cjs_shims();
33
- var import_commondir = __toESM(require_commondir());
34
-
35
- // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/index.mjs
36
- init_cjs_shims();
37
-
38
- // ../../node_modules/.pnpm/pathe@1.1.1/node_modules/pathe/dist/shared/pathe.92c04245.mjs
5
+ // ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
39
6
  init_cjs_shims();
7
+ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
40
8
  function normalizeWindowsPath(input = "") {
41
- return !input || !input.includes("\\") ? input : input.replace(/\\/g, "/");
9
+ return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
42
10
  }
43
- var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
11
+ var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/, _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
44
12
  var delimiter = ":", normalize = function(path2) {
45
13
  if (path2.length === 0)
46
14
  return ".";
@@ -56,7 +24,7 @@ var delimiter = ":", normalize = function(path2) {
56
24
  return joined === void 0 ? "." : normalize(joined.replace(/\/\/+/g, "/"));
57
25
  };
58
26
  function cwd() {
59
- return typeof process < "u" ? process.cwd().replace(/\\/g, "/") : "/";
27
+ return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
60
28
  }
61
29
  var resolve = function(...arguments_) {
62
30
  arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
@@ -104,7 +72,10 @@ var _EXTNAME_RE = /.(\.[^./]+)$/, extname = function(p) {
104
72
  let match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
105
73
  return match && match[1] || "";
106
74
  }, relative = function(from, to) {
107
- let _from = resolve(from).split("/"), _to = resolve(to).split("/"), _fromCopy = [..._from];
75
+ let _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/"), _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
76
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0])
77
+ return _to.join("/");
78
+ let _fromCopy = [..._from];
108
79
  for (let segment of _fromCopy) {
109
80
  if (_to[0] !== segment)
110
81
  break;
@@ -120,73 +91,18 @@ var basename = function(p, extension) {
120
91
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
121
92
  };
122
93
 
123
- // ../cli-kit/dist/public/node/path.js
124
- import { fileURLToPath } from "url";
125
- function joinPath(...paths) {
126
- return join(...paths);
127
- }
128
- function normalizePath(path2) {
129
- return normalize(path2);
130
- }
131
- function resolvePath(...paths) {
132
- return resolve(...paths);
133
- }
134
- function relativePath(from, to) {
135
- return relative(from, to);
136
- }
137
- function isAbsolutePath(path2) {
138
- return isAbsolute(path2);
139
- }
140
- function dirname2(path2) {
141
- return dirname(path2);
142
- }
143
- function basename2(path2, ext) {
144
- return basename(path2, ext);
145
- }
146
- function extname2(path2) {
147
- return extname(path2);
148
- }
149
- function relativizePath(path2, dir = cwd2()) {
150
- let result = (0, import_commondir.default)([path2, dir]), relativePath2 = relative(dir, path2), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
151
- return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path2 : relativePath2;
152
- }
153
- function isSubpath(mainPath, subpath) {
154
- let relativePath2 = relative(mainPath, subpath);
155
- return !relativePath2.startsWith("..") && !isAbsolutePath(relativePath2);
156
- }
157
- function moduleDirectory(moduleURL) {
158
- return dirname2(fileURLToPath(moduleURL));
159
- }
160
- function cwd2() {
161
- return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
162
- }
163
- function sniffForPath(argv = process.argv) {
164
- let pathFlagIndex = argv.indexOf("--path");
165
- if (pathFlagIndex === -1)
166
- return argv.find((arg) => arg.startsWith("--path="))?.split("=")[1];
167
- let pathFlag = argv[pathFlagIndex + 1];
168
- if (!(!pathFlag || pathFlag.startsWith("-")))
169
- return pathFlag;
170
- }
171
- function sniffForJson(argv = process.argv) {
172
- return argv.includes("--json") || argv.includes("-j");
173
- }
94
+ // ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/index.mjs
95
+ init_cjs_shims();
174
96
 
175
97
  export {
176
98
  delimiter,
177
- joinPath,
178
- normalizePath,
179
- resolvePath,
180
- relativePath,
181
- isAbsolutePath,
182
- dirname2 as dirname,
183
- basename2 as basename,
184
- extname2 as extname,
185
- relativizePath,
186
- isSubpath,
187
- moduleDirectory,
188
- cwd2 as cwd,
189
- sniffForPath,
190
- sniffForJson
99
+ normalize,
100
+ join,
101
+ resolve,
102
+ isAbsolute,
103
+ extname,
104
+ relative,
105
+ dirname,
106
+ basename
191
107
  };
192
- //# sourceMappingURL=chunk-K7HGDAI4.js.map
108
+ //# sourceMappingURL=chunk-CDBXAE2F.js.map
@@ -0,0 +1,33 @@
1
+ import {
2
+ init_cjs_shims
3
+ } from "./chunk-PKR7KJ6P.js";
4
+
5
+ // ../cli-kit/dist/private/node/context/deprecations-store.js
6
+ init_cjs_shims();
7
+ var globalWithDeprecationsStore = {
8
+ ...globalThis,
9
+ deprecationsStore: {
10
+ nextDeprecationDate: void 0
11
+ }
12
+ };
13
+ function getNextDeprecationDate() {
14
+ return globalWithDeprecationsStore.deprecationsStore.nextDeprecationDate;
15
+ }
16
+ function setNextDeprecationDate(dates) {
17
+ if (dates.length < 1)
18
+ return;
19
+ let earliestFutureDateTime = earliestDateTimeAfter(Date.now(), dates);
20
+ if (!earliestFutureDateTime)
21
+ return;
22
+ let nextDeprecationDate = getNextDeprecationDate();
23
+ (!nextDeprecationDate || earliestFutureDateTime < nextDeprecationDate.getTime()) && (globalWithDeprecationsStore.deprecationsStore.nextDeprecationDate = new Date(earliestFutureDateTime));
24
+ }
25
+ function earliestDateTimeAfter(afterTime, dates) {
26
+ return dates.map((date) => date.getTime()).sort().find((time) => time > afterTime);
27
+ }
28
+
29
+ export {
30
+ getNextDeprecationDate,
31
+ setNextDeprecationDate
32
+ };
33
+ //# sourceMappingURL=chunk-CP3BRHWK.js.map