@shopify/create-app 4.8.5 → 4.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/analytics-IECFN4JQ.js +40 -0
  2. package/dist/analytics-LBB7P36D.js +48 -0
  3. package/dist/{chunk-ODCXYGJ2.js → chunk-23UTCSPZ.js} +14 -4
  4. package/dist/{chunk-67ZHQJFJ.js → chunk-27YRBZHB.js} +5 -5
  5. package/dist/{chunk-F2LFNR26.js → chunk-37A2FHUG.js} +2 -2
  6. package/dist/chunk-3YGXE2AP.js +50 -0
  7. package/dist/{chunk-SGIGETET.js → chunk-63WOEPSQ.js} +203 -56
  8. package/dist/{chunk-YGBCHL4K.js → chunk-6OYK2NCF.js} +2 -2
  9. package/dist/chunk-7NOX742S.js +86 -0
  10. package/dist/{chunk-ZTNEDTAC.js → chunk-7RUPPYI4.js} +3093 -23
  11. package/dist/{chunk-BEUNBVME.js → chunk-A33KVF5C.js} +1 -1
  12. package/dist/{chunk-B4MEUQZW.js → chunk-AIZTGQJR.js} +10 -10
  13. package/dist/chunk-CK3T27VW.js +119 -0
  14. package/dist/{chunk-GU2TODXD.js → chunk-DC6ZFOVX.js} +3 -3
  15. package/dist/{chunk-E43EDJOG.js → chunk-EJEHENXO.js} +3 -2
  16. package/dist/{chunk-CPI6XVRV.js → chunk-EJPPP2UR.js} +32 -10
  17. package/dist/chunk-FKZ3NFHZ.js +7 -0
  18. package/dist/{chunk-JEMOMVLA.js → chunk-GXCPTCSE.js} +2 -2
  19. package/dist/{chunk-TS6YLIAL.js → chunk-IGYLFVSH.js} +51 -26
  20. package/dist/chunk-QWRYHKCI.js +218 -0
  21. package/dist/chunk-SHCNJ47P.js +89 -0
  22. package/dist/{chunk-4SGOGIHQ.js → chunk-U5GH53OY.js} +16 -16
  23. package/dist/{chunk-C3J4HVUN.js → chunk-VDUAROBQ.js} +3 -2
  24. package/dist/chunk-WXRXVG7I.js +1092 -0
  25. package/dist/{chunk-ZKLW7LMH.js → chunk-XE2VSA7J.js} +16 -14
  26. package/dist/{chunk-PERCCMZB.js → chunk-XIVTHG4G.js} +320 -3213
  27. package/dist/{chunk-5JYB62AT.js → chunk-XTW7GZNX.js} +7 -7
  28. package/dist/command-json-schema-NKZVCRA4.js +65 -0
  29. package/dist/{conf-store-I2EVFNHO.js → conf-store-OXRRZ7GJ.js} +11 -11
  30. package/dist/custom-oclif-loader-GXZPW6CV.js +85 -0
  31. package/dist/{deprecations-ASHE6RU7.js → deprecations-DRF2EUF3.js} +18 -15
  32. package/dist/environment-OJNKZ7ML.js +25 -0
  33. package/dist/environments-4D4TK7F7.js +32 -0
  34. package/dist/error-handler-LQ3ZDIBZ.js +44 -0
  35. package/dist/{fs-AOTVAHUT.js → fs-PMEOY2EH.js} +10 -5
  36. package/dist/hooks/postrun.js +11 -6
  37. package/dist/hooks/prerun.js +6 -6
  38. package/dist/{http-proxy-node16-5LMQ6YXS.js → http-proxy-node16-FD2WN6JB.js} +2 -3
  39. package/dist/index.js +6687 -3622
  40. package/dist/{is-global-2XE72BX5.js → is-global-LYFZG4LV.js} +10 -5
  41. package/dist/json-error-4FQODRLE.js +104 -0
  42. package/dist/{lib-XCYUJYSO.js → lib-NYDMHWZM.js} +3 -4
  43. package/dist/{local-VTOHZRT2.js → local-EVID5OFN.js} +11 -3
  44. package/dist/{metadata-PNCC4F25.js → metadata-WETP27SP.js} +10 -4
  45. package/dist/{node-package-manager-WUKOPNFK.js → node-package-manager-BLIC3IFC.js} +20 -17
  46. package/dist/notifications-system-45UW7RPJ.js +47 -0
  47. package/dist/os-VO35CUIL.js +24 -0
  48. package/dist/{output-Y2INREX2.js → output-7GWEONQ7.js} +12 -5
  49. package/dist/{path-2WA5R6GG.js → path-2KZ7FSGN.js} +2 -2
  50. package/dist/{prettier-SS3RRDXK.js → prettier-BNZDRHR4.js} +2 -2
  51. package/dist/{system-KPC4GYYQ.js → system-F25CZRFX.js} +18 -15
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/dist/{ui-WQOJ2UKT.js → ui-KEWWVBIJ.js} +18 -15
  54. package/dist/{upgrade-KCKPO4QT.js → upgrade-RSDWMQIO.js} +47 -29
  55. package/dist/{version-ODXTDVIB.js → version-MTILA6OW.js} +2 -2
  56. package/dist/version-XXESWBZG.js +36 -0
  57. package/oclif.manifest.json +15 -1
  58. package/package.json +3 -3
  59. package/dist/analytics-I6PGSH5K.js +0 -44
  60. package/dist/analytics-QHQHZXCP.js +0 -36
  61. package/dist/chunk-2Z5L5TZI.js +0 -301
  62. package/dist/chunk-7OHJH7BF.js +0 -21
  63. package/dist/custom-oclif-loader-HTLL62HO.js +0 -54
  64. package/dist/environments-JM7VKVKQ.js +0 -29
  65. package/dist/error-handler-TUY64CIU.js +0 -40
  66. package/dist/notifications-system-GBBRT4B6.js +0 -43
  67. package/dist/os-J6JGAAOY.js +0 -19
  68. package/dist/version-5242JBZK.js +0 -33
@@ -0,0 +1,218 @@
1
+ import {
2
+ defaultThemeKitAccessDomain,
3
+ environmentVariables,
4
+ pathConstants
5
+ } from "./chunk-CK3T27VW.js";
6
+ import {
7
+ isTruthy
8
+ } from "./chunk-HNIAZN6U.js";
9
+ import {
10
+ require_lib
11
+ } from "./chunk-EJEHENXO.js";
12
+ import {
13
+ __toESM,
14
+ init_cjs_shims
15
+ } from "./chunk-3XNI6LP4.js";
16
+
17
+ // ../cli-kit/dist/public/node/context/local.js
18
+ init_cjs_shims();
19
+
20
+ // ../cli-kit/dist/public/node/no-input.js
21
+ init_cjs_shims();
22
+ var import_core = __toESM(require_lib(), 1), noInputFlag = {
23
+ "no-input": import_core.Flags.boolean({
24
+ description: "Disable interactive prompts and browser authentication.",
25
+ env: "SHOPIFY_FLAG_NO_INPUT"
26
+ })
27
+ };
28
+ function isInputDisabled(argv = process.argv, environment = process.env) {
29
+ return argv.includes("--no-input") || isTruthy(environment.SHOPIFY_FLAG_NO_INPUT);
30
+ }
31
+
32
+ // ../cli-kit/dist/private/node/context/utilities.js
33
+ init_cjs_shims();
34
+ function isSet(variable) {
35
+ return !(variable === void 0 || variable.trim() === "");
36
+ }
37
+ function getCIMetadata(envName, envs) {
38
+ switch (envName) {
39
+ case "bitbucket":
40
+ return {
41
+ branch: envs.BITBUCKET_BRANCH,
42
+ build: envs.BITBUCKET_BUILD_NUMBER,
43
+ commitSha: envs.BITBUCKET_COMMIT,
44
+ run: envs.BITBUCKET_BUILD_NUMBER,
45
+ url: `https://bitbucket.org/${envs.BITBUCKET_WORKSPACE}/${envs.BITBUCKET_REPO_SLUG}/pipelines/results/${envs.BITBUCKET_BUILD_NUMBER}`
46
+ };
47
+ case "circleci":
48
+ return {
49
+ actor: envs.CIRCLE_USERNAME,
50
+ branch: envs.CIRCLE_BRANCH,
51
+ build: envs.CIRCLE_BUILD_NUM,
52
+ commitSha: envs.CIRCLE_SHA1,
53
+ run: envs.CIRCLE_WORKFLOW_ID,
54
+ url: envs.CIRCLE_BUILD_URL
55
+ };
56
+ case "github":
57
+ return {
58
+ actor: envs.GITHUB_ACTOR,
59
+ attempt: envs.GITHUB_RUN_ATTEMPT,
60
+ branch: envs.GITHUB_REF_NAME,
61
+ build: envs.GITHUB_RUN_ID,
62
+ commitSha: envs.GITHUB_SHA,
63
+ run: envs.GITHUB_RUN_ID,
64
+ runNumber: envs.GITHUB_RUN_NUMBER,
65
+ url: `${envs.GITHUB_SERVER_URL}/${envs.GITHUB_REPOSITORY}/actions/runs/${envs.GITHUB_RUN_ID}`
66
+ };
67
+ case "gitlab":
68
+ return {
69
+ actor: envs.GITLAB_USER_LOGIN,
70
+ branch: envs.CI_COMMIT_REF_NAME,
71
+ build: envs.CI_PIPELINE_ID,
72
+ commitSha: envs.CI_COMMIT_SHA,
73
+ commitMessage: envs.CI_COMMIT_MESSAGE,
74
+ run: envs.CI_RUNNER_ID,
75
+ url: envs.CI_PIPELINE_URL
76
+ };
77
+ case "buildkite":
78
+ return {
79
+ branch: envs.BUILDKITE_BRANCH,
80
+ build: envs.BUILDKITE_BUILD_NUMBER,
81
+ commitSha: envs.BUILDKITE_COMMIT,
82
+ commitMessage: envs.BUILDKITE_MESSAGE,
83
+ run: envs.BUILDKITE_BUILD_NUMBER,
84
+ url: envs.BUILDKITE_BUILD_URL
85
+ };
86
+ default:
87
+ return {};
88
+ }
89
+ }
90
+
91
+ // ../cli-kit/dist/public/node/context/local.js
92
+ import { randomUUID } from "crypto";
93
+ import { homedir, networkInterfaces } from "os";
94
+ async function lazyFileExists(path) {
95
+ let { fileExists } = await import("./fs-PMEOY2EH.js");
96
+ return fileExists(path);
97
+ }
98
+ async function lazyExec(command, args) {
99
+ let { exec } = await import("./system-F25CZRFX.js");
100
+ await exec(command, args);
101
+ }
102
+ function isTerminalInteractive() {
103
+ return !!(!isInputDisabled() && process.stdout.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
104
+ }
105
+ function homeDirectory() {
106
+ return homedir();
107
+ }
108
+ var memoizedIsVerbose, memoizedIsUnitTest;
109
+ function resetMemoizedIsUnitTest() {
110
+ memoizedIsUnitTest = void 0;
111
+ }
112
+ function isDevelopment(env = process.env) {
113
+ return env[environmentVariables.env] === "development";
114
+ }
115
+ function isVerbose(env = process.env) {
116
+ return env === process.env ? memoizedIsVerbose ??= isTruthy(env[environmentVariables.verbose]) || process.argv.includes("--verbose") : isTruthy(env[environmentVariables.verbose]) || process.argv.includes("--verbose");
117
+ }
118
+ async function isShopify(env = process.env) {
119
+ return Object.prototype.hasOwnProperty.call(env, environmentVariables.runAsUser) ? !isTruthy(env[environmentVariables.runAsUser]) : await lazyFileExists(pathConstants.executables.dev);
120
+ }
121
+ function isUnitTest(env = process.env) {
122
+ return env === process.env ? memoizedIsUnitTest ??= isTruthy(env[environmentVariables.unitTest]) : isTruthy(env[environmentVariables.unitTest]);
123
+ }
124
+ function analyticsDisabled(env = process.env) {
125
+ return isTruthy(env[environmentVariables.noAnalytics]) || isTruthy(env[environmentVariables.optOutInstrumentation]) || isDevelopment(env);
126
+ }
127
+ function alwaysLogAnalytics(env = process.env) {
128
+ return isTruthy(env[environmentVariables.alwaysLogAnalytics]);
129
+ }
130
+ function alwaysLogMetrics(env = process.env) {
131
+ return isTruthy(env[environmentVariables.alwaysLogMetrics]);
132
+ }
133
+ function canRunDoctorRelease(env = process.env) {
134
+ return isTruthy(env[environmentVariables.doctor]);
135
+ }
136
+ function gitpodURL(env = process.env) {
137
+ return env[environmentVariables.gitpod];
138
+ }
139
+ function codespaceURL(env = process.env) {
140
+ return env[environmentVariables.codespaceName];
141
+ }
142
+ function codespacePortForwardingDomain(env = process.env) {
143
+ return env[environmentVariables.codespacePortForwardingDomain];
144
+ }
145
+ function isCloudEnvironment(env = process.env) {
146
+ return cloudEnvironment(env).platform !== "localhost";
147
+ }
148
+ function themeToken(env = process.env) {
149
+ return env[environmentVariables.themeToken];
150
+ }
151
+ function cloudEnvironment(env = process.env) {
152
+ return isSet(env[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : { platform: "localhost", editor: !1 };
153
+ }
154
+ async function hasGit() {
155
+ try {
156
+ return await lazyExec("git", ["--version"]), !0;
157
+ } catch {
158
+ return !1;
159
+ }
160
+ }
161
+ function ciPlatform(env = process.env) {
162
+ if (isTruthy(env.CI)) {
163
+ let name = "unknown";
164
+ return isSet(env.BITBUCKET_BUILD_NUMBER) ? name = "bitbucket" : isTruthy(env.CIRCLECI) ? name = "circleci" : isSet(env.GITHUB_ACTION) ? name = "github" : isTruthy(env.GITLAB_CI) ? name = "gitlab" : isSet(env.BUILDKITE) && (name = "buildkite"), {
165
+ isCI: !0,
166
+ name,
167
+ metadata: getCIMetadata(name, env)
168
+ };
169
+ } else if (isTruthy(env.TF_BUILD))
170
+ return {
171
+ isCI: !0,
172
+ name: "azure",
173
+ metadata: getCIMetadata("azure", env)
174
+ };
175
+ return {
176
+ isCI: !1
177
+ };
178
+ }
179
+ async function macAddress() {
180
+ let emptyMac = "00:00:00:00:00:00", interfacesWithMac = Object.values(networkInterfaces()).flat().filter((iface) => !!(iface && iface.mac !== emptyMac));
181
+ return (interfacesWithMac.find((iface) => !iface.internal) ?? interfacesWithMac[0])?.mac ?? randomUUID();
182
+ }
183
+ function getThemeKitAccessDomain(env = process.env) {
184
+ let domain = env[environmentVariables.themeKitAccessDomain];
185
+ return isSet(domain) ? domain : defaultThemeKitAccessDomain;
186
+ }
187
+ function opentelemetryDomain(env = process.env) {
188
+ let domain = env[environmentVariables.otelURL];
189
+ return isSet(domain) ? domain : "https://otlp-http-production-cli.shopifysvc.com";
190
+ }
191
+
192
+ export {
193
+ noInputFlag,
194
+ isInputDisabled,
195
+ isTerminalInteractive,
196
+ homeDirectory,
197
+ resetMemoizedIsUnitTest,
198
+ isDevelopment,
199
+ isVerbose,
200
+ isShopify,
201
+ isUnitTest,
202
+ analyticsDisabled,
203
+ alwaysLogAnalytics,
204
+ alwaysLogMetrics,
205
+ canRunDoctorRelease,
206
+ gitpodURL,
207
+ codespaceURL,
208
+ codespacePortForwardingDomain,
209
+ isCloudEnvironment,
210
+ themeToken,
211
+ cloudEnvironment,
212
+ hasGit,
213
+ ciPlatform,
214
+ macAddress,
215
+ getThemeKitAccessDomain,
216
+ opentelemetryDomain
217
+ };
218
+ //# sourceMappingURL=chunk-QWRYHKCI.js.map
@@ -0,0 +1,89 @@
1
+ import {
2
+ environmentVariables,
3
+ systemEnvironmentVariables
4
+ } from "./chunk-CK3T27VW.js";
5
+ import {
6
+ isTruthy
7
+ } from "./chunk-HNIAZN6U.js";
8
+ import {
9
+ sniffForJson
10
+ } from "./chunk-VDUAROBQ.js";
11
+ import {
12
+ init_cjs_shims
13
+ } from "./chunk-3XNI6LP4.js";
14
+
15
+ // ../cli-kit/dist/public/node/environment.js
16
+ init_cjs_shims();
17
+
18
+ // ../cli-kit/dist/public/node/crypto.js
19
+ init_cjs_shims();
20
+ import crypto from "crypto";
21
+ function sha256(str) {
22
+ return crypto.createHash("sha256").update(str).digest();
23
+ }
24
+ function hashString(str) {
25
+ return crypto.createHash("sha1").update(str).digest("hex");
26
+ }
27
+ function fileHash(buff) {
28
+ return crypto.createHash("md5").update(buff).digest("hex");
29
+ }
30
+ function randomUUID() {
31
+ return crypto.randomUUID();
32
+ }
33
+ function nonRandomUUID(subject) {
34
+ return crypto.createHash("sha1").update(Buffer.from("6ba7b810-9dad-11d1-80b4-00c04fd430c8".replace(/-/g, ""), "hex")).update(subject).digest().toString("hex").replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
35
+ }
36
+
37
+ // ../cli-kit/dist/public/node/environment.js
38
+ function getEnvironmentVariables() {
39
+ return process.env;
40
+ }
41
+ function getAppAutomationToken() {
42
+ let env = getEnvironmentVariables();
43
+ return env[environmentVariables.appAutomationToken] ?? env[environmentVariables.partnersToken];
44
+ }
45
+ function getOrganization() {
46
+ return getEnvironmentVariables()[environmentVariables.organization];
47
+ }
48
+ function parseEnvNumber(value) {
49
+ if (value && !isNaN(Number(value)))
50
+ return Number(value);
51
+ }
52
+ function getBackendPort() {
53
+ return parseEnvNumber(getEnvironmentVariables()[systemEnvironmentVariables.backendPort]);
54
+ }
55
+ function getIdentityTokenInformation() {
56
+ let identityToken = getEnvironmentVariables()[environmentVariables.identityToken], refreshToken = getEnvironmentVariables()[environmentVariables.refreshToken];
57
+ if (!(!identityToken || !refreshToken))
58
+ return {
59
+ accessToken: identityToken,
60
+ refreshToken,
61
+ userId: nonRandomUUID(identityToken)
62
+ };
63
+ }
64
+ function jsonOutputEnabled(environment = getEnvironmentVariables(), argv = process.argv) {
65
+ return sniffForJson(argv) || isTruthy(environment[environmentVariables.json]);
66
+ }
67
+ function skipNetworkLevelRetry(environment = getEnvironmentVariables()) {
68
+ return isTruthy(environment[environmentVariables.skipNetworkLevelRetry]);
69
+ }
70
+ function maxRequestTimeForNetworkCallsMs(environment = getEnvironmentVariables()) {
71
+ return parseEnvNumber(environment[environmentVariables.maxRequestTimeForNetworkCalls]) ?? 30 * 1e3;
72
+ }
73
+
74
+ export {
75
+ sha256,
76
+ hashString,
77
+ fileHash,
78
+ randomUUID,
79
+ nonRandomUUID,
80
+ getEnvironmentVariables,
81
+ getAppAutomationToken,
82
+ getOrganization,
83
+ getBackendPort,
84
+ getIdentityTokenInformation,
85
+ jsonOutputEnabled,
86
+ skipNetworkLevelRetry,
87
+ maxRequestTimeForNetworkCallsMs
88
+ };
89
+ //# sourceMappingURL=chunk-SHCNJ47P.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  treeKill
3
- } from "./chunk-F2LFNR26.js";
3
+ } from "./chunk-37A2FHUG.js";
4
4
  import {
5
5
  init_cjs_shims
6
6
  } from "./chunk-3XNI6LP4.js";
@@ -26,22 +26,22 @@ function waitForPostRunHookAndExit() {
26
26
  }
27
27
  var hook = async ({ config, Command }) => {
28
28
  await detectStopCommand(Command);
29
- let metadata = await import("./metadata-PNCC4F25.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
29
+ let metadata = await import("./metadata-WETP27SP.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
30
30
  commandStartOptions && await metadata.addSensitiveMetadata(() => ({
31
31
  commandStartOptions: {
32
32
  ...commandStartOptions,
33
33
  endTime: (/* @__PURE__ */ new Date()).getTime()
34
34
  }
35
35
  }));
36
- let { postrun: deprecationsHook } = await import("./deprecations-ASHE6RU7.js");
36
+ let { postrun: deprecationsHook } = await import("./deprecations-DRF2EUF3.js");
37
37
  deprecationsHook(Command);
38
- let { outputDebug } = await import("./output-Y2INREX2.js"), command = Command.id.replace(/:/g, " ");
38
+ let { outputDebug } = await import("./output-7GWEONQ7.js"), command = Command.id.replace(/:/g, " ");
39
39
  outputDebug(`Completed command ${command}`), !command.includes("notifications") && !command.includes("upgrade") && !command.includes("send-analytics") && await autoUpgradeIfNeeded();
40
- let { reportAnalyticsEvent } = await import("./analytics-I6PGSH5K.js");
40
+ let { reportAnalyticsEvent } = await import("./analytics-LBB7P36D.js");
41
41
  await reportAnalyticsEvent({ config, exitMode: "ok" }), postRunHookCompleted = !0;
42
42
  };
43
43
  async function autoUpgradeIfNeeded() {
44
- let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-KCKPO4QT.js"), newerVersion = versionToAutoUpgrade();
44
+ let { versionToAutoUpgrade, warnIfUpgradeAvailable } = await import("./upgrade-RSDWMQIO.js"), newerVersion = versionToAutoUpgrade();
45
45
  if (!newerVersion) {
46
46
  await warnIfUpgradeAvailable();
47
47
  return;
@@ -49,7 +49,7 @@ async function autoUpgradeIfNeeded() {
49
49
  if (process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE === "1")
50
50
  await performAutoUpgrade(newerVersion);
51
51
  else {
52
- let { runAtMinimumInterval } = await import("./conf-store-I2EVFNHO.js");
52
+ let { runAtMinimumInterval } = await import("./conf-store-OXRRZ7GJ.js");
53
53
  await runAtMinimumInterval("auto-upgrade", { days: 1 }, async () => {
54
54
  await performAutoUpgrade(newerVersion);
55
55
  });
@@ -57,11 +57,11 @@ async function autoUpgradeIfNeeded() {
57
57
  }
58
58
  async function performAutoUpgrade(newerVersion) {
59
59
  let [{ CLI_KIT_VERSION }, { isMajorVersionChange }, { outputWarn, outputDebug }, { getOutputUpdateCLIReminder, runCLIUpgrade, hasBlockingAutoUpgradeNotification }, metadata] = await Promise.all([
60
- import("./version-ODXTDVIB.js"),
61
- import("./version-5242JBZK.js"),
62
- import("./output-Y2INREX2.js"),
63
- import("./upgrade-KCKPO4QT.js"),
64
- import("./metadata-PNCC4F25.js")
60
+ import("./version-MTILA6OW.js"),
61
+ import("./version-XXESWBZG.js"),
62
+ import("./output-7GWEONQ7.js"),
63
+ import("./upgrade-RSDWMQIO.js"),
64
+ import("./metadata-WETP27SP.js")
65
65
  ]);
66
66
  if (isMajorVersionChange(CLI_KIT_VERSION, newerVersion)) {
67
67
  outputWarn(getOutputUpdateCLIReminder(newerVersion, !0)), await metadata.addPublicMetadata(() => ({
@@ -81,8 +81,8 @@ async function performAutoUpgrade(newerVersion) {
81
81
  let errorMessage = `Auto-upgrade failed: ${error}`;
82
82
  outputDebug(errorMessage), outputWarn(getOutputUpdateCLIReminder(newerVersion)), await metadata.addPublicMetadata(() => ({ env_auto_upgrade_success: !1 }));
83
83
  let [{ sendErrorToBugsnag }, { inferPackageManagerForGlobalCLI }] = await Promise.all([
84
- import("./error-handler-TUY64CIU.js"),
85
- import("./is-global-2XE72BX5.js")
84
+ import("./error-handler-LQ3ZDIBZ.js"),
85
+ import("./is-global-LYFZG4LV.js")
86
86
  ]), enrichedError = Object.assign(new Error(errorMessage), {
87
87
  packageManager: inferPackageManagerForGlobalCLI(),
88
88
  platform: process.platform,
@@ -96,7 +96,7 @@ async function detectStopCommand(commandClass) {
96
96
  if (commandClass && "analyticsStopCommand" in commandClass && typeof commandClass.analyticsStopCommand == "function") {
97
97
  let stopCommand = commandClass.analyticsStopCommand();
98
98
  if (stopCommand) {
99
- let metadata = await import("./metadata-PNCC4F25.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
99
+ let metadata = await import("./metadata-WETP27SP.js"), { commandStartOptions } = metadata.getAllSensitiveMetadata();
100
100
  if (!commandStartOptions)
101
101
  return;
102
102
  await metadata.addSensitiveMetadata(() => ({
@@ -114,4 +114,4 @@ export {
114
114
  waitForPostRunHookAndExit,
115
115
  hook
116
116
  };
117
- //# sourceMappingURL=chunk-4SGOGIHQ.js.map
117
+ //# sourceMappingURL=chunk-U5GH53OY.js.map
@@ -163,7 +163,8 @@ function sniffForPath(argv = process.argv) {
163
163
  return pathFlag;
164
164
  }
165
165
  function sniffForJson(argv = process.argv) {
166
- return argv.includes("--json") || argv.includes("-j");
166
+ let passthroughIndex = argv.indexOf("--"), commandArguments = passthroughIndex === -1 ? argv : argv.slice(0, passthroughIndex);
167
+ return commandArguments.includes("--json") || commandArguments.includes("-j");
167
168
  }
168
169
  function sanitizeRelativePath(input, warn) {
169
170
  let segments = input.replace(/\\/g, "/").split("/"), stack = [], stripped = !1;
@@ -196,4 +197,4 @@ export {
196
197
  sniffForJson,
197
198
  sanitizeRelativePath
198
199
  };
199
- //# sourceMappingURL=chunk-C3J4HVUN.js.map
200
+ //# sourceMappingURL=chunk-VDUAROBQ.js.map