@shopify/cli 3.74.0 → 3.75.0
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/hydrogen/starter/CHANGELOG.md +99 -0
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +2 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +12 -2
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -0
- package/dist/assets/hydrogen/starter/package.json +10 -10
- package/dist/assets/hydrogen/starter/tsconfig.json +1 -1
- package/dist/assets/hydrogen/starter/vite.config.ts +1 -0
- package/dist/assets/hydrogen/tailwind/package.json +1 -1
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/assets/hydrogen/vite/package.json +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -0
- package/dist/{chunk-FCWD4NEK.js → chunk-2B5C3QFS.js} +3 -3
- package/dist/{chunk-MDJOXUMQ.js → chunk-2FZJER24.js} +4 -4
- package/dist/{chunk-IYQNHNNP.js → chunk-57EEPGQZ.js} +3 -3
- package/dist/{chunk-R7RENZQC.js → chunk-5KSWCELC.js} +3 -3
- package/dist/{chunk-QRARFXIM.js → chunk-6HBKMQLD.js} +15 -14
- package/dist/{chunk-5JC3BUPR.js → chunk-6W5TMCT3.js} +3 -3
- package/dist/{chunk-MSBZRBI5.js → chunk-6XBYMBOQ.js} +4 -4
- package/dist/{chunk-UB7RN523.js → chunk-B7ABTOI4.js} +6 -6
- package/dist/{chunk-WKO4CJCL.js → chunk-BDLU7EEZ.js} +14 -10
- package/dist/{chunk-XJNTFQIK.js → chunk-BTMRJLQ7.js} +5 -5
- package/dist/{chunk-76NEANNG.js → chunk-DV2H7WDY.js} +430 -207
- package/dist/{chunk-FMXC2O6H.js → chunk-ESYWXFSK.js} +2 -2
- package/dist/{chunk-WBTJ7MQU.js → chunk-GMHA2S7O.js} +3 -3
- package/dist/{chunk-BWBSJLZN.js → chunk-GQIMWIIF.js} +9970 -9968
- package/dist/{chunk-WNUVUNTL.js → chunk-I3WJF5NM.js} +7 -7
- package/dist/{chunk-B27LGWRZ.js → chunk-IAM7IYO3.js} +3 -3
- package/dist/{chunk-5JWRABV2.js → chunk-ILXYHK4Q.js} +8 -8
- package/dist/{chunk-VI4NVMJH.js → chunk-IML7XVTM.js} +2 -2
- package/dist/{chunk-53WQGP7S.js → chunk-KMPW66LQ.js} +4 -4
- package/dist/{chunk-I6YWZKVU.js → chunk-L656JYPI.js} +2 -2
- package/dist/{chunk-7T4EKFVU.js → chunk-MN33EVV7.js} +2 -2
- package/dist/{chunk-LH6BHL6J.js → chunk-MOZOZ3LN.js} +3 -3
- package/dist/{chunk-5CLGH5PH.js → chunk-MP5RLDFN.js} +15 -8
- package/dist/{chunk-GVMUVIT5.js → chunk-OK2LJ3F3.js} +6 -6
- package/dist/{chunk-J673ZU5S.js → chunk-ORGKANED.js} +3 -3
- package/dist/{chunk-6JNRBEP6.js → chunk-QJQSCN3A.js} +5 -5
- package/dist/{chunk-NUW6LQU4.js → chunk-S4YW77H4.js} +4 -4
- package/dist/{chunk-ACIVN2Q4.js → chunk-S576QAPY.js} +2 -2
- package/dist/{chunk-JWRRKMF2.js → chunk-S6L5743K.js} +2 -2
- package/dist/{chunk-D5AR5HKB.js → chunk-SWQM7ICR.js} +2 -2
- package/dist/{chunk-XBIDXV7B.js → chunk-T35HYPVZ.js} +3 -3
- package/dist/{chunk-QEUQO265.js → chunk-T4WJXSDW.js} +4 -4
- package/dist/{chunk-4QRIOWN3.js → chunk-TJDZDZWG.js} +2 -2
- package/dist/{chunk-4W33LVQQ.js → chunk-VM4XPRZK.js} +3 -3
- package/dist/{chunk-CDQA3SST.js → chunk-VSKRQ3JT.js} +33 -29
- package/dist/{chunk-PMOQBQSE.js → chunk-W6IJP4MY.js} +3 -3
- package/dist/{chunk-L3FVJFIT.js → chunk-X3CFSDHA.js} +94 -17
- package/dist/{chunk-AKL7T64Q.js → chunk-Y53XECL6.js} +34 -34
- package/dist/{chunk-2GCE2GUM.js → chunk-YVTRJWYT.js} +3 -3
- package/dist/cli/commands/auth/logout.js +14 -15
- package/dist/cli/commands/auth/logout.test.js +16 -17
- package/dist/cli/commands/cache/clear.js +13 -14
- package/dist/cli/commands/debug/command-flags.js +13 -14
- package/dist/cli/commands/docs/generate.js +13 -14
- package/dist/cli/commands/docs/generate.test.js +14 -15
- package/dist/cli/commands/help.js +13 -14
- package/dist/cli/commands/kitchen-sink/async.js +14 -15
- package/dist/cli/commands/kitchen-sink/async.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/index.js +16 -17
- package/dist/cli/commands/kitchen-sink/index.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/prompts.js +14 -15
- package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -16
- package/dist/cli/commands/kitchen-sink/static.js +14 -15
- package/dist/cli/commands/kitchen-sink/static.test.js +15 -16
- package/dist/cli/commands/notifications/generate.js +14 -15
- package/dist/cli/commands/notifications/list.js +14 -15
- package/dist/cli/commands/search.js +14 -15
- package/dist/cli/commands/upgrade.js +14 -15
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +14 -15
- package/dist/cli/commands/version.test.js +15 -16
- package/dist/cli/services/commands/notifications.js +8 -9
- package/dist/cli/services/commands/search.js +4 -5
- package/dist/cli/services/commands/search.test.js +5 -6
- package/dist/cli/services/commands/version.js +5 -6
- package/dist/cli/services/commands/version.test.js +7 -8
- package/dist/cli/services/kitchen-sink/async.js +4 -5
- package/dist/cli/services/kitchen-sink/prompts.js +4 -5
- package/dist/cli/services/kitchen-sink/static.js +4 -5
- package/dist/cli/services/upgrade.js +5 -6
- package/dist/cli/services/upgrade.test.js +8 -9
- package/dist/{custom-oclif-loader-ZY5GUSB3.js → custom-oclif-loader-MPQ33GKJ.js} +4 -5
- package/dist/{del-FBU5JYXS.js → del-2SYBVRHB.js} +2 -2
- package/dist/devtools-BA4WST2D.js +72 -0
- package/dist/{error-handler-YRN4E6SY.js → error-handler-ABXDEJNM.js} +11 -12
- package/dist/hooks/postrun.js +9 -10
- package/dist/hooks/prerun.js +9 -10
- package/dist/index.js +28943 -12546
- package/dist/{lib-E2DSNKUX.js → lib-SGEWXU7Z.js} +3 -3
- package/dist/{local-VTZT5Q4L.js → local-DGW3VZG7.js} +6 -5
- package/dist/{magic-string.es-PJMYOE6F.js → magic-string.es-BSVDQOZI.js} +32 -20
- package/dist/{morph-ACVSDUS7.js → morph-BTANDGVW.js} +9 -9
- package/dist/{node-ONVZF27D.js → node-GVOKD67H.js} +17 -18
- package/dist/{node-package-manager-BZNXJETD.js → node-package-manager-WEN6FJ7Z.js} +5 -6
- package/dist/{npa-JAX2F6CO.js → npa-E675GQOI.js} +123 -33
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-3RKZNTJR.js → ui-TWIKWYG2.js} +4 -5
- package/dist/{workerd-PSNADDQA.js → workerd-SK47YSGA.js} +16 -17
- package/oclif.manifest.json +33 -62
- package/package.json +11 -10
- package/dist/chunk-CFIKVUNW.js +0 -45
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
ensureAuthenticatedAdmin,
|
|
9
9
|
ensureAuthenticatedBusinessPlatform,
|
|
10
10
|
logout
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BDLU7EEZ.js";
|
|
12
12
|
import {
|
|
13
13
|
base_command_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QJQSCN3A.js";
|
|
15
15
|
import {
|
|
16
16
|
fanoutHooks,
|
|
17
17
|
requestIdsCollection
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-B7ABTOI4.js";
|
|
19
19
|
import {
|
|
20
20
|
businessPlatformFqdn,
|
|
21
21
|
normalizeStoreFqdn,
|
|
22
22
|
partnersFqdn
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6HBKMQLD.js";
|
|
24
24
|
import {
|
|
25
25
|
ClientError,
|
|
26
26
|
GraphQLClient,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
retryAwareRequest,
|
|
32
32
|
sanitizeURL,
|
|
33
33
|
sanitizedHeadersOutput
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-GQIMWIIF.js";
|
|
35
35
|
import {
|
|
36
36
|
findUpAndReadPackageJson,
|
|
37
37
|
getPackageManager,
|
|
@@ -39,16 +39,19 @@ import {
|
|
|
39
39
|
packageManagerFromUserAgent,
|
|
40
40
|
readAndParsePackageJson,
|
|
41
41
|
writePackageJSON
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-S576QAPY.js";
|
|
43
43
|
import {
|
|
44
44
|
AbortError,
|
|
45
45
|
BugError,
|
|
46
46
|
addPublicMetadata,
|
|
47
|
+
ansi_escapes_default,
|
|
47
48
|
camelize,
|
|
48
49
|
capitalize,
|
|
49
50
|
copyFile,
|
|
50
51
|
currentProcessIsGlobal,
|
|
52
|
+
detectEOL,
|
|
51
53
|
fileExists,
|
|
54
|
+
fileExistsSync,
|
|
52
55
|
findPathUp,
|
|
53
56
|
formatPackageManagerCommand,
|
|
54
57
|
glob,
|
|
@@ -64,6 +67,7 @@ import {
|
|
|
64
67
|
outputToken,
|
|
65
68
|
outputWarn,
|
|
66
69
|
readFile,
|
|
70
|
+
readFileSync,
|
|
67
71
|
removeFile,
|
|
68
72
|
renderConfirmationPrompt,
|
|
69
73
|
renderFatalError,
|
|
@@ -77,8 +81,9 @@ import {
|
|
|
77
81
|
runWithTimer,
|
|
78
82
|
source_default,
|
|
79
83
|
stringifyMessage,
|
|
80
|
-
writeFile
|
|
81
|
-
|
|
84
|
+
writeFile,
|
|
85
|
+
writeFileSync
|
|
86
|
+
} from "./chunk-X3CFSDHA.js";
|
|
82
87
|
import {
|
|
83
88
|
basename,
|
|
84
89
|
cwd,
|
|
@@ -91,7 +96,7 @@ import {
|
|
|
91
96
|
} from "./chunk-57Q6OQG4.js";
|
|
92
97
|
import {
|
|
93
98
|
require_lib
|
|
94
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-VSKRQ3JT.js";
|
|
95
100
|
import {
|
|
96
101
|
require_source_map_support
|
|
97
102
|
} from "./chunk-G5R6YD27.js";
|
|
@@ -494,10 +499,10 @@ var require_doc = __commonJS({
|
|
|
494
499
|
function rec(doc2) {
|
|
495
500
|
if (mapped.has(doc2))
|
|
496
501
|
return mapped.get(doc2);
|
|
497
|
-
let result =
|
|
502
|
+
let result = process2(doc2);
|
|
498
503
|
return mapped.set(doc2, result), result;
|
|
499
504
|
}
|
|
500
|
-
function
|
|
505
|
+
function process2(doc2) {
|
|
501
506
|
if (Array.isArray(doc2))
|
|
502
507
|
return cb(doc2.map(rec));
|
|
503
508
|
if (doc2.type === "concat" || doc2.type === "fill") {
|
|
@@ -7090,7 +7095,7 @@ ${error.message}`, error;
|
|
|
7090
7095
|
"use strict";
|
|
7091
7096
|
Object.defineProperty(exports22, "__esModule", {
|
|
7092
7097
|
value: !0
|
|
7093
|
-
}), exports22.readFile = readFile2, exports22.readFileSync =
|
|
7098
|
+
}), exports22.readFile = readFile2, exports22.readFileSync = readFileSync2;
|
|
7094
7099
|
var _fs = _interopRequireDefault(__require("fs"));
|
|
7095
7100
|
function _interopRequireDefault(obj) {
|
|
7096
7101
|
return obj && obj.__esModule ? obj : {
|
|
@@ -7118,7 +7123,7 @@ ${error.message}`, error;
|
|
|
7118
7123
|
throw error;
|
|
7119
7124
|
}
|
|
7120
7125
|
}
|
|
7121
|
-
function
|
|
7126
|
+
function readFileSync2(filepath, options2 = {}) {
|
|
7122
7127
|
let throwNotFound = options2.throwNotFound === !0;
|
|
7123
7128
|
try {
|
|
7124
7129
|
return _fs.default.readFileSync(filepath, "utf8");
|
|
@@ -106038,7 +106043,7 @@ var require_prettier = __commonJS({
|
|
|
106038
106043
|
}
|
|
106039
106044
|
}), require_engine_v8_version = __commonJS3({
|
|
106040
106045
|
"node_modules/core-js/internals/engine-v8-version.js"(exports22, module22) {
|
|
106041
|
-
var global2 = require_global(), userAgent = require_engine_user_agent(),
|
|
106046
|
+
var global2 = require_global(), userAgent = require_engine_user_agent(), process2 = global2.process, Deno = global2.Deno, versions = process2 && process2.versions || Deno && Deno.version, v8 = versions && versions.v8, match, version2;
|
|
106042
106047
|
v8 && (match = v8.split("."), version2 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1])), !version2 && userAgent && (match = userAgent.match(/Edge\/(\d+)/), (!match || match[1] >= 74) && (match = userAgent.match(/Chrome\/(\d+)/), match && (version2 = +match[1]))), module22.exports = version2;
|
|
106043
106048
|
}
|
|
106044
106049
|
}), require_symbol_constructor_detection = __commonJS3({
|
|
@@ -115740,7 +115745,7 @@ ${error.message}`, error;
|
|
|
115740
115745
|
}), require_path_parse = __commonJS22({
|
|
115741
115746
|
"node_modules/path-parse/index.js"(exports22, module22) {
|
|
115742
115747
|
"use strict";
|
|
115743
|
-
var
|
|
115748
|
+
var isWindows2 = process.platform === "win32", splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/, win32 = {};
|
|
115744
115749
|
function win32SplitPath(filename) {
|
|
115745
115750
|
return splitWindowsRe.exec(filename).slice(1);
|
|
115746
115751
|
}
|
|
@@ -115775,7 +115780,7 @@ ${error.message}`, error;
|
|
|
115775
115780
|
ext: allParts[4],
|
|
115776
115781
|
name: allParts[3]
|
|
115777
115782
|
};
|
|
115778
|
-
},
|
|
115783
|
+
}, isWindows2 ? module22.exports = win32.parse : module22.exports = posix.parse, module22.exports.posix = posix.parse, module22.exports.win32 = win32.parse;
|
|
115779
115784
|
}
|
|
115780
115785
|
}), require_node_modules_paths = __commonJS22({
|
|
115781
115786
|
"node_modules/resolve/lib/node-modules-paths.js"(exports22, module22) {
|
|
@@ -116493,8 +116498,8 @@ ${error.message}`, error;
|
|
|
116493
116498
|
return x;
|
|
116494
116499
|
}, maybeRealpathSync = function(realpathSync, x, opts) {
|
|
116495
116500
|
return opts && opts.preserveSymlinks === !1 ? realpathSync(x) : x;
|
|
116496
|
-
}, defaultReadPackageSync = function(
|
|
116497
|
-
var body =
|
|
116501
|
+
}, defaultReadPackageSync = function(readFileSync2, pkgfile) {
|
|
116502
|
+
var body = readFileSync2(pkgfile);
|
|
116498
116503
|
try {
|
|
116499
116504
|
var pkg = JSON.parse(body);
|
|
116500
116505
|
return pkg;
|
|
@@ -116508,7 +116513,7 @@ ${error.message}`, error;
|
|
|
116508
116513
|
module22.exports = function(x, options2) {
|
|
116509
116514
|
if (typeof x != "string")
|
|
116510
116515
|
throw new TypeError("Path must be a string.");
|
|
116511
|
-
var opts = normalizeOptions(x, options2), isFile = opts.isFile || defaultIsFile,
|
|
116516
|
+
var opts = normalizeOptions(x, options2), isFile = opts.isFile || defaultIsFile, readFileSync2 = opts.readFileSync || fs.readFileSync, isDirectory2 = opts.isDirectory || defaultIsDir, realpathSync = opts.realpathSync || defaultRealpathSync, readPackageSync = opts.readPackageSync || defaultReadPackageSync;
|
|
116512
116517
|
if (opts.readFileSync && opts.readPackageSync)
|
|
116513
116518
|
throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");
|
|
116514
116519
|
var packageIterator = opts.packageIterator, extensions = opts.extensions || [".js"], includeCoreModules = opts.includeCoreModules !== !1, basedir = opts.basedir || path3.dirname(caller()), parent = opts.filename || basedir;
|
|
@@ -116548,7 +116553,7 @@ ${error.message}`, error;
|
|
|
116548
116553
|
var pkgfile = path3.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
|
|
116549
116554
|
if (!isFile(pkgfile))
|
|
116550
116555
|
return loadpkg(path3.dirname(dir));
|
|
116551
|
-
var pkg = readPackageSync(
|
|
116556
|
+
var pkg = readPackageSync(readFileSync2, pkgfile);
|
|
116552
116557
|
return pkg && opts.packageFilter && (pkg = opts.packageFilter(pkg, dir)), {
|
|
116553
116558
|
pkg,
|
|
116554
116559
|
dir
|
|
@@ -116559,7 +116564,7 @@ ${error.message}`, error;
|
|
|
116559
116564
|
var pkgfile = path3.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
|
|
116560
116565
|
if (isFile(pkgfile)) {
|
|
116561
116566
|
try {
|
|
116562
|
-
var pkg = readPackageSync(
|
|
116567
|
+
var pkg = readPackageSync(readFileSync2, pkgfile);
|
|
116563
116568
|
} catch {
|
|
116564
116569
|
}
|
|
116565
116570
|
if (pkg && opts.packageFilter && (pkg = opts.packageFilter(pkg, x2)), pkg && pkg.main) {
|
|
@@ -118296,7 +118301,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
118296
118301
|
clearCache
|
|
118297
118302
|
};
|
|
118298
118303
|
}
|
|
118299
|
-
}),
|
|
118304
|
+
}), require_ignore2 = __commonJS22({
|
|
118300
118305
|
"node_modules/ignore/index.js"(exports22, module22) {
|
|
118301
118306
|
function makeArray(subject) {
|
|
118302
118307
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -118427,7 +118432,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
118427
118432
|
}), require_create_ignorer = __commonJS22({
|
|
118428
118433
|
"src/common/create-ignorer.js"(exports22, module22) {
|
|
118429
118434
|
"use strict";
|
|
118430
|
-
var path3 = __require("path"),
|
|
118435
|
+
var path3 = __require("path"), ignore2 = require_ignore2().default, getFileContentOrNull = require_get_file_content_or_null();
|
|
118431
118436
|
async function createIgnorer(ignorePath, withNodeModules) {
|
|
118432
118437
|
let ignoreContent = ignorePath ? await getFileContentOrNull(path3.resolve(ignorePath)) : null;
|
|
118433
118438
|
return _createIgnorer(ignoreContent, withNodeModules);
|
|
@@ -118437,7 +118442,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
118437
118442
|
return _createIgnorer(ignoreContent, withNodeModules);
|
|
118438
118443
|
};
|
|
118439
118444
|
function _createIgnorer(ignoreContent, withNodeModules) {
|
|
118440
|
-
let ignorer =
|
|
118445
|
+
let ignorer = ignore2({
|
|
118441
118446
|
allowRelativePaths: !0
|
|
118442
118447
|
}).add(ignoreContent || "");
|
|
118443
118448
|
return withNodeModules || ignorer.add("node_modules"), ignorer;
|
|
@@ -118973,8 +118978,8 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
118973
118978
|
return utils.pattern.getPositivePatterns(patterns);
|
|
118974
118979
|
}
|
|
118975
118980
|
exports22.getPositivePatterns = getPositivePatterns;
|
|
118976
|
-
function getNegativePatternsAsPositive(patterns,
|
|
118977
|
-
return utils.pattern.getNegativePatterns(patterns).concat(
|
|
118981
|
+
function getNegativePatternsAsPositive(patterns, ignore2) {
|
|
118982
|
+
return utils.pattern.getNegativePatterns(patterns).concat(ignore2).map(utils.pattern.convertToPositivePattern);
|
|
118978
118983
|
}
|
|
118979
118984
|
exports22.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
118980
118985
|
function groupPatternsByBaseDirectory(patterns) {
|
|
@@ -123216,10 +123221,10 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
|
|
|
123216
123221
|
function rec(doc3) {
|
|
123217
123222
|
if (mapped.has(doc3))
|
|
123218
123223
|
return mapped.get(doc3);
|
|
123219
|
-
let result =
|
|
123224
|
+
let result = process2(doc3);
|
|
123220
123225
|
return mapped.set(doc3, result), result;
|
|
123221
123226
|
}
|
|
123222
|
-
function
|
|
123227
|
+
function process2(doc3) {
|
|
123223
123228
|
if (Array.isArray(doc3))
|
|
123224
123229
|
return cb(doc3.map(rec));
|
|
123225
123230
|
if (doc3.type === "concat" || doc3.type === "fill") {
|
|
@@ -134797,6 +134802,311 @@ var require_dist2 = __commonJS({
|
|
|
134797
134802
|
}
|
|
134798
134803
|
});
|
|
134799
134804
|
|
|
134805
|
+
// ../../node_modules/.pnpm/ignore@6.0.2/node_modules/ignore/index.js
|
|
134806
|
+
var require_ignore = __commonJS({
|
|
134807
|
+
"../../node_modules/.pnpm/ignore@6.0.2/node_modules/ignore/index.js"(exports2, module2) {
|
|
134808
|
+
init_cjs_shims();
|
|
134809
|
+
function makeArray(subject) {
|
|
134810
|
+
return Array.isArray(subject) ? subject : [subject];
|
|
134811
|
+
}
|
|
134812
|
+
var EMPTY = "", SPACE = " ", ESCAPE = "\\", REGEX_TEST_BLANK_LINE = /^\s+$/, REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/, REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/, REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/, REGEX_SPLITALL_CRLF = /\r?\n/g, REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/, SLASH = "/", TMP_KEY_IGNORE = "node-ignore";
|
|
134813
|
+
typeof Symbol < "u" && (TMP_KEY_IGNORE = Symbol.for("node-ignore"));
|
|
134814
|
+
var KEY_IGNORE = TMP_KEY_IGNORE, define2 = (object, key, value) => Object.defineProperty(object, key, { value }), REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g, RETURN_FALSE = () => !1, sanitizeRange = (range) => range.replace(
|
|
134815
|
+
REGEX_REGEXP_RANGE,
|
|
134816
|
+
(match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY
|
|
134817
|
+
), cleanRangeBackSlash = (slashes) => {
|
|
134818
|
+
let { length } = slashes;
|
|
134819
|
+
return slashes.slice(0, length - length % 2);
|
|
134820
|
+
}, REPLACERS = [
|
|
134821
|
+
[
|
|
134822
|
+
// remove BOM
|
|
134823
|
+
// TODO:
|
|
134824
|
+
// Other similar zero-width characters?
|
|
134825
|
+
/^\uFEFF/,
|
|
134826
|
+
() => EMPTY
|
|
134827
|
+
],
|
|
134828
|
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
134829
|
+
[
|
|
134830
|
+
// (a\ ) -> (a )
|
|
134831
|
+
// (a ) -> (a)
|
|
134832
|
+
// (a ) -> (a)
|
|
134833
|
+
// (a \ ) -> (a )
|
|
134834
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
134835
|
+
(_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
134836
|
+
],
|
|
134837
|
+
// replace (\ ) with ' '
|
|
134838
|
+
// (\ ) -> ' '
|
|
134839
|
+
// (\\ ) -> '\\ '
|
|
134840
|
+
// (\\\ ) -> '\\ '
|
|
134841
|
+
[
|
|
134842
|
+
/(\\+?)\s/g,
|
|
134843
|
+
(_, m1) => {
|
|
134844
|
+
let { length } = m1;
|
|
134845
|
+
return m1.slice(0, length - length % 2) + SPACE;
|
|
134846
|
+
}
|
|
134847
|
+
],
|
|
134848
|
+
// Escape metacharacters
|
|
134849
|
+
// which is written down by users but means special for regular expressions.
|
|
134850
|
+
// > There are 12 characters with special meanings:
|
|
134851
|
+
// > - the backslash \,
|
|
134852
|
+
// > - the caret ^,
|
|
134853
|
+
// > - the dollar sign $,
|
|
134854
|
+
// > - the period or dot .,
|
|
134855
|
+
// > - the vertical bar or pipe symbol |,
|
|
134856
|
+
// > - the question mark ?,
|
|
134857
|
+
// > - the asterisk or star *,
|
|
134858
|
+
// > - the plus sign +,
|
|
134859
|
+
// > - the opening parenthesis (,
|
|
134860
|
+
// > - the closing parenthesis ),
|
|
134861
|
+
// > - and the opening square bracket [,
|
|
134862
|
+
// > - the opening curly brace {,
|
|
134863
|
+
// > These special characters are often called "metacharacters".
|
|
134864
|
+
[
|
|
134865
|
+
/[\\$.|*+(){^]/g,
|
|
134866
|
+
(match) => `\\${match}`
|
|
134867
|
+
],
|
|
134868
|
+
[
|
|
134869
|
+
// > a question mark (?) matches a single character
|
|
134870
|
+
/(?!\\)\?/g,
|
|
134871
|
+
() => "[^/]"
|
|
134872
|
+
],
|
|
134873
|
+
// leading slash
|
|
134874
|
+
[
|
|
134875
|
+
// > A leading slash matches the beginning of the pathname.
|
|
134876
|
+
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
134877
|
+
// A leading slash matches the beginning of the pathname
|
|
134878
|
+
/^\//,
|
|
134879
|
+
() => "^"
|
|
134880
|
+
],
|
|
134881
|
+
// replace special metacharacter slash after the leading slash
|
|
134882
|
+
[
|
|
134883
|
+
/\//g,
|
|
134884
|
+
() => "\\/"
|
|
134885
|
+
],
|
|
134886
|
+
[
|
|
134887
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
134888
|
+
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
134889
|
+
// > the same as pattern "foo".
|
|
134890
|
+
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
134891
|
+
// > under directory "foo".
|
|
134892
|
+
// Notice that the '*'s have been replaced as '\\*'
|
|
134893
|
+
/^\^*\\\*\\\*\\\//,
|
|
134894
|
+
// '**/foo' <-> 'foo'
|
|
134895
|
+
() => "^(?:.*\\/)?"
|
|
134896
|
+
],
|
|
134897
|
+
// starting
|
|
134898
|
+
[
|
|
134899
|
+
// there will be no leading '/'
|
|
134900
|
+
// (which has been replaced by section "leading slash")
|
|
134901
|
+
// If starts with '**', adding a '^' to the regular expression also works
|
|
134902
|
+
/^(?=[^^])/,
|
|
134903
|
+
function() {
|
|
134904
|
+
return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
|
|
134905
|
+
}
|
|
134906
|
+
],
|
|
134907
|
+
// two globstars
|
|
134908
|
+
[
|
|
134909
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
134910
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
134911
|
+
// Zero, one or several directories
|
|
134912
|
+
// should not use '*', or it will be replaced by the next replacer
|
|
134913
|
+
// Check if it is not the last `'/**'`
|
|
134914
|
+
(_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
134915
|
+
],
|
|
134916
|
+
// normal intermediate wildcards
|
|
134917
|
+
[
|
|
134918
|
+
// Never replace escaped '*'
|
|
134919
|
+
// ignore rule '\*' will match the path '*'
|
|
134920
|
+
// 'abc.*/' -> go
|
|
134921
|
+
// 'abc.*' -> skip this rule,
|
|
134922
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
134923
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
134924
|
+
// '*.js' matches '.js'
|
|
134925
|
+
// '*.js' doesn't match 'abc'
|
|
134926
|
+
(_, p1, p2) => {
|
|
134927
|
+
let unescaped = p2.replace(/\\\*/g, "[^\\/]*");
|
|
134928
|
+
return p1 + unescaped;
|
|
134929
|
+
}
|
|
134930
|
+
],
|
|
134931
|
+
[
|
|
134932
|
+
// unescape, revert step 3 except for back slash
|
|
134933
|
+
// For example, if a user escape a '\\*',
|
|
134934
|
+
// after step 3, the result will be '\\\\\\*'
|
|
134935
|
+
/\\\\\\(?=[$.|*+(){^])/g,
|
|
134936
|
+
() => ESCAPE
|
|
134937
|
+
],
|
|
134938
|
+
[
|
|
134939
|
+
// '\\\\' -> '\\'
|
|
134940
|
+
/\\\\/g,
|
|
134941
|
+
() => ESCAPE
|
|
134942
|
+
],
|
|
134943
|
+
[
|
|
134944
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
134945
|
+
// > can be used to match one of the characters in a range.
|
|
134946
|
+
// `\` is escaped by step 3
|
|
134947
|
+
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
134948
|
+
(match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" && endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]"
|
|
134949
|
+
],
|
|
134950
|
+
// ending
|
|
134951
|
+
[
|
|
134952
|
+
// 'js' will not match 'js.'
|
|
134953
|
+
// 'ab' will not match 'abc'
|
|
134954
|
+
/(?:[^*])$/,
|
|
134955
|
+
// WTF!
|
|
134956
|
+
// https://git-scm.com/docs/gitignore
|
|
134957
|
+
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
134958
|
+
// which re-fixes #24, #38
|
|
134959
|
+
// > If there is a separator at the end of the pattern then the pattern
|
|
134960
|
+
// > will only match directories, otherwise the pattern can match both
|
|
134961
|
+
// > files and directories.
|
|
134962
|
+
// 'js*' will not match 'a.js'
|
|
134963
|
+
// 'js/' will not match 'a.js'
|
|
134964
|
+
// 'js' will match 'a.js' and 'a.js/'
|
|
134965
|
+
(match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
|
|
134966
|
+
],
|
|
134967
|
+
// trailing wildcard
|
|
134968
|
+
[
|
|
134969
|
+
/(\^|\\\/)?\\\*$/,
|
|
134970
|
+
(_, p1) => `${p1 ? `${p1}[^/]+` : "[^/]*"}(?=$|\\/$)`
|
|
134971
|
+
]
|
|
134972
|
+
], regexCache = /* @__PURE__ */ Object.create(null), makeRegex = (pattern, ignoreCase) => {
|
|
134973
|
+
let source = regexCache[pattern];
|
|
134974
|
+
return source || (source = REPLACERS.reduce(
|
|
134975
|
+
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
134976
|
+
pattern
|
|
134977
|
+
), regexCache[pattern] = source), ignoreCase ? new RegExp(source, "i") : new RegExp(source);
|
|
134978
|
+
}, isString = (subject) => typeof subject == "string", checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF), IgnoreRule = class {
|
|
134979
|
+
constructor(origin, pattern, negative, regex) {
|
|
134980
|
+
this.origin = origin, this.pattern = pattern, this.negative = negative, this.regex = regex;
|
|
134981
|
+
}
|
|
134982
|
+
}, createRule = (pattern, ignoreCase) => {
|
|
134983
|
+
let origin = pattern, negative = !1;
|
|
134984
|
+
pattern.indexOf("!") === 0 && (negative = !0, pattern = pattern.substr(1)), pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
134985
|
+
let regex = makeRegex(pattern, ignoreCase);
|
|
134986
|
+
return new IgnoreRule(
|
|
134987
|
+
origin,
|
|
134988
|
+
pattern,
|
|
134989
|
+
negative,
|
|
134990
|
+
regex
|
|
134991
|
+
);
|
|
134992
|
+
}, throwError = (message, Ctor) => {
|
|
134993
|
+
throw new Ctor(message);
|
|
134994
|
+
}, checkPath = (path3, originalPath, doThrow) => isString(path3) ? path3 ? checkPath.isNotRelative(path3) ? doThrow(
|
|
134995
|
+
`path should be a \`path.relative()\`d string, but got "${originalPath}"`,
|
|
134996
|
+
RangeError
|
|
134997
|
+
) : !0 : doThrow("path must not be empty", TypeError) : doThrow(
|
|
134998
|
+
`path must be a string, but got \`${originalPath}\``,
|
|
134999
|
+
TypeError
|
|
135000
|
+
), isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
|
|
135001
|
+
checkPath.isNotRelative = isNotRelative;
|
|
135002
|
+
checkPath.convert = (p) => p;
|
|
135003
|
+
var Ignore = class {
|
|
135004
|
+
constructor({
|
|
135005
|
+
ignorecase = !0,
|
|
135006
|
+
ignoreCase = ignorecase,
|
|
135007
|
+
allowRelativePaths = !1
|
|
135008
|
+
} = {}) {
|
|
135009
|
+
define2(this, KEY_IGNORE, !0), this._rules = [], this._ignoreCase = ignoreCase, this._allowRelativePaths = allowRelativePaths, this._initCache();
|
|
135010
|
+
}
|
|
135011
|
+
_initCache() {
|
|
135012
|
+
this._ignoreCache = /* @__PURE__ */ Object.create(null), this._testCache = /* @__PURE__ */ Object.create(null);
|
|
135013
|
+
}
|
|
135014
|
+
_addPattern(pattern) {
|
|
135015
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
135016
|
+
this._rules = this._rules.concat(pattern._rules), this._added = !0;
|
|
135017
|
+
return;
|
|
135018
|
+
}
|
|
135019
|
+
if (checkPattern(pattern)) {
|
|
135020
|
+
let rule = createRule(pattern, this._ignoreCase);
|
|
135021
|
+
this._added = !0, this._rules.push(rule);
|
|
135022
|
+
}
|
|
135023
|
+
}
|
|
135024
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
135025
|
+
add(pattern) {
|
|
135026
|
+
return this._added = !1, makeArray(
|
|
135027
|
+
isString(pattern) ? splitPattern(pattern) : pattern
|
|
135028
|
+
).forEach(this._addPattern, this), this._added && this._initCache(), this;
|
|
135029
|
+
}
|
|
135030
|
+
// legacy
|
|
135031
|
+
addPattern(pattern) {
|
|
135032
|
+
return this.add(pattern);
|
|
135033
|
+
}
|
|
135034
|
+
// | ignored : unignored
|
|
135035
|
+
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
135036
|
+
// -------- | ------- | ------- | ------- | --------
|
|
135037
|
+
// 0 | TEST | TEST | SKIP | X
|
|
135038
|
+
// 1 | TESTIF | SKIP | TEST | X
|
|
135039
|
+
// - SKIP: always skip
|
|
135040
|
+
// - TEST: always test
|
|
135041
|
+
// - TESTIF: only test if checkUnignored
|
|
135042
|
+
// - X: that never happen
|
|
135043
|
+
// @param {boolean} whether should check if the path is unignored,
|
|
135044
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
135045
|
+
// path matching.
|
|
135046
|
+
// @returns {TestResult} true if a file is ignored
|
|
135047
|
+
_testOne(path3, checkUnignored) {
|
|
135048
|
+
let ignored = !1, unignored = !1;
|
|
135049
|
+
return this._rules.forEach((rule) => {
|
|
135050
|
+
let { negative } = rule;
|
|
135051
|
+
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored)
|
|
135052
|
+
return;
|
|
135053
|
+
rule.regex.test(path3) && (ignored = !negative, unignored = negative);
|
|
135054
|
+
}), {
|
|
135055
|
+
ignored,
|
|
135056
|
+
unignored
|
|
135057
|
+
};
|
|
135058
|
+
}
|
|
135059
|
+
// @returns {TestResult}
|
|
135060
|
+
_test(originalPath, cache2, checkUnignored, slices) {
|
|
135061
|
+
let path3 = originalPath && checkPath.convert(originalPath);
|
|
135062
|
+
return checkPath(
|
|
135063
|
+
path3,
|
|
135064
|
+
originalPath,
|
|
135065
|
+
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
135066
|
+
), this._t(path3, cache2, checkUnignored, slices);
|
|
135067
|
+
}
|
|
135068
|
+
_t(path3, cache2, checkUnignored, slices) {
|
|
135069
|
+
if (path3 in cache2)
|
|
135070
|
+
return cache2[path3];
|
|
135071
|
+
if (slices || (slices = path3.split(SLASH)), slices.pop(), !slices.length)
|
|
135072
|
+
return cache2[path3] = this._testOne(path3, checkUnignored);
|
|
135073
|
+
let parent = this._t(
|
|
135074
|
+
slices.join(SLASH) + SLASH,
|
|
135075
|
+
cache2,
|
|
135076
|
+
checkUnignored,
|
|
135077
|
+
slices
|
|
135078
|
+
);
|
|
135079
|
+
return cache2[path3] = parent.ignored ? parent : this._testOne(path3, checkUnignored);
|
|
135080
|
+
}
|
|
135081
|
+
ignores(path3) {
|
|
135082
|
+
return this._test(path3, this._ignoreCache, !1).ignored;
|
|
135083
|
+
}
|
|
135084
|
+
createFilter() {
|
|
135085
|
+
return (path3) => !this.ignores(path3);
|
|
135086
|
+
}
|
|
135087
|
+
filter(paths) {
|
|
135088
|
+
return makeArray(paths).filter(this.createFilter());
|
|
135089
|
+
}
|
|
135090
|
+
// @returns {TestResult}
|
|
135091
|
+
test(path3) {
|
|
135092
|
+
return this._test(path3, this._testCache, !0);
|
|
135093
|
+
}
|
|
135094
|
+
}, factory = (options2) => new Ignore(options2), isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
|
|
135095
|
+
factory.isPathValid = isPathValid;
|
|
135096
|
+
factory.default = factory;
|
|
135097
|
+
module2.exports = factory;
|
|
135098
|
+
if (
|
|
135099
|
+
// Detect `process` so that it can run in browsers.
|
|
135100
|
+
typeof process < "u" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
135101
|
+
) {
|
|
135102
|
+
let makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
135103
|
+
checkPath.convert = makePosix;
|
|
135104
|
+
let REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
135105
|
+
checkPath.isNotRelative = (path3) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
|
|
135106
|
+
}
|
|
135107
|
+
}
|
|
135108
|
+
});
|
|
135109
|
+
|
|
134800
135110
|
// ../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json
|
|
134801
135111
|
var require_package2 = __commonJS({
|
|
134802
135112
|
"../../node_modules/.pnpm/dotenv@16.4.7/node_modules/dotenv/package.json"(exports2, module2) {
|
|
@@ -135037,21 +135347,21 @@ var require_main = __commonJS({
|
|
|
135037
135347
|
}
|
|
135038
135348
|
});
|
|
135039
135349
|
|
|
135040
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135350
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135041
135351
|
init_cjs_shims();
|
|
135042
135352
|
var import_core = __toESM(require_lib(), 1);
|
|
135043
135353
|
|
|
135044
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135354
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135045
135355
|
init_cjs_shims();
|
|
135046
135356
|
|
|
135047
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135357
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135048
135358
|
init_cjs_shims();
|
|
135049
135359
|
|
|
135050
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135360
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135051
135361
|
init_cjs_shims();
|
|
135052
135362
|
import { fileURLToPath } from "node:url";
|
|
135053
135363
|
|
|
135054
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135364
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
135055
135365
|
init_cjs_shims();
|
|
135056
135366
|
import { exec } from "node:child_process";
|
|
135057
135367
|
import { promisify } from "node:util";
|
|
@@ -135063,7 +135373,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
135063
135373
|
}));
|
|
135064
135374
|
}
|
|
135065
135375
|
|
|
135066
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135376
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
135067
135377
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
135068
135378
|
"/hydrogen/packages/"
|
|
135069
135379
|
), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
|
|
@@ -135110,7 +135420,7 @@ async function getRepoNodeModules() {
|
|
|
135110
135420
|
return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
|
|
135111
135421
|
}
|
|
135112
135422
|
|
|
135113
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135423
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
135114
135424
|
var SETUP_CSS_STRATEGIES = [
|
|
135115
135425
|
"tailwind",
|
|
135116
135426
|
"vanilla-extract",
|
|
@@ -135145,14 +135455,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
135145
135455
|
}));
|
|
135146
135456
|
}
|
|
135147
135457
|
|
|
135148
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135458
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135149
135459
|
init_cjs_shims();
|
|
135150
135460
|
|
|
135151
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135461
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135152
135462
|
init_cjs_shims();
|
|
135153
135463
|
import { readdir } from "node:fs/promises";
|
|
135154
135464
|
|
|
135155
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135465
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
135156
135466
|
init_cjs_shims();
|
|
135157
135467
|
var prettier = __toESM(require_prettier(), 1), DEFAULT_PRETTIER_CONFIG = {
|
|
135158
135468
|
arrowParens: "always",
|
|
@@ -135178,7 +135488,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
135178
135488
|
});
|
|
135179
135489
|
}
|
|
135180
135490
|
|
|
135181
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135491
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
135182
135492
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
135183
135493
|
let content = await replacer(await readFile(filepath));
|
|
135184
135494
|
if (typeof content == "string")
|
|
@@ -135258,10 +135568,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
135258
135568
|
);
|
|
135259
135569
|
}
|
|
135260
135570
|
|
|
135261
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135571
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135262
135572
|
init_cjs_shims();
|
|
135263
135573
|
|
|
135264
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135574
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
135265
135575
|
init_cjs_shims();
|
|
135266
135576
|
async function importLangAstGrep(lang) {
|
|
135267
135577
|
let astGrep = await import("@ast-grep/napi");
|
|
@@ -135270,7 +135580,7 @@ async function importLangAstGrep(lang) {
|
|
|
135270
135580
|
return astGrep[lang];
|
|
135271
135581
|
}
|
|
135272
135582
|
|
|
135273
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135583
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
135274
135584
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
135275
135585
|
let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
135276
135586
|
if (!filepath || !astType)
|
|
@@ -135279,46 +135589,29 @@ async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
|
135279
135589
|
let importStatement = `import ${importer.isDefault ? importer.name : `{${importer.name}}`} from '${(importer.isAbsolute ? "" : "./") + importer.path}';`;
|
|
135280
135590
|
if (content.includes(importStatement.split("from")[0]))
|
|
135281
135591
|
return;
|
|
135282
|
-
let root = (await importLangAstGrep(astType)).parse(content).root(), importNodes = root.findAll({ rule: { kind: "import_statement" } }).reverse(), lastImportNode = importNodes.find((node) => node.text().includes(".css")) || importNodes.shift(),
|
|
135283
|
-
|
|
135284
|
-
"
|
|
135592
|
+
let root = (await importLangAstGrep(astType)).parse(content).root(), importNodes = root.findAll({ rule: { kind: "import_statement" } }).reverse(), lastImportNode = importNodes.find((node) => node.text().includes(".css")) || importNodes.shift(), layoutStyleNode = root.find({
|
|
135593
|
+
rule: {
|
|
135594
|
+
kind: "jsx_element",
|
|
135595
|
+
regex: "resetStyles",
|
|
135596
|
+
has: {
|
|
135597
|
+
kind: "jsx_opening_element",
|
|
135285
135598
|
has: {
|
|
135286
135599
|
kind: "identifier",
|
|
135287
|
-
pattern: "
|
|
135288
|
-
}
|
|
135289
|
-
}
|
|
135290
|
-
},
|
|
135291
|
-
rule: {
|
|
135292
|
-
kind: "return_statement",
|
|
135293
|
-
pattern: "return [$$$]",
|
|
135294
|
-
inside: {
|
|
135295
|
-
any: [
|
|
135296
|
-
{
|
|
135297
|
-
kind: "function_declaration",
|
|
135298
|
-
matches: "has-links-id"
|
|
135299
|
-
},
|
|
135300
|
-
{
|
|
135301
|
-
kind: "variable_declarator",
|
|
135302
|
-
matches: "has-links-id"
|
|
135303
|
-
}
|
|
135304
|
-
],
|
|
135305
|
-
stopBy: "end",
|
|
135306
|
-
inside: {
|
|
135307
|
-
stopBy: "end",
|
|
135308
|
-
kind: "export_statement"
|
|
135600
|
+
pattern: "link"
|
|
135309
135601
|
}
|
|
135310
135602
|
}
|
|
135311
135603
|
}
|
|
135312
135604
|
});
|
|
135313
|
-
if (!lastImportNode || !
|
|
135605
|
+
if (!lastImportNode || !layoutStyleNode)
|
|
135314
135606
|
throw new AbortError(
|
|
135315
135607
|
'Could not find a "links" export in root file. Please add one and try again.'
|
|
135316
135608
|
);
|
|
135317
|
-
let lastImportContent = lastImportNode.text(),
|
|
135609
|
+
let lastImportContent = lastImportNode.text(), layoutStyleNodeContent = layoutStyleNode.text(), newLinkNode = importer.isConditional ? `{${importer.name} && <link rel="stylesheet" href={${importer.name}}></link>}` : `<link rel="stylesheet" href={${importer.name}}></link>`;
|
|
135318
135610
|
return content.replace(lastImportContent, lastImportContent + `
|
|
135319
135611
|
` + importStatement).replace(
|
|
135320
|
-
|
|
135321
|
-
|
|
135612
|
+
layoutStyleNodeContent,
|
|
135613
|
+
newLinkNode + `
|
|
135614
|
+
` + layoutStyleNodeContent
|
|
135322
135615
|
);
|
|
135323
135616
|
});
|
|
135324
135617
|
}
|
|
@@ -135389,7 +135682,7 @@ var vitePluginListRule = {
|
|
|
135389
135682
|
}
|
|
135390
135683
|
};
|
|
135391
135684
|
|
|
135392
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135685
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
135393
135686
|
var tailwindCssPath = "styles/tailwind.css";
|
|
135394
135687
|
async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
135395
135688
|
let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
|
|
@@ -135425,7 +135718,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
|
|
|
135425
135718
|
};
|
|
135426
135719
|
}
|
|
135427
135720
|
|
|
135428
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135721
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
135429
135722
|
init_cjs_shims();
|
|
135430
135723
|
async function setupVanillaExtract({
|
|
135431
135724
|
rootDirectory
|
|
@@ -135446,9 +135739,9 @@ async function setupVanillaExtract({
|
|
|
135446
135739
|
};
|
|
135447
135740
|
}
|
|
135448
135741
|
|
|
135449
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135742
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
135450
135743
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
|
|
135451
|
-
tailwind: "Tailwind (v4
|
|
135744
|
+
tailwind: "Tailwind (v4 beta)",
|
|
135452
135745
|
"vanilla-extract": "Vanilla Extract",
|
|
135453
135746
|
"css-modules": "CSS Modules",
|
|
135454
135747
|
postcss: "PostCSS"
|
|
@@ -135491,23 +135784,23 @@ async function renderCssPrompt(options2) {
|
|
|
135491
135784
|
});
|
|
135492
135785
|
}
|
|
135493
135786
|
|
|
135494
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135787
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
135495
135788
|
init_cjs_shims();
|
|
135496
135789
|
|
|
135497
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135790
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135498
135791
|
init_cjs_shims();
|
|
135499
135792
|
|
|
135500
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135793
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
135501
135794
|
init_cjs_shims();
|
|
135502
135795
|
|
|
135503
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135796
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
135504
135797
|
init_cjs_shims();
|
|
135505
135798
|
async function transpileFile(code, filepath, keepTypes = !0) {
|
|
135506
|
-
let { transpileTs } = await import("./morph-
|
|
135799
|
+
let { transpileTs } = await import("./morph-BTANDGVW.js");
|
|
135507
135800
|
return transpileTs(code, filepath, keepTypes);
|
|
135508
135801
|
}
|
|
135509
135802
|
|
|
135510
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135803
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
135511
135804
|
init_cjs_shims();
|
|
135512
135805
|
var DEFAULT_JS_CONFIG = {
|
|
135513
135806
|
checkJs: !1,
|
|
@@ -135613,7 +135906,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
|
|
|
135613
135906
|
}
|
|
135614
135907
|
}
|
|
135615
135908
|
|
|
135616
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
135909
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
135617
135910
|
async function replaceContextI18n({
|
|
135618
135911
|
rootDirectory,
|
|
135619
135912
|
contextCreate = joinPath("app", "lib", "context.ts")
|
|
@@ -135752,7 +136045,7 @@ async function findContextCreateFile({
|
|
|
135752
136045
|
return { filepath, astType };
|
|
135753
136046
|
}
|
|
135754
136047
|
|
|
135755
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136048
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
135756
136049
|
var SETUP_I18N_STRATEGIES = [
|
|
135757
136050
|
"subfolders",
|
|
135758
136051
|
"domains",
|
|
@@ -135784,7 +136077,7 @@ async function renderI18nPrompt(options2) {
|
|
|
135784
136077
|
});
|
|
135785
136078
|
}
|
|
135786
136079
|
|
|
135787
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136080
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
135788
136081
|
var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
|
|
135789
136082
|
path: {
|
|
135790
136083
|
path: import_core.Flags.string({
|
|
@@ -135972,7 +136265,7 @@ function overrideFlag(flags, extra) {
|
|
|
135972
136265
|
);
|
|
135973
136266
|
}
|
|
135974
136267
|
|
|
135975
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136268
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
135976
136269
|
init_cjs_shims();
|
|
135977
136270
|
import { createRequire } from "node:module";
|
|
135978
136271
|
import { pathToFileURL } from "node:url";
|
|
@@ -135995,13 +136288,13 @@ function importLocal(packageName, path3) {
|
|
|
135995
136288
|
return import(pathToFileURL(realPath).href);
|
|
135996
136289
|
}
|
|
135997
136290
|
|
|
135998
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136291
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
135999
136292
|
init_cjs_shims();
|
|
136000
136293
|
import path from "node:path";
|
|
136001
136294
|
import { EventEmitter } from "node:events";
|
|
136002
136295
|
import { ReadableStream } from "node:stream/web";
|
|
136003
136296
|
|
|
136004
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136297
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
136005
136298
|
init_cjs_shims();
|
|
136006
136299
|
function getGraphiQLUrl({
|
|
136007
136300
|
host = "",
|
|
@@ -136015,7 +136308,7 @@ function getGraphiQLUrl({
|
|
|
136015
136308
|
return url;
|
|
136016
136309
|
}
|
|
136017
136310
|
|
|
136018
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136311
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
136019
136312
|
var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
|
|
136020
136313
|
function setConstructors(constructors) {
|
|
136021
136314
|
ResponseConstructor = constructors.Response;
|
|
@@ -136116,7 +136409,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
136116
136409
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
136117
136410
|
}
|
|
136118
136411
|
|
|
136119
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136412
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
136120
136413
|
init_cjs_shims();
|
|
136121
136414
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
136122
136415
|
function handleMiniOxygenImportFail() {
|
|
@@ -136150,21 +136443,21 @@ function logRequestLine({
|
|
|
136150
136443
|
}
|
|
136151
136444
|
}
|
|
136152
136445
|
|
|
136153
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136446
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
136154
136447
|
init_cjs_shims();
|
|
136155
136448
|
|
|
136156
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136449
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
136157
136450
|
init_cjs_shims();
|
|
136158
136451
|
var import_core3 = __toESM(require_lib(), 1);
|
|
136159
136452
|
|
|
136160
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136453
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
136161
136454
|
init_cjs_shims();
|
|
136162
136455
|
var import_core2 = __toESM(require_lib(), 1);
|
|
136163
136456
|
|
|
136164
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136457
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136165
136458
|
init_cjs_shims();
|
|
136166
136459
|
|
|
136167
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136460
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136168
136461
|
init_cjs_shims();
|
|
136169
136462
|
|
|
136170
136463
|
// ../cli-kit/dist/public/node/api/graphql.js
|
|
@@ -136247,7 +136540,7 @@ async function graphqlRequestDoc(options2) {
|
|
|
136247
136540
|
});
|
|
136248
136541
|
}
|
|
136249
136542
|
|
|
136250
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136543
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
136251
136544
|
async function adminRequest(query, session, variables) {
|
|
136252
136545
|
let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
|
|
136253
136546
|
try {
|
|
@@ -136282,7 +136575,7 @@ async function adminRequest(query, session, variables) {
|
|
|
136282
136575
|
}
|
|
136283
136576
|
}
|
|
136284
136577
|
|
|
136285
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136578
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
136286
136579
|
init_cjs_shims();
|
|
136287
136580
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
136288
136581
|
function parseGid(gid) {
|
|
@@ -136292,7 +136585,7 @@ function parseGid(gid) {
|
|
|
136292
136585
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
136293
136586
|
}
|
|
136294
136587
|
|
|
136295
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136588
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
136296
136589
|
var LinkStorefrontQuery = `#graphql
|
|
136297
136590
|
query LinkStorefront {
|
|
136298
136591
|
hydrogenStorefronts {
|
|
@@ -136313,7 +136606,7 @@ async function getStorefronts(adminSession) {
|
|
|
136313
136606
|
}));
|
|
136314
136607
|
}
|
|
136315
136608
|
|
|
136316
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136609
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
136317
136610
|
init_cjs_shims();
|
|
136318
136611
|
var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
|
|
136319
136612
|
async function resetConfig(root) {
|
|
@@ -136384,7 +136677,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
136384
136677
|
}
|
|
136385
136678
|
}
|
|
136386
136679
|
|
|
136387
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136680
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
136388
136681
|
init_cjs_shims();
|
|
136389
136682
|
var CreateStorefrontMutation = `#graphql
|
|
136390
136683
|
mutation CreateStorefront($title: String!) {
|
|
@@ -136418,7 +136711,7 @@ async function createStorefront(adminSession, title) {
|
|
|
136418
136711
|
return { jobId, storefront: hydrogenStorefront };
|
|
136419
136712
|
}
|
|
136420
136713
|
|
|
136421
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136714
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
136422
136715
|
init_cjs_shims();
|
|
136423
136716
|
var FetchJobQuery = `#graphql
|
|
136424
136717
|
query FetchJob($id: ID!) {
|
|
@@ -136452,7 +136745,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
136452
136745
|
});
|
|
136453
136746
|
}
|
|
136454
136747
|
|
|
136455
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136748
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
136456
136749
|
init_cjs_shims();
|
|
136457
136750
|
function titleize(name = "") {
|
|
136458
136751
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -136460,7 +136753,7 @@ function titleize(name = "") {
|
|
|
136460
136753
|
).join(" ");
|
|
136461
136754
|
}
|
|
136462
136755
|
|
|
136463
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136756
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
136464
136757
|
init_cjs_shims();
|
|
136465
136758
|
import os from "node:os";
|
|
136466
136759
|
var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
|
|
@@ -136575,10 +136868,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
136575
136868
|
return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
|
|
136576
136869
|
}
|
|
136577
136870
|
|
|
136578
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136871
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
136579
136872
|
init_cjs_shims();
|
|
136580
136873
|
|
|
136581
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136874
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136582
136875
|
init_cjs_shims();
|
|
136583
136876
|
|
|
136584
136877
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -136672,7 +136965,7 @@ async function businessPlatformOrganizationsRequestDoc(query, token, organizatio
|
|
|
136672
136965
|
});
|
|
136673
136966
|
}
|
|
136674
136967
|
|
|
136675
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136968
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
136676
136969
|
var CurrentUserAccountQuery = `#graphql
|
|
136677
136970
|
query currentUserAccount {
|
|
136678
136971
|
currentUserAccount {
|
|
@@ -136751,87 +137044,8 @@ async function getUserAccount(token) {
|
|
|
136751
137044
|
};
|
|
136752
137045
|
}
|
|
136753
137046
|
|
|
136754
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
136755
|
-
init_cjs_shims();
|
|
136756
|
-
|
|
136757
|
-
// ../../node_modules/.pnpm/ansi-escapes@6.2.0/node_modules/ansi-escapes/index.js
|
|
137047
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
136758
137048
|
init_cjs_shims();
|
|
136759
|
-
import process2 from "node:process";
|
|
136760
|
-
var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isBrowser = typeof window < "u" && typeof window.document < "u", isTerminalApp = !isBrowser && process2.env.TERM_PROGRAM === "Apple_Terminal", isWindows2 = !isBrowser && process2.platform === "win32", cwdFunction = isBrowser ? () => {
|
|
136761
|
-
throw new Error("`process.cwd()` only works in Node.js, not the browser.");
|
|
136762
|
-
} : process2.cwd, ansiEscapes = {};
|
|
136763
|
-
ansiEscapes.cursorTo = (x, y) => {
|
|
136764
|
-
if (typeof x != "number")
|
|
136765
|
-
throw new TypeError("The `x` argument is required");
|
|
136766
|
-
return typeof y != "number" ? ESC + (x + 1) + "G" : ESC + (y + 1) + SEP + (x + 1) + "H";
|
|
136767
|
-
};
|
|
136768
|
-
ansiEscapes.cursorMove = (x, y) => {
|
|
136769
|
-
if (typeof x != "number")
|
|
136770
|
-
throw new TypeError("The `x` argument is required");
|
|
136771
|
-
let returnValue = "";
|
|
136772
|
-
return x < 0 ? returnValue += ESC + -x + "D" : x > 0 && (returnValue += ESC + x + "C"), y < 0 ? returnValue += ESC + -y + "A" : y > 0 && (returnValue += ESC + y + "B"), returnValue;
|
|
136773
|
-
};
|
|
136774
|
-
ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
|
|
136775
|
-
ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
|
|
136776
|
-
ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
|
|
136777
|
-
ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
|
|
136778
|
-
ansiEscapes.cursorLeft = ESC + "G";
|
|
136779
|
-
ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
|
|
136780
|
-
ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
|
|
136781
|
-
ansiEscapes.cursorGetPosition = ESC + "6n";
|
|
136782
|
-
ansiEscapes.cursorNextLine = ESC + "E";
|
|
136783
|
-
ansiEscapes.cursorPrevLine = ESC + "F";
|
|
136784
|
-
ansiEscapes.cursorHide = ESC + "?25l";
|
|
136785
|
-
ansiEscapes.cursorShow = ESC + "?25h";
|
|
136786
|
-
ansiEscapes.eraseLines = (count) => {
|
|
136787
|
-
let clear = "";
|
|
136788
|
-
for (let i = 0; i < count; i++)
|
|
136789
|
-
clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
|
|
136790
|
-
return count && (clear += ansiEscapes.cursorLeft), clear;
|
|
136791
|
-
};
|
|
136792
|
-
ansiEscapes.eraseEndLine = ESC + "K";
|
|
136793
|
-
ansiEscapes.eraseStartLine = ESC + "1K";
|
|
136794
|
-
ansiEscapes.eraseLine = ESC + "2K";
|
|
136795
|
-
ansiEscapes.eraseDown = ESC + "J";
|
|
136796
|
-
ansiEscapes.eraseUp = ESC + "1J";
|
|
136797
|
-
ansiEscapes.eraseScreen = ESC + "2J";
|
|
136798
|
-
ansiEscapes.scrollUp = ESC + "S";
|
|
136799
|
-
ansiEscapes.scrollDown = ESC + "T";
|
|
136800
|
-
ansiEscapes.clearScreen = "\x1Bc";
|
|
136801
|
-
ansiEscapes.clearTerminal = isWindows2 ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
|
|
136802
|
-
ansiEscapes.enterAlternativeScreen = ESC + "?1049h";
|
|
136803
|
-
ansiEscapes.exitAlternativeScreen = ESC + "?1049l";
|
|
136804
|
-
ansiEscapes.beep = BEL;
|
|
136805
|
-
ansiEscapes.link = (text, url) => [
|
|
136806
|
-
OSC,
|
|
136807
|
-
"8",
|
|
136808
|
-
SEP,
|
|
136809
|
-
SEP,
|
|
136810
|
-
url,
|
|
136811
|
-
BEL,
|
|
136812
|
-
text,
|
|
136813
|
-
OSC,
|
|
136814
|
-
"8",
|
|
136815
|
-
SEP,
|
|
136816
|
-
SEP,
|
|
136817
|
-
BEL
|
|
136818
|
-
].join("");
|
|
136819
|
-
ansiEscapes.image = (buffer, options2 = {}) => {
|
|
136820
|
-
let returnValue = `${OSC}1337;File=inline=1`;
|
|
136821
|
-
return options2.width && (returnValue += `;width=${options2.width}`), options2.height && (returnValue += `;height=${options2.height}`), options2.preserveAspectRatio === !1 && (returnValue += ";preserveAspectRatio=0"), returnValue + ":" + buffer.toString("base64") + BEL;
|
|
136822
|
-
};
|
|
136823
|
-
ansiEscapes.iTerm = {
|
|
136824
|
-
setCwd: (cwd2 = cwdFunction()) => `${OSC}50;CurrentDir=${cwd2}${BEL}`,
|
|
136825
|
-
annotation(message, options2 = {}) {
|
|
136826
|
-
let returnValue = `${OSC}1337;`, hasX = typeof options2.x < "u", hasY = typeof options2.y < "u";
|
|
136827
|
-
if ((hasX || hasY) && !(hasX && hasY && typeof options2.length < "u"))
|
|
136828
|
-
throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
|
|
136829
|
-
return message = message.replace(/\|/g, ""), returnValue += options2.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=", options2.length > 0 ? returnValue += (hasX ? [message, options2.length, options2.x, options2.y] : [options2.length, message]).join("|") : returnValue += message, returnValue + BEL;
|
|
136830
|
-
}
|
|
136831
|
-
};
|
|
136832
|
-
var ansi_escapes_default = ansiEscapes;
|
|
136833
|
-
|
|
136834
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.3_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
136835
137049
|
var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
|
|
136836
137050
|
function addMessageReplacers(key, ...items) {
|
|
136837
137051
|
addedReplacers.has(key) || (addedReplacers.add(key), messageReplacers.push(...items));
|
|
@@ -137103,7 +137317,7 @@ function isH2Verbose() {
|
|
|
137103
137317
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
137104
137318
|
}
|
|
137105
137319
|
|
|
137106
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137320
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
137107
137321
|
async function logout2(root) {
|
|
137108
137322
|
await logout(), await resetConfig(root);
|
|
137109
137323
|
}
|
|
@@ -137142,7 +137356,7 @@ function renderLoginSuccess(config) {
|
|
|
137142
137356
|
});
|
|
137143
137357
|
}
|
|
137144
137358
|
|
|
137145
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
137359
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
137146
137360
|
init_cjs_shims();
|
|
137147
137361
|
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
137148
137362
|
|
|
@@ -140499,6 +140713,7 @@ init_git_response_error();
|
|
|
140499
140713
|
var esm_default = gitInstanceFactory;
|
|
140500
140714
|
|
|
140501
140715
|
// ../cli-kit/dist/public/node/git.js
|
|
140716
|
+
var import_ignore = __toESM(require_ignore());
|
|
140502
140717
|
async function initializeGitRepository(directory, initialBranch = "main") {
|
|
140503
140718
|
outputDebug(outputContent`Initializing git repository at ${outputToken.path(directory)}...`), await ensureGitIsPresentOrAbort();
|
|
140504
140719
|
let repo = esm_default(directory);
|
|
@@ -140507,6 +140722,13 @@ async function initializeGitRepository(directory, initialBranch = "main") {
|
|
|
140507
140722
|
async function checkIfIgnoredInGitRepository(directory, files) {
|
|
140508
140723
|
return await esm_default(directory).checkIgnore(files);
|
|
140509
140724
|
}
|
|
140725
|
+
function addToGitIgnore(root, entry) {
|
|
140726
|
+
let gitIgnorePath = joinPath(root, ".gitignore");
|
|
140727
|
+
if (!fileExistsSync(gitIgnorePath))
|
|
140728
|
+
return;
|
|
140729
|
+
let gitIgnoreContent2 = readFileSync(gitIgnorePath).toString(), eol = detectEOL(gitIgnoreContent2), lines = gitIgnoreContent2.split(eol).map((line) => line.trim()), ignoreManager = import_ignore.default.default({ allowRelativePaths: !0 }).add(lines), isIgnoredEntry = ignoreManager.ignores(joinPath(entry)), isIgnoredEntryAsDir = ignoreManager.ignores(joinPath(entry, "ignored.txt"));
|
|
140730
|
+
isIgnoredEntry || isIgnoredEntryAsDir || (gitIgnoreContent2.endsWith(eol) ? writeFileSync(gitIgnorePath, `${gitIgnoreContent2}${entry}${eol}`) : writeFileSync(gitIgnorePath, `${gitIgnoreContent2}${eol}${entry}${eol}`));
|
|
140731
|
+
}
|
|
140510
140732
|
async function downloadGitRepository(cloneOptions) {
|
|
140511
140733
|
return runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
140512
140734
|
let { repoUrl, destination, progressUpdater, shallow, latestTag } = cloneOptions;
|
|
@@ -140582,11 +140804,11 @@ async function isClean(directory) {
|
|
|
140582
140804
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
140583
140805
|
}
|
|
140584
140806
|
|
|
140585
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140807
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140586
140808
|
init_cjs_shims();
|
|
140587
140809
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
140588
140810
|
|
|
140589
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140811
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
140590
140812
|
init_cjs_shims();
|
|
140591
140813
|
import { createRequire as createRequire2 } from "module";
|
|
140592
140814
|
function convertRouteToV1(route) {
|
|
@@ -140600,13 +140822,13 @@ function isV1RouteConventionInstalled() {
|
|
|
140600
140822
|
}
|
|
140601
140823
|
}
|
|
140602
140824
|
|
|
140603
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140825
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140604
140826
|
init_cjs_shims();
|
|
140605
140827
|
import { createRequire as createRequire4 } from "node:module";
|
|
140606
140828
|
import path2 from "node:path";
|
|
140607
140829
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
140608
140830
|
|
|
140609
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140831
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
140610
140832
|
init_cjs_shims();
|
|
140611
140833
|
import { createRequire as createRequire3 } from "node:module";
|
|
140612
140834
|
var REQUIRED_REMIX_VERSION = "^2.1.0";
|
|
@@ -140645,7 +140867,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
140645
140867
|
return result;
|
|
140646
140868
|
}
|
|
140647
140869
|
|
|
140648
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140870
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
140649
140871
|
init_cjs_shims();
|
|
140650
140872
|
async function hasViteConfig(root) {
|
|
140651
140873
|
return !!(await findFileWithExtension(root, "vite.config")).filepath;
|
|
@@ -140712,7 +140934,7 @@ function findOxygenPlugin(config) {
|
|
|
140712
140934
|
return findPlugin(config, "oxygen:main");
|
|
140713
140935
|
}
|
|
140714
140936
|
|
|
140715
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
140937
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
140716
140938
|
async function hasRemixConfigFile(root) {
|
|
140717
140939
|
return !!(await findFileWithExtension(root, "remix.config")).filepath;
|
|
140718
140940
|
}
|
|
@@ -140837,7 +141059,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
140837
141059
|
}
|
|
140838
141060
|
}
|
|
140839
141061
|
|
|
140840
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141062
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
140841
141063
|
var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
|
|
140842
141064
|
home: ["_index", "$"],
|
|
140843
141065
|
page: "pages*",
|
|
@@ -141045,7 +141267,7 @@ async function copyRouteTemplate({
|
|
|
141045
141267
|
adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
|
|
141046
141268
|
}
|
|
141047
141269
|
|
|
141048
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141270
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
141049
141271
|
var LANGUAGES = {
|
|
141050
141272
|
js: "JavaScript",
|
|
141051
141273
|
ts: "TypeScript"
|
|
@@ -141492,7 +141714,7 @@ function generateRandomName() {
|
|
|
141492
141714
|
])} ${geographicalFeature}`;
|
|
141493
141715
|
}
|
|
141494
141716
|
|
|
141495
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141717
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
141496
141718
|
var Link = class _Link extends base_command_default {
|
|
141497
141719
|
static descriptionWithMarkdown = `Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
|
|
141498
141720
|
|
|
@@ -141613,7 +141835,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
141613
141835
|
return storefront;
|
|
141614
141836
|
}
|
|
141615
141837
|
|
|
141616
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141838
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
141617
141839
|
init_cjs_shims();
|
|
141618
141840
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
141619
141841
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -141641,7 +141863,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
141641
141863
|
return { success, userErrors };
|
|
141642
141864
|
}
|
|
141643
141865
|
|
|
141644
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141866
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
141645
141867
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
141646
141868
|
static description = "Push project configuration to admin";
|
|
141647
141869
|
static flags = {
|
|
@@ -141774,7 +141996,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
141774
141996
|
}) ? (await getConfig(root)).storefront?.id : void 0;
|
|
141775
141997
|
}
|
|
141776
141998
|
|
|
141777
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
141999
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
141778
142000
|
init_cjs_shims();
|
|
141779
142001
|
|
|
141780
142002
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -141839,7 +142061,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
141839
142061
|
return `${key}=${value}`;
|
|
141840
142062
|
}
|
|
141841
142063
|
|
|
141842
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142064
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
141843
142065
|
init_cjs_shims();
|
|
141844
142066
|
var PullVariablesQuery = `#graphql
|
|
141845
142067
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -141867,7 +142089,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
141867
142089
|
return hydrogenStorefront;
|
|
141868
142090
|
}
|
|
141869
142091
|
|
|
141870
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142092
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
141871
142093
|
init_cjs_shims();
|
|
141872
142094
|
var ListEnvironmentsQuery = `#graphql
|
|
141873
142095
|
query ListStorefronts($id: ID!) {
|
|
@@ -141895,7 +142117,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
141895
142117
|
return hydrogenStorefront;
|
|
141896
142118
|
}
|
|
141897
142119
|
|
|
141898
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142120
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
141899
142121
|
init_cjs_shims();
|
|
141900
142122
|
function orderEnvironmentsBySafety(environments) {
|
|
141901
142123
|
return [
|
|
@@ -141936,7 +142158,7 @@ function environmentNotFound(criterion, value) {
|
|
|
141936
142158
|
);
|
|
141937
142159
|
}
|
|
141938
142160
|
|
|
141939
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142161
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
141940
142162
|
var createEmptyRemoteVars = () => ({
|
|
141941
142163
|
remoteVariables: {},
|
|
141942
142164
|
remoteSecrets: {}
|
|
@@ -142007,7 +142229,7 @@ async function getLocalVariables(root, envFile) {
|
|
|
142007
142229
|
);
|
|
142008
142230
|
}
|
|
142009
142231
|
|
|
142010
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142232
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
142011
142233
|
init_cjs_shims();
|
|
142012
142234
|
async function startTunnelPlugin(config, port, provider) {
|
|
142013
142235
|
let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
|
|
@@ -142038,7 +142260,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
142038
142260
|
});
|
|
142039
142261
|
}
|
|
142040
142262
|
|
|
142041
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.
|
|
142263
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@9.0.5_@graphql-codegen+cli@5.0.4_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
142042
142264
|
function isMockShop(envVariables) {
|
|
142043
142265
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
142044
142266
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -142127,8 +142349,10 @@ ${host}/subrequest-profiler`
|
|
|
142127
142349
|
export {
|
|
142128
142350
|
graphqlRequest,
|
|
142129
142351
|
graphqlRequestDoc,
|
|
142352
|
+
require_ignore,
|
|
142130
142353
|
initializeGitRepository,
|
|
142131
142354
|
checkIfIgnoredInGitRepository,
|
|
142355
|
+
addToGitIgnore,
|
|
142132
142356
|
downloadGitRepository,
|
|
142133
142357
|
getLatestGitCommit,
|
|
142134
142358
|
ensureInsideGitDirectory,
|
|
@@ -142170,7 +142394,6 @@ export {
|
|
|
142170
142394
|
overrideFlag,
|
|
142171
142395
|
importVite,
|
|
142172
142396
|
importLocal,
|
|
142173
|
-
ansi_escapes_default,
|
|
142174
142397
|
muteDevLogs,
|
|
142175
142398
|
enhanceAuthLogs,
|
|
142176
142399
|
enhanceH2Logs,
|
|
@@ -142256,4 +142479,4 @@ export {
|
|
|
142256
142479
|
getDebugBannerLine,
|
|
142257
142480
|
getUtilityBannerlines
|
|
142258
142481
|
};
|
|
142259
|
-
//# sourceMappingURL=chunk-
|
|
142482
|
+
//# sourceMappingURL=chunk-DV2H7WDY.js.map
|