@shopify/create-app 3.93.2 → 3.94.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.
@@ -1,36 +1,9 @@
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
5
  // ../cli-kit/dist/public/node/path.js
32
6
  init_cjs_shims();
33
- var import_commondir = __toESM(require_commondir(), 1);
34
7
 
35
8
  // ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/index.mjs
36
9
  init_cjs_shims();
@@ -162,8 +135,14 @@ function extname2(path2) {
162
135
  function parsePath(path2) {
163
136
  return parse(path2);
164
137
  }
138
+ function commonParentDirectory(first, second) {
139
+ let firstParts = first.split(/\/+|\\+/), secondParts = second.split(/\/+|\\+/), i = 0;
140
+ for (; i < firstParts.length && i < secondParts.length && firstParts[i] === secondParts[i]; )
141
+ i++;
142
+ return i > 1 ? firstParts.slice(0, i).join("/") : "/";
143
+ }
165
144
  function relativizePath(path2, dir = cwd2()) {
166
- let result = (0, import_commondir.default)([path2, dir]), relativePath2 = relative(dir, path2), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
145
+ let result = commonParentDirectory(path2, dir), relativePath2 = relative(dir, path2), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
167
146
  return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path2 : relativePath2;
168
147
  }
169
148
  function isSubpath(mainPath, subpath) {
@@ -198,6 +177,7 @@ function sanitizeRelativePath(input, warn) {
198
177
 
199
178
  export {
200
179
  delimiter,
180
+ join,
201
181
  joinPath,
202
182
  normalizePath,
203
183
  resolvePath,
@@ -207,6 +187,7 @@ export {
207
187
  basename2 as basename,
208
188
  extname2 as extname,
209
189
  parsePath,
190
+ commonParentDirectory,
210
191
  relativizePath,
211
192
  isSubpath,
212
193
  moduleDirectory,
@@ -215,4 +196,4 @@ export {
215
196
  sniffForJson,
216
197
  sanitizeRelativePath
217
198
  };
218
- //# sourceMappingURL=chunk-HK42PKRF.js.map
199
+ //# sourceMappingURL=chunk-NIYBO6HO.js.map
@@ -4,13 +4,13 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-PYOLGWV3.js";
7
+ } from "./chunk-GUVQJPFV.js";
8
8
  import "./chunk-VBBBCVMH.js";
9
- import "./chunk-XTF32XZH.js";
10
- import "./chunk-TYJR2NOA.js";
11
- import "./chunk-TM5S3XKJ.js";
12
- import "./chunk-SR2M4BGN.js";
13
- import "./chunk-HK42PKRF.js";
9
+ import "./chunk-77I3TRE2.js";
10
+ import "./chunk-4IXPA7MG.js";
11
+ import "./chunk-IFG7N3S2.js";
12
+ import "./chunk-CXPWSYGC.js";
13
+ import "./chunk-NIYBO6HO.js";
14
14
  import "./chunk-AROS7RI6.js";
15
15
  import "./chunk-7IK72W75.js";
16
16
  import "./chunk-G2ZZKGSV.js";
@@ -22,4 +22,4 @@ export {
22
22
  registerCleanBugsnagErrorsFromWithinPlugins,
23
23
  sendErrorToBugsnag
24
24
  };
25
- //# sourceMappingURL=error-handler-GLXGGAYC.js.map
25
+ //# sourceMappingURL=error-handler-W2U33HYT.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  hook
3
- } from "../chunk-EUW2PDD4.js";
4
- import "../chunk-PYOLGWV3.js";
3
+ } from "../chunk-3P2CWI75.js";
4
+ import "../chunk-GUVQJPFV.js";
5
5
  import "../chunk-VBBBCVMH.js";
6
- import "../chunk-XTF32XZH.js";
7
- import "../chunk-TYJR2NOA.js";
8
- import "../chunk-TM5S3XKJ.js";
9
- import "../chunk-SR2M4BGN.js";
10
- import "../chunk-HK42PKRF.js";
6
+ import "../chunk-77I3TRE2.js";
7
+ import "../chunk-4IXPA7MG.js";
8
+ import "../chunk-IFG7N3S2.js";
9
+ import "../chunk-CXPWSYGC.js";
10
+ import "../chunk-NIYBO6HO.js";
11
11
  import "../chunk-AROS7RI6.js";
12
12
  import "../chunk-7IK72W75.js";
13
13
  import "../chunk-G2ZZKGSV.js";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  fetchNotificationsInBackground
3
- } from "../chunk-NHV222KP.js";
3
+ } from "../chunk-7PXEGPG5.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-PYOLGWV3.js";
7
+ } from "../chunk-GUVQJPFV.js";
8
8
  import "../chunk-VBBBCVMH.js";
9
9
  import {
10
10
  checkForNewVersion
11
- } from "../chunk-XTF32XZH.js";
11
+ } from "../chunk-77I3TRE2.js";
12
12
  import {
13
13
  isPreReleaseVersion,
14
14
  outputDebug
15
- } from "../chunk-TYJR2NOA.js";
16
- import "../chunk-TM5S3XKJ.js";
17
- import "../chunk-SR2M4BGN.js";
18
- import "../chunk-HK42PKRF.js";
15
+ } from "../chunk-4IXPA7MG.js";
16
+ import "../chunk-IFG7N3S2.js";
17
+ import "../chunk-CXPWSYGC.js";
18
+ import "../chunk-NIYBO6HO.js";
19
19
  import "../chunk-AROS7RI6.js";
20
20
  import "../chunk-7IK72W75.js";
21
21
  import "../chunk-G2ZZKGSV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_src
3
- } from "./chunk-SR2M4BGN.js";
3
+ } from "./chunk-CXPWSYGC.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __require,
@@ -946,4 +946,4 @@ http-proxy-node16/index.js:
946
946
  * Dante - The Divine Comedy (Canto III)
947
947
  *)
948
948
  */
949
- //# sourceMappingURL=http-proxy-node16-RJKHWVRW.js.map
949
+ //# sourceMappingURL=http-proxy-node16-U5VBDLS3.js.map