@shopify/cli 3.64.0 → 3.65.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/cli-ruby/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +1 -1
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +2 -3
- package/dist/assets/hydrogen/starter/.graphqlrc.ts +27 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +16 -7
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +3 -3
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Search.tsx +0 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +1 -1
- package/dist/assets/hydrogen/starter/package.json +6 -6
- package/dist/{chunk-WIG6CPGR.js → chunk-2VMOCSNT.js} +39 -11
- package/dist/{chunk-6LPAIJ4Y.js → chunk-4JHXAPVK.js} +2 -2
- package/dist/{chunk-UTXBNNRZ.js → chunk-4MMUX74C.js} +4 -4
- package/dist/{chunk-W26344X5.js → chunk-5ASKHNQG.js} +2 -2
- package/dist/{chunk-VPPZXHAK.js → chunk-5E7BOMYA.js} +2 -2
- package/dist/{chunk-CLBFKLWA.js → chunk-6727OHPN.js} +4 -4
- package/dist/{chunk-PWYMBX34.js → chunk-AEPMFZLL.js} +7 -7
- package/dist/{chunk-5A6QTLMF.js → chunk-AGEDJDVG.js} +5 -5
- package/dist/{chunk-H66NIXGL.js → chunk-CAFAFMYK.js} +10 -6
- package/dist/{chunk-LP2H26NY.js → chunk-CAITHPIX.js} +3 -3
- package/dist/{chunk-GUB3OCYR.js → chunk-CYWZMOXQ.js} +4 -4
- package/dist/{chunk-X34BQYQP.js → chunk-EIDHNONS.js} +2 -2
- package/dist/{chunk-LVLKZYIC.js → chunk-GNEXBICT.js} +2 -2
- package/dist/{chunk-T7DHXEC7.js → chunk-HL74OSDI.js} +2 -2
- package/dist/{chunk-I6HNYSMO.js → chunk-HVRGX6N6.js} +4 -4
- package/dist/{chunk-YLPSXWEZ.js → chunk-KGLWCSFT.js} +2 -2
- package/dist/{chunk-7GYETEC3.js → chunk-KX6NLKOX.js} +3 -3
- package/dist/{chunk-6TPBPH6V.js → chunk-KYAUWGQO.js} +14 -10
- package/dist/{chunk-TSZPIP7J.js → chunk-M6KGRVDD.js} +3 -3
- package/dist/{chunk-PIJQNKK6.js → chunk-MJT3HLPT.js} +5 -5
- package/dist/{chunk-2TZRSXDZ.js → chunk-MO56ATXB.js} +2 -2
- package/dist/{chunk-G4TC4KHZ.js → chunk-O5CFSRZQ.js} +3 -3
- package/dist/{chunk-L5WUZYLP.js → chunk-O6H7FQHP.js} +5 -5
- package/dist/{chunk-GEAZ65AU.js → chunk-OGVVZ2S7.js} +147 -207
- package/dist/{chunk-B7RN7IRD.js → chunk-QNY4RVJ6.js} +6 -1
- package/dist/{chunk-KDK32T2A.js → chunk-QY432MUX.js} +5 -5
- package/dist/{chunk-LHP5F5LY.js → chunk-SQBVLHAC.js} +4 -4
- package/dist/{chunk-QI5O2CU6.js → chunk-SXEJ7K5S.js} +5 -5
- package/dist/{chunk-NO7MYZEO.js → chunk-UMWKJFTM.js} +2 -2
- package/dist/{chunk-RX7VCI62.js → chunk-UOQXKH3J.js} +4 -4
- package/dist/{chunk-C2AKAEMR.js → chunk-VJLIWDQA.js} +7 -7
- package/dist/{chunk-LQX3GDBO.js → chunk-VZO77ESC.js} +2 -2
- package/dist/{chunk-QCK4QLB3.js → chunk-WEDQJLHL.js} +4 -4
- package/dist/{chunk-BKBHZTOE.js → chunk-X3GS3FMA.js} +3 -3
- package/dist/{chunk-TCQUNDAY.js → chunk-XPX5D55U.js} +3 -3
- package/dist/{chunk-JSLLI5MY.js → chunk-ZRXUHYJO.js} +3 -3
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/demo/catalog.js +12 -12
- package/dist/cli/commands/demo/generate-file.js +12 -12
- package/dist/cli/commands/demo/index.js +12 -12
- package/dist/cli/commands/demo/print-ai-prompt.js +12 -12
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/search.js +4 -4
- package/dist/cli/services/commands/search.test.js +4 -4
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +7 -7
- package/dist/cli/services/demo.js +4 -4
- package/dist/cli/services/demo.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +4 -4
- package/dist/cli/services/kitchen-sink/prompts.js +4 -4
- package/dist/cli/services/kitchen-sink/static.js +4 -4
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +7 -7
- package/dist/{constants-EVER32LA.js → constants-Y4XF72NG.js} +3 -3
- package/dist/{custom-oclif-loader-F5UKFNJS.js → custom-oclif-loader-PNWG2W6I.js} +4 -4
- package/dist/{error-handler-GCSQB44R.js → error-handler-Z5RKZIZJ.js} +10 -10
- package/dist/hooks/postrun.js +8 -8
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +5075 -3023
- package/dist/{local-VDSO2Y52.js → local-DQQ4M6FZ.js} +4 -4
- package/dist/{morph-DQWX4LPS.js → morph-DN4AZJZW.js} +9 -9
- package/dist/{node-3B62KLPY.js → node-VYVGZGMI.js} +15 -15
- package/dist/{node-package-manager-QLAS6UPG.js → node-package-manager-GWVEMST6.js} +5 -5
- package/dist/{path-KUSF6CYC.js → path-ZCRJKM4K.js} +4 -2
- package/dist/{system-CPU6ZDBW.js → system-ACW6VUAL.js} +4 -4
- package/dist/templates/ui-extensions/projects/web_pixel_extension/package.json.liquid +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-Y4GW3DUK.js → ui-R5XNTORG.js} +4 -4
- package/dist/{workerd-LSXMDY5M.js → workerd-DIO7G5QX.js} +14 -14
- package/oclif.manifest.json +150 -13
- package/package.json +7 -7
- package/dist/assets/hydrogen/starter/.graphqlrc.yml +0 -12
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
handleDeprecations,
|
|
8
8
|
logout,
|
|
9
9
|
normalizeStoreFqdn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2VMOCSNT.js";
|
|
11
11
|
import {
|
|
12
12
|
base_command_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AGEDJDVG.js";
|
|
14
14
|
import {
|
|
15
15
|
fanoutHooks
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VJLIWDQA.js";
|
|
17
17
|
import {
|
|
18
18
|
findUpAndReadPackageJson,
|
|
19
19
|
getPackageManager,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
packageManagerFromUserAgent,
|
|
22
22
|
readAndParsePackageJson,
|
|
23
23
|
writePackageJSON
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WEDQJLHL.js";
|
|
25
25
|
import {
|
|
26
26
|
AbortError,
|
|
27
27
|
BugError,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
runWithTimer,
|
|
60
60
|
source_default,
|
|
61
61
|
writeFile
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-KYAUWGQO.js";
|
|
63
63
|
import {
|
|
64
64
|
require_lib
|
|
65
65
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
relativePath,
|
|
79
79
|
relativizePath,
|
|
80
80
|
resolvePath
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
82
82
|
import {
|
|
83
83
|
__commonJS,
|
|
84
84
|
__require,
|
|
@@ -155554,21 +155554,21 @@ var require_main = __commonJS({
|
|
|
155554
155554
|
}
|
|
155555
155555
|
});
|
|
155556
155556
|
|
|
155557
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155557
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
155558
155558
|
init_cjs_shims();
|
|
155559
155559
|
var import_core = __toESM(require_lib(), 1);
|
|
155560
155560
|
|
|
155561
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155561
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
155562
155562
|
init_cjs_shims();
|
|
155563
155563
|
|
|
155564
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155564
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
155565
155565
|
init_cjs_shims();
|
|
155566
155566
|
|
|
155567
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155567
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
155568
155568
|
init_cjs_shims();
|
|
155569
155569
|
import { fileURLToPath } from "node:url";
|
|
155570
155570
|
|
|
155571
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155571
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/process.js
|
|
155572
155572
|
init_cjs_shims();
|
|
155573
155573
|
import { exec } from "node:child_process";
|
|
155574
155574
|
import { promisify } from "node:util";
|
|
@@ -155585,7 +155585,7 @@ function supressNodeExperimentalWarnings() {
|
|
|
155585
155585
|
}
|
|
155586
155586
|
}
|
|
155587
155587
|
|
|
155588
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155588
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/build.js
|
|
155589
155589
|
var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname;
|
|
155590
155590
|
var isHydrogenMonorepo = monorepoPackagesPath.endsWith(
|
|
155591
155591
|
"/hydrogen/packages/"
|
|
@@ -155647,7 +155647,7 @@ async function getRepoNodeModules() {
|
|
|
155647
155647
|
return nodeModulesPath;
|
|
155648
155648
|
}
|
|
155649
155649
|
|
|
155650
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155650
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/assets.js
|
|
155651
155651
|
var SETUP_CSS_STRATEGIES = [
|
|
155652
155652
|
"tailwind",
|
|
155653
155653
|
"vanilla-extract",
|
|
@@ -155691,14 +155691,14 @@ async function canWriteFiles(assetMap, directory, force) {
|
|
|
155691
155691
|
return true;
|
|
155692
155692
|
}
|
|
155693
155693
|
|
|
155694
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155694
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
155695
155695
|
init_cjs_shims();
|
|
155696
155696
|
|
|
155697
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155697
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
155698
155698
|
init_cjs_shims();
|
|
155699
155699
|
import { readdir } from "node:fs/promises";
|
|
155700
155700
|
|
|
155701
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155701
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/format-code.js
|
|
155702
155702
|
init_cjs_shims();
|
|
155703
155703
|
var prettier = __toESM(require_prettier(), 1);
|
|
155704
155704
|
var DEFAULT_PRETTIER_CONFIG = {
|
|
@@ -155725,7 +155725,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
|
|
|
155725
155725
|
});
|
|
155726
155726
|
}
|
|
155727
155727
|
|
|
155728
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155728
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/file.js
|
|
155729
155729
|
async function replaceFileContent(filepath, formatConfig, replacer) {
|
|
155730
155730
|
let content = await replacer(await readFile(filepath));
|
|
155731
155731
|
if (typeof content !== "string")
|
|
@@ -155830,10 +155830,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
|
|
|
155830
155830
|
}
|
|
155831
155831
|
}
|
|
155832
155832
|
|
|
155833
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155833
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
155834
155834
|
init_cjs_shims();
|
|
155835
155835
|
|
|
155836
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155836
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/ast.js
|
|
155837
155837
|
init_cjs_shims();
|
|
155838
155838
|
async function importLangAstGrep(lang) {
|
|
155839
155839
|
const astGrep = await import("@ast-grep/napi");
|
|
@@ -155843,7 +155843,7 @@ async function importLangAstGrep(lang) {
|
|
|
155843
155843
|
return astGrep[lang];
|
|
155844
155844
|
}
|
|
155845
155845
|
|
|
155846
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155846
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/replacers.js
|
|
155847
155847
|
async function replaceRootLinks(appDirectory, formatConfig, importer) {
|
|
155848
155848
|
const { filepath, astType } = await findFileWithExtension(appDirectory, "root");
|
|
155849
155849
|
if (!filepath || !astType) {
|
|
@@ -155977,7 +155977,7 @@ var vitePluginListRule = {
|
|
|
155977
155977
|
}
|
|
155978
155978
|
};
|
|
155979
155979
|
|
|
155980
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
155980
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/tailwind.js
|
|
155981
155981
|
var tailwindCssPath = "styles/tailwind.css";
|
|
155982
155982
|
async function setupTailwind({ rootDirectory, appDirectory }, force = false) {
|
|
155983
155983
|
const relativeAppDirectory = relativePath(rootDirectory, appDirectory);
|
|
@@ -156015,7 +156015,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = false) {
|
|
|
156015
156015
|
};
|
|
156016
156016
|
}
|
|
156017
156017
|
|
|
156018
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156018
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/vanilla-extract.js
|
|
156019
156019
|
init_cjs_shims();
|
|
156020
156020
|
async function setupVanillaExtract({
|
|
156021
156021
|
rootDirectory
|
|
@@ -156037,7 +156037,7 @@ async function setupVanillaExtract({
|
|
|
156037
156037
|
};
|
|
156038
156038
|
}
|
|
156039
156039
|
|
|
156040
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156040
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/css/index.js
|
|
156041
156041
|
var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"];
|
|
156042
156042
|
var CSS_STRATEGY_NAME_MAP = {
|
|
156043
156043
|
tailwind: "Tailwind (v4 alpha)",
|
|
@@ -156084,23 +156084,23 @@ async function renderCssPrompt(options) {
|
|
|
156084
156084
|
});
|
|
156085
156085
|
}
|
|
156086
156086
|
|
|
156087
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156087
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
156088
156088
|
init_cjs_shims();
|
|
156089
156089
|
|
|
156090
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156090
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
156091
156091
|
init_cjs_shims();
|
|
156092
156092
|
|
|
156093
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156093
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/index.js
|
|
156094
156094
|
init_cjs_shims();
|
|
156095
156095
|
|
|
156096
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/file.js
|
|
156097
156097
|
init_cjs_shims();
|
|
156098
156098
|
async function transpileFile(code, filepath, keepTypes = true) {
|
|
156099
|
-
const { transpileTs } = await import("./morph-
|
|
156099
|
+
const { transpileTs } = await import("./morph-DN4AZJZW.js");
|
|
156100
156100
|
return transpileTs(code, filepath, keepTypes);
|
|
156101
156101
|
}
|
|
156102
156102
|
|
|
156103
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156103
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/transpile/project.js
|
|
156104
156104
|
init_cjs_shims();
|
|
156105
156105
|
var DEFAULT_JS_CONFIG = {
|
|
156106
156106
|
checkJs: false,
|
|
@@ -156143,7 +156143,9 @@ function convertConfigToJS(tsConfig, keepTypes = false) {
|
|
|
156143
156143
|
async function transpileProject(projectDir, keepTypes = true) {
|
|
156144
156144
|
const entries = await glob("**/*.+(ts|tsx)", {
|
|
156145
156145
|
absolute: true,
|
|
156146
|
-
cwd: projectDir
|
|
156146
|
+
cwd: projectDir,
|
|
156147
|
+
dot: true,
|
|
156148
|
+
ignore: ["**/node_modules/**"]
|
|
156147
156149
|
});
|
|
156148
156150
|
const formatConfig = await getCodeFormatOptions();
|
|
156149
156151
|
for (const entry of entries) {
|
|
@@ -156232,7 +156234,7 @@ async function transpileProject(projectDir, keepTypes = true) {
|
|
|
156232
156234
|
}
|
|
156233
156235
|
}
|
|
156234
156236
|
|
|
156235
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156237
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/replacers.js
|
|
156236
156238
|
async function replaceServerI18n({ rootDirectory, serverEntryPoint = "server" }, formatConfig, localeExtractImpl, isJs) {
|
|
156237
156239
|
const { filepath, astType } = await findEntryFile({
|
|
156238
156240
|
rootDirectory,
|
|
@@ -156477,7 +156479,7 @@ async function findEntryFile({
|
|
|
156477
156479
|
return { filepath, astType };
|
|
156478
156480
|
}
|
|
156479
156481
|
|
|
156480
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156482
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/i18n/index.js
|
|
156481
156483
|
var SETUP_I18N_STRATEGIES = [
|
|
156482
156484
|
"subfolders",
|
|
156483
156485
|
"domains",
|
|
@@ -156515,7 +156517,7 @@ async function renderI18nPrompt(options) {
|
|
|
156515
156517
|
});
|
|
156516
156518
|
}
|
|
156517
156519
|
|
|
156518
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156520
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/flags.js
|
|
156519
156521
|
var DEFAULT_APP_PORT = 3e3;
|
|
156520
156522
|
var DEFAULT_INSPECTOR_PORT = 9229;
|
|
156521
156523
|
var commonFlags = {
|
|
@@ -156728,13 +156730,16 @@ function overrideFlag(flags, extra) {
|
|
|
156728
156730
|
);
|
|
156729
156731
|
}
|
|
156730
156732
|
|
|
156731
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156733
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/import-utils.js
|
|
156732
156734
|
init_cjs_shims();
|
|
156733
156735
|
import { createRequire } from "node:module";
|
|
156734
156736
|
import { pathToFileURL } from "node:url";
|
|
156735
156737
|
var require2 = createRequire(import.meta.url);
|
|
156736
156738
|
async function importVite(root) {
|
|
156737
|
-
const vitePath = require2.resolve(
|
|
156739
|
+
const vitePath = require2.resolve(
|
|
156740
|
+
"vite",
|
|
156741
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
|
|
156742
|
+
);
|
|
156738
156743
|
const vitePackageJson = await findUpAndReadPackageJson(vitePath);
|
|
156739
156744
|
const viteNodeIndexFile = vitePackageJson.content.exports?.["."].import.default;
|
|
156740
156745
|
const viteNodePath = joinPath(
|
|
@@ -156744,17 +156749,20 @@ async function importVite(root) {
|
|
|
156744
156749
|
return import(pathToFileURL(viteNodePath).href);
|
|
156745
156750
|
}
|
|
156746
156751
|
function importLocal(packageName, path3) {
|
|
156747
|
-
const realPath = require2.resolve(
|
|
156752
|
+
const realPath = require2.resolve(
|
|
156753
|
+
packageName,
|
|
156754
|
+
process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
|
|
156755
|
+
);
|
|
156748
156756
|
return import(pathToFileURL(realPath).href);
|
|
156749
156757
|
}
|
|
156750
156758
|
|
|
156751
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156759
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156752
156760
|
init_cjs_shims();
|
|
156753
156761
|
import path from "node:path";
|
|
156754
156762
|
import { EventEmitter } from "node:events";
|
|
156755
156763
|
import { ReadableStream } from "node:stream/web";
|
|
156756
156764
|
|
|
156757
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156765
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphiql-url.js
|
|
156758
156766
|
init_cjs_shims();
|
|
156759
156767
|
function getGraphiQLUrl({
|
|
156760
156768
|
host = "",
|
|
@@ -156773,7 +156781,7 @@ function getGraphiQLUrl({
|
|
|
156773
156781
|
return url;
|
|
156774
156782
|
}
|
|
156775
156783
|
|
|
156776
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156784
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/request-events.js
|
|
156777
156785
|
var import_source_map_support = __toESM(require_source_map_support(), 1);
|
|
156778
156786
|
var H2O_BINDING_NAME = "H2O_LOG_EVENT";
|
|
156779
156787
|
var ResponseConstructor;
|
|
@@ -156911,7 +156919,7 @@ function handleDebugNetworkRequest(request) {
|
|
|
156911
156919
|
return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
|
|
156912
156920
|
}
|
|
156913
156921
|
|
|
156914
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156922
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/common.js
|
|
156915
156923
|
init_cjs_shims();
|
|
156916
156924
|
var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
|
|
156917
156925
|
function handleMiniOxygenImportFail() {
|
|
@@ -156952,21 +156960,21 @@ function logRequestLine({
|
|
|
156952
156960
|
}
|
|
156953
156961
|
}
|
|
156954
156962
|
|
|
156955
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156963
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
156956
156964
|
init_cjs_shims();
|
|
156957
156965
|
|
|
156958
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156966
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
156959
156967
|
init_cjs_shims();
|
|
156960
156968
|
var import_core3 = __toESM(require_lib(), 1);
|
|
156961
156969
|
|
|
156962
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156970
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
156963
156971
|
init_cjs_shims();
|
|
156964
156972
|
var import_core2 = __toESM(require_lib(), 1);
|
|
156965
156973
|
|
|
156966
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156974
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
156967
156975
|
init_cjs_shims();
|
|
156968
156976
|
|
|
156969
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
156977
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/client.js
|
|
156970
156978
|
init_cjs_shims();
|
|
156971
156979
|
async function adminRequest(query, session, variables) {
|
|
156972
156980
|
const api = "Admin";
|
|
@@ -157009,7 +157017,7 @@ async function adminRequest(query, session, variables) {
|
|
|
157009
157017
|
}
|
|
157010
157018
|
}
|
|
157011
157019
|
|
|
157012
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157020
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/gid.js
|
|
157013
157021
|
init_cjs_shims();
|
|
157014
157022
|
var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
|
|
157015
157023
|
function parseGid(gid) {
|
|
@@ -157020,7 +157028,7 @@ function parseGid(gid) {
|
|
|
157020
157028
|
throw new AbortError(`Invalid Global ID: ${gid}`);
|
|
157021
157029
|
}
|
|
157022
157030
|
|
|
157023
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157031
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/link-storefront.js
|
|
157024
157032
|
var LinkStorefrontQuery = `#graphql
|
|
157025
157033
|
query LinkStorefront {
|
|
157026
157034
|
hydrogenStorefronts {
|
|
@@ -157041,7 +157049,7 @@ async function getStorefronts(adminSession) {
|
|
|
157041
157049
|
}));
|
|
157042
157050
|
}
|
|
157043
157051
|
|
|
157044
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157052
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shopify-config.js
|
|
157045
157053
|
init_cjs_shims();
|
|
157046
157054
|
var SHOPIFY_DIR = ".shopify";
|
|
157047
157055
|
var SHOPIFY_DIR_PROJECT = "project.json";
|
|
@@ -157147,7 +157155,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
|
|
|
157147
157155
|
}
|
|
157148
157156
|
}
|
|
157149
157157
|
|
|
157150
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157158
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/create-storefront.js
|
|
157151
157159
|
init_cjs_shims();
|
|
157152
157160
|
var CreateStorefrontMutation = `#graphql
|
|
157153
157161
|
mutation CreateStorefront($title: String!) {
|
|
@@ -157181,7 +157189,7 @@ async function createStorefront(adminSession, title) {
|
|
|
157181
157189
|
return { jobId, storefront: hydrogenStorefront };
|
|
157182
157190
|
}
|
|
157183
157191
|
|
|
157184
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157192
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/fetch-job.js
|
|
157185
157193
|
init_cjs_shims();
|
|
157186
157194
|
var FetchJobQuery = `#graphql
|
|
157187
157195
|
query FetchJob($id: ID!) {
|
|
@@ -157219,7 +157227,7 @@ function waitForJob(adminSession, jobId) {
|
|
|
157219
157227
|
});
|
|
157220
157228
|
}
|
|
157221
157229
|
|
|
157222
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157230
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/string.js
|
|
157223
157231
|
init_cjs_shims();
|
|
157224
157232
|
function titleize(name = "") {
|
|
157225
157233
|
return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
|
|
@@ -157227,7 +157235,7 @@ function titleize(name = "") {
|
|
|
157227
157235
|
).join(" ");
|
|
157228
157236
|
}
|
|
157229
157237
|
|
|
157230
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157238
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/shell.js
|
|
157231
157239
|
init_cjs_shims();
|
|
157232
157240
|
import os from "node:os";
|
|
157233
157241
|
var ALIAS_NAME = "h2";
|
|
@@ -157391,10 +157399,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
|
|
|
157391
157399
|
return `${cli} shopify hydrogen`;
|
|
157392
157400
|
}
|
|
157393
157401
|
|
|
157394
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157402
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157395
157403
|
init_cjs_shims();
|
|
157396
157404
|
|
|
157397
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157405
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
157398
157406
|
init_cjs_shims();
|
|
157399
157407
|
|
|
157400
157408
|
// ../cli-kit/dist/public/node/api/business-platform.js
|
|
@@ -157424,8 +157432,21 @@ async function businessPlatformRequestDoc(query, token, variables) {
|
|
|
157424
157432
|
variables
|
|
157425
157433
|
});
|
|
157426
157434
|
}
|
|
157435
|
+
async function businessPlatformOrganizationsRequest(query, token, organizationId, variables) {
|
|
157436
|
+
const api = "BusinessPlatform";
|
|
157437
|
+
const fqdn = await businessPlatformFqdn();
|
|
157438
|
+
const url = `https://${fqdn}/organizations/api/unstable/organization/${organizationId}/graphql`;
|
|
157439
|
+
return graphqlRequestDoc({
|
|
157440
|
+
query,
|
|
157441
|
+
api,
|
|
157442
|
+
url,
|
|
157443
|
+
token,
|
|
157444
|
+
variables,
|
|
157445
|
+
responseOptions: { onResponse: handleDeprecations }
|
|
157446
|
+
});
|
|
157447
|
+
}
|
|
157427
157448
|
|
|
157428
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157449
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/business-platform/user-account.js
|
|
157429
157450
|
var CurrentUserAccountQuery = `#graphql
|
|
157430
157451
|
query currentUserAccount {
|
|
157431
157452
|
currentUserAccount {
|
|
@@ -157505,7 +157526,7 @@ async function getUserAccount(token) {
|
|
|
157505
157526
|
};
|
|
157506
157527
|
}
|
|
157507
157528
|
|
|
157508
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157529
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/log.js
|
|
157509
157530
|
init_cjs_shims();
|
|
157510
157531
|
var originalConsole = { ...console };
|
|
157511
157532
|
var methodsReplaced = /* @__PURE__ */ new Set();
|
|
@@ -157690,61 +157711,30 @@ function muteDevLogs({ workerReload } = {}) {
|
|
|
157690
157711
|
return processStderrWrite.apply(process.stderr, args);
|
|
157691
157712
|
};
|
|
157692
157713
|
}
|
|
157693
|
-
|
|
157694
|
-
|
|
157695
|
-
onPressKey,
|
|
157696
|
-
onKeyTimeout
|
|
157697
|
-
}) {
|
|
157698
|
-
if (process.stdout.write === originalWrite) {
|
|
157699
|
-
const write = originalWrite.bind(process.stdout);
|
|
157700
|
-
process.stdout.write = (item, cb) => {
|
|
157701
|
-
if (typeof item !== "string")
|
|
157702
|
-
return write(item, cb);
|
|
157703
|
-
const replacers = messageReplacers.reduce((acc, [matcher, replacer]) => {
|
|
157704
|
-
if (matcher([item], acc.length))
|
|
157705
|
-
acc.push(replacer);
|
|
157706
|
-
return acc;
|
|
157707
|
-
}, []);
|
|
157708
|
-
if (replacers.length === 0)
|
|
157709
|
-
return write(item, cb);
|
|
157710
|
-
const result = replacers.reduce(
|
|
157711
|
-
(resultArgs, replacer) => resultArgs && replacer(resultArgs),
|
|
157712
|
-
[item]
|
|
157713
|
-
);
|
|
157714
|
-
if (result)
|
|
157715
|
-
return write(result[0], cb);
|
|
157716
|
-
};
|
|
157717
|
-
}
|
|
157714
|
+
function enhanceAuthLogs(hideInitialLog = false) {
|
|
157715
|
+
injectLogReplacer("log", warningDebouncer);
|
|
157718
157716
|
addMessageReplacers(
|
|
157719
157717
|
"auth",
|
|
157720
157718
|
[
|
|
157721
|
-
([first2]) => typeof first2 === "string" && first2.includes("
|
|
157719
|
+
([first2]) => hideInitialLog && typeof first2 === "string" && first2.includes("To run this command,"),
|
|
157722
157720
|
([first2]) => {
|
|
157723
|
-
|
|
157724
|
-
const link = content.match(/(https?:\/\/.*)Log in/)?.[1];
|
|
157725
|
-
onKeyTimeout(link);
|
|
157726
|
-
if (link)
|
|
157727
|
-
return;
|
|
157728
|
-
return [content];
|
|
157721
|
+
return;
|
|
157729
157722
|
}
|
|
157730
157723
|
],
|
|
157731
157724
|
[
|
|
157732
|
-
([first2]) => typeof first2 === "string" && first2.includes("
|
|
157733
|
-
() => {
|
|
157734
|
-
|
|
157735
|
-
return;
|
|
157725
|
+
([first2]) => typeof first2 === "string" && first2.includes("Open this link to start the auth process"),
|
|
157726
|
+
([first2]) => {
|
|
157727
|
+
return [first2.replace("\u{1F449} ", "").replace(": ", ":\n")];
|
|
157736
157728
|
}
|
|
157737
157729
|
],
|
|
157738
157730
|
[
|
|
157739
|
-
([first2]) => typeof first2 === "string" &&
|
|
157731
|
+
([first2]) => typeof first2 === "string" && first2.includes("Logged in."),
|
|
157740
157732
|
() => {
|
|
157733
|
+
process.stdout.write(ansi_escapes_default.eraseLines(hideInitialLog ? 4 : 5));
|
|
157741
157734
|
return;
|
|
157742
157735
|
}
|
|
157743
157736
|
]
|
|
157744
157737
|
);
|
|
157745
|
-
return () => {
|
|
157746
|
-
process.stdout.write = originalWrite;
|
|
157747
|
-
};
|
|
157748
157738
|
}
|
|
157749
157739
|
function enhanceH2Logs(options) {
|
|
157750
157740
|
injectLogReplacer("error");
|
|
@@ -157885,31 +157875,13 @@ function isH2Verbose() {
|
|
|
157885
157875
|
return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
|
|
157886
157876
|
}
|
|
157887
157877
|
|
|
157888
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157889
|
-
init_cjs_shims();
|
|
157890
|
-
function deferPromise() {
|
|
157891
|
-
const deferred2 = { state: "pending" };
|
|
157892
|
-
deferred2.promise = new Promise((resolve, reject) => {
|
|
157893
|
-
deferred2.resolve = (value) => {
|
|
157894
|
-
if (deferred2.state === "pending")
|
|
157895
|
-
deferred2.state = "resolved";
|
|
157896
|
-
return resolve(value);
|
|
157897
|
-
};
|
|
157898
|
-
deferred2.reject = (reason) => {
|
|
157899
|
-
if (deferred2.state === "pending")
|
|
157900
|
-
deferred2.state = "rejected";
|
|
157901
|
-
return reject(reason);
|
|
157902
|
-
};
|
|
157903
|
-
});
|
|
157904
|
-
return deferred2;
|
|
157905
|
-
}
|
|
157906
|
-
|
|
157907
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@0.0.0-next-18e76ba-20240708092928_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157878
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/auth.js
|
|
157908
157879
|
async function logout2(root) {
|
|
157909
157880
|
await logout();
|
|
157910
157881
|
await resetConfig(root);
|
|
157911
157882
|
}
|
|
157912
157883
|
async function login(root, shop) {
|
|
157884
|
+
enhanceAuthLogs(false);
|
|
157913
157885
|
const forcePrompt = shop === true;
|
|
157914
157886
|
const existingConfig = root ? await getConfig(root) : {};
|
|
157915
157887
|
let { email, shopName } = existingConfig;
|
|
@@ -157918,7 +157890,6 @@ async function login(root, shop) {
|
|
|
157918
157890
|
}
|
|
157919
157891
|
if (shop)
|
|
157920
157892
|
shop = await normalizeStoreFqdn(shop);
|
|
157921
|
-
const hideLoginInfo = showLoginInfo();
|
|
157922
157893
|
if (!shop || !shopName || !email || forcePrompt || shop !== existingConfig.shop) {
|
|
157923
157894
|
const token = await ensureAuthenticatedBusinessPlatform().catch(() => {
|
|
157924
157895
|
throw new AbortError(
|
|
@@ -157926,7 +157897,6 @@ async function login(root, shop) {
|
|
|
157926
157897
|
);
|
|
157927
157898
|
});
|
|
157928
157899
|
const userAccount = await getUserAccount(token);
|
|
157929
|
-
await hideLoginInfo();
|
|
157930
157900
|
const preselected = !forcePrompt && shop && userAccount.activeShops.find(({ fqdn }) => shop === fqdn);
|
|
157931
157901
|
const selected = preselected || await renderSelectPrompt({
|
|
157932
157902
|
message: "Select a shop to log in to",
|
|
@@ -157944,64 +157914,9 @@ async function login(root, shop) {
|
|
|
157944
157914
|
`Ensure the shop that you specified is correct (you are trying to use: ${shop})`
|
|
157945
157915
|
]);
|
|
157946
157916
|
});
|
|
157947
|
-
await hideLoginInfo();
|
|
157948
157917
|
const config = root ? await setUserAccount(root, { shop, shopName, email }) : { shop, shopName, email };
|
|
157949
157918
|
return { session, config };
|
|
157950
157919
|
}
|
|
157951
|
-
function showLoginInfo() {
|
|
157952
|
-
const deferred2 = deferPromise();
|
|
157953
|
-
console.log("");
|
|
157954
|
-
let hasLoggedTimeout = false;
|
|
157955
|
-
let hasLoggedPressKey = false;
|
|
157956
|
-
const restoreLogs = muteAuthLogs({
|
|
157957
|
-
onKeyTimeout: (link) => {
|
|
157958
|
-
if (link) {
|
|
157959
|
-
hasLoggedTimeout = true;
|
|
157960
|
-
process.stdout.write(ansi_escapes_default.eraseLines(9));
|
|
157961
|
-
try {
|
|
157962
|
-
const secureLink = link.replace("http://", "https://");
|
|
157963
|
-
const url = new URL(secureLink);
|
|
157964
|
-
const label = url.origin + "/..." + url.search.slice(-14);
|
|
157965
|
-
renderInfo({
|
|
157966
|
-
headline: "Log in to Shopify",
|
|
157967
|
-
body: outputContent`Timed out. Click to open your browser:\n${outputToken.link(
|
|
157968
|
-
source_default.white(label),
|
|
157969
|
-
secureLink
|
|
157970
|
-
)}`.value
|
|
157971
|
-
});
|
|
157972
|
-
} catch {
|
|
157973
|
-
}
|
|
157974
|
-
}
|
|
157975
|
-
},
|
|
157976
|
-
onPressKey: () => {
|
|
157977
|
-
hasLoggedPressKey = true;
|
|
157978
|
-
renderInfo({
|
|
157979
|
-
headline: "Log in to Shopify",
|
|
157980
|
-
body: "Press any key to login with your default browser"
|
|
157981
|
-
});
|
|
157982
|
-
process.stdin.once("data", () => {
|
|
157983
|
-
renderTasks([
|
|
157984
|
-
{
|
|
157985
|
-
title: "Waiting for Shopify authentication",
|
|
157986
|
-
task: async () => {
|
|
157987
|
-
await deferred2.promise;
|
|
157988
|
-
}
|
|
157989
|
-
}
|
|
157990
|
-
]);
|
|
157991
|
-
});
|
|
157992
|
-
}
|
|
157993
|
-
});
|
|
157994
|
-
deferred2.promise.then(() => {
|
|
157995
|
-
restoreLogs();
|
|
157996
|
-
if (hasLoggedPressKey) {
|
|
157997
|
-
process.stdout.write(ansi_escapes_default.eraseLines(hasLoggedTimeout ? 11 : 10));
|
|
157998
|
-
}
|
|
157999
|
-
});
|
|
158000
|
-
return async () => {
|
|
158001
|
-
deferred2.resolve();
|
|
158002
|
-
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
158003
|
-
};
|
|
158004
|
-
}
|
|
158005
157920
|
function renderLoginSuccess(config) {
|
|
158006
157921
|
renderSuccess({
|
|
158007
157922
|
headline: "Shopify authentication complete",
|
|
@@ -158013,9 +157928,9 @@ function renderLoginSuccess(config) {
|
|
|
158013
157928
|
});
|
|
158014
157929
|
}
|
|
158015
157930
|
|
|
158016
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
157931
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
158017
157932
|
init_cjs_shims();
|
|
158018
|
-
import { readdir as readdir4 } from "node:fs/promises";
|
|
157933
|
+
import { symlink, readdir as readdir4 } from "node:fs/promises";
|
|
158019
157934
|
|
|
158020
157935
|
// ../cli-kit/dist/public/node/git.js
|
|
158021
157936
|
init_cjs_shims();
|
|
@@ -162030,11 +161945,11 @@ async function isClean(directory) {
|
|
|
162030
161945
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
162031
161946
|
}
|
|
162032
161947
|
|
|
162033
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161948
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
162034
161949
|
init_cjs_shims();
|
|
162035
161950
|
import { readdir as readdir3 } from "node:fs/promises";
|
|
162036
161951
|
|
|
162037
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161952
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-interop.js
|
|
162038
161953
|
init_cjs_shims();
|
|
162039
161954
|
import { createRequire as createRequire2 } from "module";
|
|
162040
161955
|
function convertRouteToV1(route) {
|
|
@@ -162050,13 +161965,13 @@ function isV1RouteConventionInstalled() {
|
|
|
162050
161965
|
}
|
|
162051
161966
|
}
|
|
162052
161967
|
|
|
162053
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161968
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
162054
161969
|
init_cjs_shims();
|
|
162055
161970
|
import { createRequire as createRequire4 } from "node:module";
|
|
162056
161971
|
import path2 from "node:path";
|
|
162057
161972
|
import { readdir as readdir2 } from "node:fs/promises";
|
|
162058
161973
|
|
|
162059
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
161974
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-version-check.js
|
|
162060
161975
|
init_cjs_shims();
|
|
162061
161976
|
import { createRequire as createRequire3 } from "node:module";
|
|
162062
161977
|
var REQUIRED_REMIX_VERSION = "^2.1.0";
|
|
@@ -162105,7 +162020,7 @@ function getRemixPackageVersion(require22, name, root) {
|
|
|
162105
162020
|
return result;
|
|
162106
162021
|
}
|
|
162107
162022
|
|
|
162108
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162023
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/vite-config.js
|
|
162109
162024
|
init_cjs_shims();
|
|
162110
162025
|
async function hasViteConfig(root) {
|
|
162111
162026
|
const result = await findFileWithExtension(root, "vite.config");
|
|
@@ -162178,7 +162093,7 @@ function findOxygenPlugin(config) {
|
|
|
162178
162093
|
return findPlugin(config, "oxygen:main");
|
|
162179
162094
|
}
|
|
162180
162095
|
|
|
162181
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162096
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/remix-config.js
|
|
162182
162097
|
async function hasRemixConfigFile(root) {
|
|
162183
162098
|
const result = await findFileWithExtension(root, "remix.config");
|
|
162184
162099
|
return !!result.filepath;
|
|
@@ -162330,7 +162245,7 @@ async function assertEntryFileExists(root, fileRelative) {
|
|
|
162330
162245
|
}
|
|
162331
162246
|
}
|
|
162332
162247
|
|
|
162333
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162248
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/setups/routes/generate.js
|
|
162334
162249
|
var NO_LOCALE_PATTERNS = [/robots\.txt/];
|
|
162335
162250
|
var ROUTE_MAP = {
|
|
162336
162251
|
home: ["_index", "$"],
|
|
@@ -162435,19 +162350,12 @@ async function generateProjectFile(routeFrom, {
|
|
|
162435
162350
|
formatOptions,
|
|
162436
162351
|
localePrefix,
|
|
162437
162352
|
v1RouteConvention = false,
|
|
162438
|
-
signal
|
|
162353
|
+
signal,
|
|
162354
|
+
overwriteFileDeps = true
|
|
162439
162355
|
}) {
|
|
162440
162356
|
templatesRoot ??= await getStarterDir();
|
|
162441
162357
|
const extension = (routeFrom.match(/(\.[jt]sx?)$/) ?? [])[1] ?? ".tsx";
|
|
162442
162358
|
routeFrom = routeFrom.replace(extension, "");
|
|
162443
|
-
const routeTemplatePath = await getTemplateAppFile(
|
|
162444
|
-
routeFrom + extension,
|
|
162445
|
-
templatesRoot
|
|
162446
|
-
);
|
|
162447
|
-
const allFilesToGenerate = await findRouteDependencies(
|
|
162448
|
-
routeTemplatePath,
|
|
162449
|
-
await getTemplateAppFile("", templatesRoot)
|
|
162450
|
-
);
|
|
162451
162359
|
const routeDestinationPath = joinPath(
|
|
162452
162360
|
appDirectory,
|
|
162453
162361
|
getDestinationRoute(routeFrom, localePrefix, { v1RouteConvention }) + (typescript ? extension : extension.replace(".ts", ".js"))
|
|
@@ -162469,12 +162377,23 @@ async function generateProjectFile(routeFrom, {
|
|
|
162469
162377
|
return { ...result, operation: "skipped" };
|
|
162470
162378
|
result.operation = "replaced";
|
|
162471
162379
|
}
|
|
162380
|
+
const routeTemplatePath = await getTemplateAppFile(
|
|
162381
|
+
routeFrom + extension,
|
|
162382
|
+
templatesRoot
|
|
162383
|
+
);
|
|
162384
|
+
const allFilesToGenerate = await findRouteDependencies(
|
|
162385
|
+
routeTemplatePath,
|
|
162386
|
+
await getTemplateAppFile("", templatesRoot)
|
|
162387
|
+
);
|
|
162472
162388
|
for (const filePath of allFilesToGenerate) {
|
|
162473
162389
|
const isRoute = filePath.startsWith(ASSETS_STARTER_DIR_ROUTES + "/");
|
|
162474
162390
|
const destinationPath = isRoute ? routeDestinationPath : joinPath(
|
|
162475
162391
|
appDirectory,
|
|
162476
162392
|
filePath.replace(/\.ts(x?)$/, `.${typescript ? "ts$1" : "js$1"}`)
|
|
162477
162393
|
);
|
|
162394
|
+
if (!overwriteFileDeps && await fileExists(destinationPath)) {
|
|
162395
|
+
continue;
|
|
162396
|
+
}
|
|
162478
162397
|
if (!await fileExists(dirname(destinationPath))) {
|
|
162479
162398
|
await mkdir(dirname(destinationPath));
|
|
162480
162399
|
}
|
|
@@ -162591,7 +162510,7 @@ async function copyRouteTemplate({
|
|
|
162591
162510
|
await writeFile(routePath, templateContent);
|
|
162592
162511
|
}
|
|
162593
162512
|
|
|
162594
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
162513
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/common.js
|
|
162595
162514
|
var LANGUAGES = {
|
|
162596
162515
|
js: "JavaScript",
|
|
162597
162516
|
ts: "TypeScript"
|
|
@@ -162620,7 +162539,7 @@ async function handleRouteGeneration(controller, flagRoutes) {
|
|
|
162620
162539
|
const needsRouteGeneration = routesToScaffold === "all" || routesToScaffold.length > 0;
|
|
162621
162540
|
return {
|
|
162622
162541
|
needsRouteGeneration,
|
|
162623
|
-
setupRoutes: async (directory, language,
|
|
162542
|
+
setupRoutes: async (directory, language, options) => {
|
|
162624
162543
|
if (needsRouteGeneration) {
|
|
162625
162544
|
const result = await generateRoutes(
|
|
162626
162545
|
{
|
|
@@ -162628,8 +162547,9 @@ async function handleRouteGeneration(controller, flagRoutes) {
|
|
|
162628
162547
|
directory,
|
|
162629
162548
|
force: true,
|
|
162630
162549
|
typescript: language === "ts",
|
|
162631
|
-
localePrefix: i18nStrategy === "subfolders" ? "locale" : false,
|
|
162632
|
-
signal: controller.signal
|
|
162550
|
+
localePrefix: options?.i18nStrategy === "subfolders" ? "locale" : false,
|
|
162551
|
+
signal: controller.signal,
|
|
162552
|
+
...options
|
|
162633
162553
|
},
|
|
162634
162554
|
{
|
|
162635
162555
|
rootDirectory: directory,
|
|
@@ -162683,6 +162603,7 @@ async function handleCliShortcut(controller, cliCommand, flagShortcut) {
|
|
|
162683
162603
|
};
|
|
162684
162604
|
}
|
|
162685
162605
|
async function handleStorefrontLink(controller) {
|
|
162606
|
+
enhanceAuthLogs(true);
|
|
162686
162607
|
const { session, config } = await login();
|
|
162687
162608
|
renderLoginSuccess(config);
|
|
162688
162609
|
const storefronts = await getStorefronts(session);
|
|
@@ -162857,6 +162778,20 @@ async function handleDependencies(projectDir, controller, packageManagerFromFlag
|
|
|
162857
162778
|
});
|
|
162858
162779
|
}
|
|
162859
162780
|
}
|
|
162781
|
+
if (isHydrogenMonorepo) {
|
|
162782
|
+
await copyFile(
|
|
162783
|
+
joinPath(getSkeletonSourceDir(), ".npmrc"),
|
|
162784
|
+
joinPath(projectDir, ".npmrc")
|
|
162785
|
+
).catch(() => {
|
|
162786
|
+
});
|
|
162787
|
+
if (!shouldInstallDeps) {
|
|
162788
|
+
await symlink(
|
|
162789
|
+
await getRepoNodeModules(),
|
|
162790
|
+
joinPath(projectDir, "node_modules")
|
|
162791
|
+
).catch(() => {
|
|
162792
|
+
});
|
|
162793
|
+
}
|
|
162794
|
+
}
|
|
162860
162795
|
return {
|
|
162861
162796
|
packageManager: actualPackageManager,
|
|
162862
162797
|
shouldInstallDeps,
|
|
@@ -163021,6 +162956,10 @@ function createAbortHandler(controller, project) {
|
|
|
163021
162956
|
error?.tryMessage ?? error?.stack
|
|
163022
162957
|
)
|
|
163023
162958
|
);
|
|
162959
|
+
if (process.env.SHOPIFY_UNIT_TEST && process.exit.name !== "spy") {
|
|
162960
|
+
console.error("Error during test before process.exit:", error);
|
|
162961
|
+
throw error;
|
|
162962
|
+
}
|
|
163024
162963
|
process.exit(1);
|
|
163025
162964
|
};
|
|
163026
162965
|
}
|
|
@@ -163101,7 +163040,7 @@ function generateRandomName() {
|
|
|
163101
163040
|
return `${colorNames} ${geographicalFeature}`;
|
|
163102
163041
|
}
|
|
163103
163042
|
|
|
163104
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163043
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/link.js
|
|
163105
163044
|
var Link = class _Link extends base_command_default {
|
|
163106
163045
|
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.
|
|
163107
163046
|
|
|
@@ -163247,7 +163186,7 @@ async function createNewStorefront(root, session, storefronts) {
|
|
|
163247
163186
|
return storefront;
|
|
163248
163187
|
}
|
|
163249
163188
|
|
|
163250
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163189
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/customer-application-update.js
|
|
163251
163190
|
init_cjs_shims();
|
|
163252
163191
|
var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
|
|
163253
163192
|
mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
|
|
@@ -163275,7 +163214,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
|
|
|
163275
163214
|
return { success, userErrors };
|
|
163276
163215
|
}
|
|
163277
163216
|
|
|
163278
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163217
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/customer-account/push.js
|
|
163279
163218
|
var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
|
|
163280
163219
|
static description = "Push project configuration to admin";
|
|
163281
163220
|
static flags = {
|
|
@@ -163434,7 +163373,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
|
|
|
163434
163373
|
return newConfig.storefront?.id;
|
|
163435
163374
|
}
|
|
163436
163375
|
|
|
163437
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163376
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
163438
163377
|
init_cjs_shims();
|
|
163439
163378
|
|
|
163440
163379
|
// ../cli-kit/dist/public/node/dot-env.js
|
|
@@ -163523,7 +163462,7 @@ function createDotEnvFileLine(key, value, quote2) {
|
|
|
163523
163462
|
return `${key}=${value}`;
|
|
163524
163463
|
}
|
|
163525
163464
|
|
|
163526
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163465
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/pull-variables.js
|
|
163527
163466
|
init_cjs_shims();
|
|
163528
163467
|
var PullVariablesQuery = `#graphql
|
|
163529
163468
|
query PullVariables($id: ID!, $handle: String) {
|
|
@@ -163551,7 +163490,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
|
|
|
163551
163490
|
return hydrogenStorefront;
|
|
163552
163491
|
}
|
|
163553
163492
|
|
|
163554
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163493
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-environments.js
|
|
163555
163494
|
init_cjs_shims();
|
|
163556
163495
|
var ListEnvironmentsQuery = `#graphql
|
|
163557
163496
|
query ListStorefronts($id: ID!) {
|
|
@@ -163579,7 +163518,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
|
|
|
163579
163518
|
return hydrogenStorefront;
|
|
163580
163519
|
}
|
|
163581
163520
|
|
|
163582
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163521
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/common.js
|
|
163583
163522
|
init_cjs_shims();
|
|
163584
163523
|
function orderEnvironmentsBySafety(environments) {
|
|
163585
163524
|
return [
|
|
@@ -163627,7 +163566,7 @@ function environmentNotFound(criterion, value) {
|
|
|
163627
163566
|
);
|
|
163628
163567
|
}
|
|
163629
163568
|
|
|
163630
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163569
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/environment-variables.js
|
|
163631
163570
|
var createEmptyRemoteVars = () => ({
|
|
163632
163571
|
remoteVariables: {},
|
|
163633
163572
|
remoteSecrets: {}
|
|
@@ -163708,7 +163647,7 @@ async function getLocalVariables(root) {
|
|
|
163708
163647
|
);
|
|
163709
163648
|
}
|
|
163710
163649
|
|
|
163711
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163650
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/tunneling.js
|
|
163712
163651
|
init_cjs_shims();
|
|
163713
163652
|
async function startTunnelPlugin(config, port, provider) {
|
|
163714
163653
|
const hooks = await fanoutHooks(config, "tunnel_start", { port, provider });
|
|
@@ -163749,7 +163688,7 @@ async function pollTunnelURL(tunnelClient) {
|
|
|
163749
163688
|
});
|
|
163750
163689
|
}
|
|
163751
163690
|
|
|
163752
|
-
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@
|
|
163691
|
+
// ../../node_modules/.pnpm/@shopify+cli-hydrogen@8.3.0_@graphql-codegen+cli@5.0.2_react-dom@17.0.2_react@17.0.2/node_modules/@shopify/cli-hydrogen/dist/lib/dev-shared.js
|
|
163753
163692
|
function isMockShop(envVariables) {
|
|
163754
163693
|
return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
|
|
163755
163694
|
// When it's undefined, it might be overwritten by remote variables.
|
|
@@ -163887,6 +163826,7 @@ export {
|
|
|
163887
163826
|
findHydrogenPlugin,
|
|
163888
163827
|
findOxygenPlugin,
|
|
163889
163828
|
muteDevLogs,
|
|
163829
|
+
enhanceAuthLogs,
|
|
163890
163830
|
enhanceH2Logs,
|
|
163891
163831
|
createRemixLogger,
|
|
163892
163832
|
muteRemixLogs,
|
|
@@ -163899,7 +163839,6 @@ export {
|
|
|
163899
163839
|
getRawRemixConfig,
|
|
163900
163840
|
getRemixConfig,
|
|
163901
163841
|
assertOxygenChecks,
|
|
163902
|
-
deferPromise,
|
|
163903
163842
|
adminRequest,
|
|
163904
163843
|
parseGid,
|
|
163905
163844
|
getStorefronts,
|
|
@@ -163914,6 +163853,7 @@ export {
|
|
|
163914
163853
|
getCliCommand,
|
|
163915
163854
|
businessPlatformRequest,
|
|
163916
163855
|
businessPlatformRequestDoc,
|
|
163856
|
+
businessPlatformOrganizationsRequest,
|
|
163917
163857
|
logout2 as logout,
|
|
163918
163858
|
login,
|
|
163919
163859
|
renderLoginSuccess,
|
|
@@ -163963,4 +163903,4 @@ export {
|
|
|
163963
163903
|
getDebugBannerLine,
|
|
163964
163904
|
getUtilityBannerlines
|
|
163965
163905
|
};
|
|
163966
|
-
//# sourceMappingURL=chunk-
|
|
163906
|
+
//# sourceMappingURL=chunk-OGVVZ2S7.js.map
|