@shopify/create-app 4.6.0 → 4.7.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/{analytics-PQQTY5ME.js → analytics-A7XUM3DE.js} +16 -13
- package/dist/analytics-CVOS4X5D.js +44 -0
- package/dist/{chunk-WP465C6S.js → chunk-5LLHAM5N.js} +9 -6
- package/dist/{chunk-H5PKPIMG.js → chunk-A67PO4UO.js} +17 -17
- package/dist/{chunk-FACLWQ7N.js → chunk-AOCVCJS6.js} +17 -14
- package/dist/{chunk-74EXPUYI.js → chunk-B7LXQVGX.js} +21810 -347
- package/dist/chunk-CM6ALOD7.js +32 -0
- package/dist/{chunk-K5NLRHZR.js → chunk-E43EDJOG.js} +4 -4
- package/dist/{chunk-FZECX65P.js → chunk-FU4STSWX.js} +27 -18
- package/dist/{chunk-REKC23EA.js → chunk-HHKEZAAX.js} +2 -2
- package/dist/chunk-HNIAZN6U.js +14 -0
- package/dist/chunk-JMC4PKOZ.js +1391 -0
- package/dist/chunk-LEQAULOW.js +179 -0
- package/dist/chunk-PK2M5CKS.js +7350 -0
- package/dist/{chunk-4PYTNDQV.js → chunk-TGZSJFOF.js} +4509 -7671
- package/dist/{chunk-6OPDNYDK.js → chunk-VJHCFG5K.js} +2 -2
- package/dist/chunk-X2X377NR.js +301 -0
- package/dist/{chunk-HLLMTZ5K.js → chunk-XYNOPL42.js} +2 -2
- package/dist/{chunk-ICRN3QWA.js → chunk-YYJ6EVI6.js} +3 -3
- package/dist/{chunk-RQLHLRL7.js → chunk-ZPNNBR5Z.js} +33 -58
- package/dist/{conf-store-3CEUJODJ.js → conf-store-NT7HUXZL.js} +9 -7
- package/dist/{custom-oclif-loader-MNCB3QFM.js → custom-oclif-loader-HTLL62HO.js} +15 -15
- package/dist/{deprecations-IRDS6EBX.js → deprecations-37ZUNG4Z.js} +12 -9
- package/dist/{environments-M2APKG2S.js → environments-ISQBBMTF.js} +13 -10
- package/dist/{error-handler-KHJ2WGBH.js → error-handler-GGBOXL7F.js} +16 -13
- package/dist/{fs-4DAJNN2N.js → fs-ZG73KWF7.js} +4 -3
- package/dist/hooks/postrun.js +5 -4
- package/dist/hooks/prerun.js +26 -8
- package/dist/index.js +2022 -1822
- package/dist/index.test.js +8 -8
- package/dist/{is-global-4PAQ722P.js → is-global-DL3ZQWOO.js} +4 -3
- package/dist/{lib-SEAHPNPA.js → lib-XCYUJYSO.js} +3 -3
- package/dist/{local-UPSZCOOL.js → local-XAHKS4F6.js} +3 -2
- package/dist/{metadata-R5WZESAQ.js → metadata-4WOIDT2F.js} +4 -3
- package/dist/{node-package-manager-ZGOPCA42.js → node-package-manager-JO3BBXYZ.js} +14 -11
- package/dist/{notifications-system-SVQ6LB65.js → notifications-system-ZK44GBNG.js} +17 -14
- package/dist/os-XDQECFDE.js +19 -0
- package/dist/{output-3XHG2ZX2.js → output-2RGSJNA6.js} +4 -3
- package/dist/{system-6AUYCFL4.js → system-KQM7CSD6.js} +14 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-BZFIOKVT.js → ui-UAVSRCJ7.js} +12 -9
- package/dist/{upgrade-AYYDG5HX.js → upgrade-QE6OI6PW.js} +23 -20
- package/dist/{version-2UJ37EL3.js → version-6CVFB4SF.js} +13 -10
- package/dist/{version-NKNIJ276.js → version-AALUTWIR.js} +2 -2
- package/oclif.manifest.json +11 -7
- package/package.json +3 -3
- package/dist/analytics-ZRZM2AYT.js +0 -39
- package/dist/chunk-3WICPDUO.js +0 -21746
- package/dist/chunk-MXBSTTRA.js +0 -655
- package/dist/chunk-OGTZPCND.js +0 -5632
- package/dist/is-wsl-63MHD6QC.js +0 -65
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
outputDebug
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PK2M5CKS.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -96,4 +96,4 @@ function buildProcessTree(parentPid, tree, pidsToProcess, spawnChildProcessesLis
|
|
|
96
96
|
export {
|
|
97
97
|
treeKill
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-VJHCFG5K.js.map
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isTruthy
|
|
3
|
+
} from "./chunk-HNIAZN6U.js";
|
|
4
|
+
import {
|
|
5
|
+
joinPath
|
|
6
|
+
} from "./chunk-C3J4HVUN.js";
|
|
7
|
+
import {
|
|
8
|
+
init_cjs_shims
|
|
9
|
+
} from "./chunk-3XNI6LP4.js";
|
|
10
|
+
|
|
11
|
+
// ../cli-kit/dist/public/node/context/local.js
|
|
12
|
+
init_cjs_shims();
|
|
13
|
+
|
|
14
|
+
// ../cli-kit/dist/private/node/context/utilities.js
|
|
15
|
+
init_cjs_shims();
|
|
16
|
+
function isSet(variable) {
|
|
17
|
+
return !(variable === void 0 || variable.trim() === "");
|
|
18
|
+
}
|
|
19
|
+
function getCIMetadata(envName, envs) {
|
|
20
|
+
switch (envName) {
|
|
21
|
+
case "bitbucket":
|
|
22
|
+
return {
|
|
23
|
+
branch: envs.BITBUCKET_BRANCH,
|
|
24
|
+
build: envs.BITBUCKET_BUILD_NUMBER,
|
|
25
|
+
commitSha: envs.BITBUCKET_COMMIT,
|
|
26
|
+
run: envs.BITBUCKET_BUILD_NUMBER,
|
|
27
|
+
url: `https://bitbucket.org/${envs.BITBUCKET_WORKSPACE}/${envs.BITBUCKET_REPO_SLUG}/pipelines/results/${envs.BITBUCKET_BUILD_NUMBER}`
|
|
28
|
+
};
|
|
29
|
+
case "circleci":
|
|
30
|
+
return {
|
|
31
|
+
actor: envs.CIRCLE_USERNAME,
|
|
32
|
+
branch: envs.CIRCLE_BRANCH,
|
|
33
|
+
build: envs.CIRCLE_BUILD_NUM,
|
|
34
|
+
commitSha: envs.CIRCLE_SHA1,
|
|
35
|
+
run: envs.CIRCLE_WORKFLOW_ID,
|
|
36
|
+
url: envs.CIRCLE_BUILD_URL
|
|
37
|
+
};
|
|
38
|
+
case "github":
|
|
39
|
+
return {
|
|
40
|
+
actor: envs.GITHUB_ACTOR,
|
|
41
|
+
attempt: envs.GITHUB_RUN_ATTEMPT,
|
|
42
|
+
branch: envs.GITHUB_REF_NAME,
|
|
43
|
+
build: envs.GITHUB_RUN_ID,
|
|
44
|
+
commitSha: envs.GITHUB_SHA,
|
|
45
|
+
run: envs.GITHUB_RUN_ID,
|
|
46
|
+
runNumber: envs.GITHUB_RUN_NUMBER,
|
|
47
|
+
url: `${envs.GITHUB_SERVER_URL}/${envs.GITHUB_REPOSITORY}/actions/runs/${envs.GITHUB_RUN_ID}`
|
|
48
|
+
};
|
|
49
|
+
case "gitlab":
|
|
50
|
+
return {
|
|
51
|
+
actor: envs.GITLAB_USER_LOGIN,
|
|
52
|
+
branch: envs.CI_COMMIT_REF_NAME,
|
|
53
|
+
build: envs.CI_PIPELINE_ID,
|
|
54
|
+
commitSha: envs.CI_COMMIT_SHA,
|
|
55
|
+
commitMessage: envs.CI_COMMIT_MESSAGE,
|
|
56
|
+
run: envs.CI_RUNNER_ID,
|
|
57
|
+
url: envs.CI_PIPELINE_URL
|
|
58
|
+
};
|
|
59
|
+
case "buildkite":
|
|
60
|
+
return {
|
|
61
|
+
branch: envs.BUILDKITE_BRANCH,
|
|
62
|
+
build: envs.BUILDKITE_BUILD_NUMBER,
|
|
63
|
+
commitSha: envs.BUILDKITE_COMMIT,
|
|
64
|
+
commitMessage: envs.BUILDKITE_MESSAGE,
|
|
65
|
+
run: envs.BUILDKITE_BUILD_NUMBER,
|
|
66
|
+
url: envs.BUILDKITE_BUILD_URL
|
|
67
|
+
};
|
|
68
|
+
default:
|
|
69
|
+
return {};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ../cli-kit/dist/private/node/constants.js
|
|
74
|
+
init_cjs_shims();
|
|
75
|
+
|
|
76
|
+
// ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
|
|
77
|
+
init_cjs_shims();
|
|
78
|
+
import path from "node:path";
|
|
79
|
+
import os from "node:os";
|
|
80
|
+
import process2 from "node:process";
|
|
81
|
+
var homedir = os.homedir(), tmpdir = os.tmpdir(), { env } = process2, macos = (name) => {
|
|
82
|
+
let library = path.join(homedir, "Library");
|
|
83
|
+
return {
|
|
84
|
+
data: path.join(library, "Application Support", name),
|
|
85
|
+
config: path.join(library, "Preferences", name),
|
|
86
|
+
cache: path.join(library, "Caches", name),
|
|
87
|
+
log: path.join(library, "Logs", name),
|
|
88
|
+
temp: path.join(tmpdir, name)
|
|
89
|
+
};
|
|
90
|
+
}, windows = (name) => {
|
|
91
|
+
let appData = env.APPDATA || path.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
|
|
92
|
+
return {
|
|
93
|
+
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
94
|
+
data: path.join(localAppData, name, "Data"),
|
|
95
|
+
config: path.join(appData, name, "Config"),
|
|
96
|
+
cache: path.join(localAppData, name, "Cache"),
|
|
97
|
+
log: path.join(localAppData, name, "Log"),
|
|
98
|
+
temp: path.join(tmpdir, name)
|
|
99
|
+
};
|
|
100
|
+
}, linux = (name) => {
|
|
101
|
+
let username = path.basename(homedir);
|
|
102
|
+
return {
|
|
103
|
+
data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
|
|
104
|
+
config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
|
|
105
|
+
cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
|
|
106
|
+
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
107
|
+
log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
|
|
108
|
+
temp: path.join(tmpdir, username, name)
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
function envPaths(name, { suffix = "nodejs" } = {}) {
|
|
112
|
+
if (typeof name != "string")
|
|
113
|
+
throw new TypeError(`Expected a string, got ${typeof name}`);
|
|
114
|
+
return suffix && (name += `-${suffix}`), process2.platform === "darwin" ? macos(name) : process2.platform === "win32" ? windows(name) : linux(name);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// ../cli-kit/dist/private/node/constants.js
|
|
118
|
+
var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache;
|
|
119
|
+
var environmentVariables = {
|
|
120
|
+
alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
|
|
121
|
+
alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
|
|
122
|
+
deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
|
|
123
|
+
doctor: "SHOPIFY_CLI_DOCTOR",
|
|
124
|
+
enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
|
|
125
|
+
env: "SHOPIFY_CLI_ENV",
|
|
126
|
+
noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
|
|
127
|
+
optOutInstrumentation: "OPT_OUT_INSTRUMENTATION",
|
|
128
|
+
appAutomationToken: "SHOPIFY_APP_AUTOMATION_TOKEN",
|
|
129
|
+
partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
|
|
130
|
+
runAsUser: "SHOPIFY_RUN_AS_USER",
|
|
131
|
+
serviceEnv: "SHOPIFY_SERVICE_ENV",
|
|
132
|
+
skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
|
|
133
|
+
spinInstance: "SPIN_INSTANCE",
|
|
134
|
+
themeToken: "SHOPIFY_CLI_THEME_TOKEN",
|
|
135
|
+
unitTest: "SHOPIFY_UNIT_TEST",
|
|
136
|
+
verbose: "SHOPIFY_FLAG_VERBOSE",
|
|
137
|
+
// Variables to detect if the CLI is running in a cloud environment
|
|
138
|
+
codespaces: "CODESPACES",
|
|
139
|
+
codespaceName: "CODESPACE_NAME",
|
|
140
|
+
codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
|
|
141
|
+
gitpod: "GITPOD_WORKSPACE_URL",
|
|
142
|
+
cloudShell: "CLOUD_SHELL",
|
|
143
|
+
spinAppPort: "SERVER_PORT",
|
|
144
|
+
spinAppHost: "SPIN_APP_HOST",
|
|
145
|
+
organization: "SHOPIFY_CLI_ORGANIZATION",
|
|
146
|
+
identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
|
|
147
|
+
refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
|
|
148
|
+
otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
|
|
149
|
+
themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
|
|
150
|
+
json: "SHOPIFY_FLAG_JSON",
|
|
151
|
+
skipNetworkLevelRetry: "SHOPIFY_CLI_SKIP_NETWORK_LEVEL_RETRY",
|
|
152
|
+
maxRequestTimeForNetworkCalls: "SHOPIFY_CLI_MAX_REQUEST_TIME_FOR_NETWORK_CALLS",
|
|
153
|
+
disableImportScanning: "SHOPIFY_CLI_DISABLE_IMPORT_SCANNING"
|
|
154
|
+
}, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
|
|
155
|
+
backendPort: "BACKEND_PORT"
|
|
156
|
+
}, pathConstants = {
|
|
157
|
+
executables: {
|
|
158
|
+
dev: "/opt/dev/bin/dev"
|
|
159
|
+
},
|
|
160
|
+
directories: {
|
|
161
|
+
cache: {
|
|
162
|
+
path: () => cacheFolder(),
|
|
163
|
+
vendor: {
|
|
164
|
+
path: () => joinPath(cacheFolder(), "vendor"),
|
|
165
|
+
binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}, sessionConstants = {
|
|
170
|
+
expirationTimeMarginInMinutes: 4
|
|
171
|
+
}, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } }, themeKitAccessDomain = process.env[environmentVariables.themeKitAccessDomain] ?? defaultThemeKitAccessDomain;
|
|
172
|
+
|
|
173
|
+
// ../cli-kit/dist/public/node/context/local.js
|
|
174
|
+
import { randomUUID } from "crypto";
|
|
175
|
+
import { homedir as homedir2, networkInterfaces } from "os";
|
|
176
|
+
async function lazyFileExists(path2) {
|
|
177
|
+
let { fileExists } = await import("./fs-ZG73KWF7.js");
|
|
178
|
+
return fileExists(path2);
|
|
179
|
+
}
|
|
180
|
+
async function lazyExec(command, args) {
|
|
181
|
+
let { exec } = await import("./system-KQM7CSD6.js");
|
|
182
|
+
await exec(command, args);
|
|
183
|
+
}
|
|
184
|
+
function isTerminalInteractive() {
|
|
185
|
+
return !!(process.stdout.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
|
|
186
|
+
}
|
|
187
|
+
function homeDirectory() {
|
|
188
|
+
return homedir2();
|
|
189
|
+
}
|
|
190
|
+
var memoizedIsVerbose, memoizedIsUnitTest;
|
|
191
|
+
function isDevelopment(env2 = process.env) {
|
|
192
|
+
return env2[environmentVariables.env] === "development";
|
|
193
|
+
}
|
|
194
|
+
function isVerbose(env2 = process.env) {
|
|
195
|
+
return env2 === process.env ? memoizedIsVerbose ??= isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose") : isTruthy(env2[environmentVariables.verbose]) || process.argv.includes("--verbose");
|
|
196
|
+
}
|
|
197
|
+
async function isShopify(env2 = process.env) {
|
|
198
|
+
return Object.prototype.hasOwnProperty.call(env2, environmentVariables.runAsUser) ? !isTruthy(env2[environmentVariables.runAsUser]) : await lazyFileExists(pathConstants.executables.dev);
|
|
199
|
+
}
|
|
200
|
+
function isUnitTest(env2 = process.env) {
|
|
201
|
+
return env2 === process.env ? memoizedIsUnitTest ??= isTruthy(env2[environmentVariables.unitTest]) : isTruthy(env2[environmentVariables.unitTest]);
|
|
202
|
+
}
|
|
203
|
+
function analyticsDisabled(env2 = process.env) {
|
|
204
|
+
return isTruthy(env2[environmentVariables.noAnalytics]) || isTruthy(env2[environmentVariables.optOutInstrumentation]) || isDevelopment(env2);
|
|
205
|
+
}
|
|
206
|
+
function alwaysLogAnalytics(env2 = process.env) {
|
|
207
|
+
return isTruthy(env2[environmentVariables.alwaysLogAnalytics]);
|
|
208
|
+
}
|
|
209
|
+
function alwaysLogMetrics(env2 = process.env) {
|
|
210
|
+
return isTruthy(env2[environmentVariables.alwaysLogMetrics]);
|
|
211
|
+
}
|
|
212
|
+
function canRunDoctorRelease(env2 = process.env) {
|
|
213
|
+
return isTruthy(env2[environmentVariables.doctor]);
|
|
214
|
+
}
|
|
215
|
+
function gitpodURL(env2 = process.env) {
|
|
216
|
+
return env2[environmentVariables.gitpod];
|
|
217
|
+
}
|
|
218
|
+
function codespaceURL(env2 = process.env) {
|
|
219
|
+
return env2[environmentVariables.codespaceName];
|
|
220
|
+
}
|
|
221
|
+
function codespacePortForwardingDomain(env2 = process.env) {
|
|
222
|
+
return env2[environmentVariables.codespacePortForwardingDomain];
|
|
223
|
+
}
|
|
224
|
+
function isCloudEnvironment(env2 = process.env) {
|
|
225
|
+
return cloudEnvironment(env2).platform !== "localhost";
|
|
226
|
+
}
|
|
227
|
+
function themeToken(env2 = process.env) {
|
|
228
|
+
return env2[environmentVariables.themeToken];
|
|
229
|
+
}
|
|
230
|
+
function cloudEnvironment(env2 = process.env) {
|
|
231
|
+
return isSet(env2[environmentVariables.codespaces]) ? { platform: "codespaces", editor: !0 } : isSet(env2[environmentVariables.gitpod]) ? { platform: "gitpod", editor: !0 } : isSet(env2[environmentVariables.cloudShell]) ? { platform: "cloudShell", editor: !0 } : { platform: "localhost", editor: !1 };
|
|
232
|
+
}
|
|
233
|
+
async function hasGit() {
|
|
234
|
+
try {
|
|
235
|
+
return await lazyExec("git", ["--version"]), !0;
|
|
236
|
+
} catch {
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
function ciPlatform(env2 = process.env) {
|
|
241
|
+
if (isTruthy(env2.CI)) {
|
|
242
|
+
let name = "unknown";
|
|
243
|
+
return isSet(env2.BITBUCKET_BUILD_NUMBER) ? name = "bitbucket" : isTruthy(env2.CIRCLECI) ? name = "circleci" : isSet(env2.GITHUB_ACTION) ? name = "github" : isTruthy(env2.GITLAB_CI) ? name = "gitlab" : isSet(env2.BUILDKITE) && (name = "buildkite"), {
|
|
244
|
+
isCI: !0,
|
|
245
|
+
name,
|
|
246
|
+
metadata: getCIMetadata(name, env2)
|
|
247
|
+
};
|
|
248
|
+
} else if (isTruthy(env2.TF_BUILD))
|
|
249
|
+
return {
|
|
250
|
+
isCI: !0,
|
|
251
|
+
name: "azure",
|
|
252
|
+
metadata: getCIMetadata("azure", env2)
|
|
253
|
+
};
|
|
254
|
+
return {
|
|
255
|
+
isCI: !1
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
async function macAddress() {
|
|
259
|
+
let emptyMac = "00:00:00:00:00:00", interfacesWithMac = Object.values(networkInterfaces()).flat().filter((iface) => !!(iface && iface.mac !== emptyMac));
|
|
260
|
+
return (interfacesWithMac.find((iface) => !iface.internal) ?? interfacesWithMac[0])?.mac ?? randomUUID();
|
|
261
|
+
}
|
|
262
|
+
function getThemeKitAccessDomain(env2 = process.env) {
|
|
263
|
+
let domain = env2[environmentVariables.themeKitAccessDomain];
|
|
264
|
+
return isSet(domain) ? domain : defaultThemeKitAccessDomain;
|
|
265
|
+
}
|
|
266
|
+
function opentelemetryDomain(env2 = process.env) {
|
|
267
|
+
let domain = env2[environmentVariables.otelURL];
|
|
268
|
+
return isSet(domain) ? domain : "https://otlp-http-production-cli.shopifysvc.com";
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export {
|
|
272
|
+
envPaths,
|
|
273
|
+
environmentVariables,
|
|
274
|
+
systemEnvironmentVariables,
|
|
275
|
+
sessionConstants,
|
|
276
|
+
bugsnagApiKey,
|
|
277
|
+
reportingRateLimit,
|
|
278
|
+
themeKitAccessDomain,
|
|
279
|
+
isTerminalInteractive,
|
|
280
|
+
homeDirectory,
|
|
281
|
+
isDevelopment,
|
|
282
|
+
isVerbose,
|
|
283
|
+
isShopify,
|
|
284
|
+
isUnitTest,
|
|
285
|
+
analyticsDisabled,
|
|
286
|
+
alwaysLogAnalytics,
|
|
287
|
+
alwaysLogMetrics,
|
|
288
|
+
canRunDoctorRelease,
|
|
289
|
+
gitpodURL,
|
|
290
|
+
codespaceURL,
|
|
291
|
+
codespacePortForwardingDomain,
|
|
292
|
+
isCloudEnvironment,
|
|
293
|
+
themeToken,
|
|
294
|
+
cloudEnvironment,
|
|
295
|
+
hasGit,
|
|
296
|
+
ciPlatform,
|
|
297
|
+
macAddress,
|
|
298
|
+
getThemeKitAccessDomain,
|
|
299
|
+
opentelemetryDomain
|
|
300
|
+
};
|
|
301
|
+
//# sourceMappingURL=chunk-X2X377NR.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
captureOutput,
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TGZSJFOF.js";
|
|
5
5
|
import {
|
|
6
6
|
require_semver
|
|
7
7
|
} from "./chunk-OQ3KXXGH.js";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
isPreReleaseVersion,
|
|
53
53
|
isMajorVersionChange
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-XYNOPL42.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isUnitTest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2X377NR.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -32,7 +32,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
32
32
|
try {
|
|
33
33
|
await getAndSet();
|
|
34
34
|
} catch (error) {
|
|
35
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
35
|
+
let { sendErrorToBugsnag } = await import("./error-handler-GGBOXL7F.js");
|
|
36
36
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
37
37
|
}
|
|
38
38
|
}, durationStack = [];
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
addSensitiveMetadata,
|
|
76
76
|
runWithTimer
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-YYJ6EVI6.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cacheRetrieve,
|
|
3
3
|
cacheRetrieveOrRepopulate
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5LLHAM5N.js";
|
|
5
5
|
import {
|
|
6
6
|
AbortController,
|
|
7
7
|
exec
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TGZSJFOF.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithTimer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YYJ6EVI6.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortError,
|
|
14
14
|
BugError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LEQAULOW.js";
|
|
16
16
|
import {
|
|
17
17
|
require_semver
|
|
18
18
|
} from "./chunk-OQ3KXXGH.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
outputToken,
|
|
28
28
|
readFile,
|
|
29
29
|
writeFile
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-PK2M5CKS.js";
|
|
31
31
|
import {
|
|
32
32
|
dirname,
|
|
33
33
|
joinPath
|
|
@@ -245,63 +245,35 @@ async function addNPMDependenciesWithoutVersionIfNeeded(dependencies, options) {
|
|
|
245
245
|
await addNPMDependenciesIfNeeded(dependencies.map((dependency) => ({ name: dependency, version: void 0 })), options);
|
|
246
246
|
}
|
|
247
247
|
function argumentsToAddDependenciesWithNPM(dependency, type) {
|
|
248
|
-
let command = ["install"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
case "peer":
|
|
254
|
-
command.push("--save-peer");
|
|
255
|
-
break;
|
|
256
|
-
case "prod":
|
|
257
|
-
command.push("--save-prod");
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
248
|
+
let command = ["install", dependency, {
|
|
249
|
+
dev: "--save-dev",
|
|
250
|
+
peer: "--save-peer",
|
|
251
|
+
prod: "--save-prod"
|
|
252
|
+
}[type]];
|
|
260
253
|
return dependency.match(/@\d/g) && command.push("--save-exact"), command;
|
|
261
254
|
}
|
|
262
255
|
function argumentsToAddDependenciesWithYarn(dependencies, type, addAtRoot = !1) {
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
command.push("--peer");
|
|
270
|
-
break;
|
|
271
|
-
case "prod":
|
|
272
|
-
command.push("--prod");
|
|
273
|
-
break;
|
|
274
|
-
}
|
|
275
|
-
return command;
|
|
256
|
+
let typeFlags = {
|
|
257
|
+
dev: "--dev",
|
|
258
|
+
peer: "--peer",
|
|
259
|
+
prod: "--prod"
|
|
260
|
+
};
|
|
261
|
+
return ["add", ...addAtRoot ? ["-W"] : [], ...dependencies, typeFlags[type]];
|
|
276
262
|
}
|
|
277
263
|
function argumentsToAddDependenciesWithPNPM(dependencies, type, addAtRoot = !1) {
|
|
278
|
-
let
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
command.push("--save-peer");
|
|
285
|
-
break;
|
|
286
|
-
case "prod":
|
|
287
|
-
command.push("--save-prod");
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
return command;
|
|
264
|
+
let typeFlags = {
|
|
265
|
+
dev: "--save-dev",
|
|
266
|
+
peer: "--save-peer",
|
|
267
|
+
prod: "--save-prod"
|
|
268
|
+
};
|
|
269
|
+
return ["add", ...addAtRoot ? ["-w"] : [], ...dependencies, typeFlags[type]];
|
|
291
270
|
}
|
|
292
271
|
function argumentsToAddDependenciesWithBun(dependencies, type) {
|
|
293
|
-
let
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
case "peer":
|
|
299
|
-
command.push("--optional");
|
|
300
|
-
break;
|
|
301
|
-
case "prod":
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
return command;
|
|
272
|
+
let flag = {
|
|
273
|
+
dev: "--development",
|
|
274
|
+
peer: "--optional"
|
|
275
|
+
}[type];
|
|
276
|
+
return ["add", ...dependencies, ...flag ? [flag] : []];
|
|
305
277
|
}
|
|
306
278
|
async function findUpAndReadPackageJson(fromDirectory) {
|
|
307
279
|
let packageJsonPath = await findPathUp("package.json", { cwd: fromDirectory, type: "file" });
|
|
@@ -312,8 +284,11 @@ async function findUpAndReadPackageJson(fromDirectory) {
|
|
|
312
284
|
throw new FindUpAndReadPackageJsonNotFoundError(fromDirectory);
|
|
313
285
|
}
|
|
314
286
|
async function addResolutionOrOverride(directory, dependencies) {
|
|
315
|
-
let packageManager2 = await getPackageManager(directory),
|
|
316
|
-
|
|
287
|
+
let packageManager2 = await getPackageManager(directory), packageJsonContent = await readAndParsePackageJson(joinPath(directory, "package.json")), key = packageManager2 === "yarn" ? "resolutions" : "overrides";
|
|
288
|
+
packageJsonContent[key] = {
|
|
289
|
+
...packageJsonContent[key],
|
|
290
|
+
...dependencies
|
|
291
|
+
}, await writePackageJSON(directory, packageJsonContent);
|
|
317
292
|
}
|
|
318
293
|
async function getLatestNPMPackageVersion(name) {
|
|
319
294
|
return outputDebug(outputContent`Getting the latest version of NPM package: ${outputToken.raw(name)}`), runWithTimer("cmd_all_timing_network_ms")(async () => {
|
|
@@ -369,4 +344,4 @@ export {
|
|
|
369
344
|
writePackageJSON,
|
|
370
345
|
inferPackageManager
|
|
371
346
|
};
|
|
372
|
-
//# sourceMappingURL=chunk-
|
|
347
|
+
//# sourceMappingURL=chunk-ZPNNBR5Z.js.map
|
|
@@ -17,19 +17,21 @@ import {
|
|
|
17
17
|
setCurrentSessionId,
|
|
18
18
|
setSessions,
|
|
19
19
|
timeIntervalToMilliseconds
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-5LLHAM5N.js";
|
|
21
|
+
import "./chunk-LEQAULOW.js";
|
|
22
|
+
import "./chunk-CM6ALOD7.js";
|
|
23
|
+
import "./chunk-E43EDJOG.js";
|
|
23
24
|
import "./chunk-ODCXYGJ2.js";
|
|
24
25
|
import "./chunk-LBXDGVFS.js";
|
|
25
|
-
import "./chunk-D6NYWNY2.js";
|
|
26
26
|
import "./chunk-OQ3KXXGH.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-PK2M5CKS.js";
|
|
28
|
+
import "./chunk-X2X377NR.js";
|
|
29
29
|
import "./chunk-7OHJH7BF.js";
|
|
30
|
+
import "./chunk-HNIAZN6U.js";
|
|
30
31
|
import "./chunk-C3J4HVUN.js";
|
|
31
32
|
import "./chunk-UFLX7QDP.js";
|
|
32
33
|
import "./chunk-SI4LHZYW.js";
|
|
34
|
+
import "./chunk-D6NYWNY2.js";
|
|
33
35
|
import "./chunk-3XNI6LP4.js";
|
|
34
36
|
export {
|
|
35
37
|
cacheClear,
|
|
@@ -51,4 +53,4 @@ export {
|
|
|
51
53
|
setSessions,
|
|
52
54
|
timeIntervalToMilliseconds
|
|
53
55
|
};
|
|
54
|
-
//# sourceMappingURL=conf-store-
|
|
56
|
+
//# sourceMappingURL=conf-store-NT7HUXZL.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_lib
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E43EDJOG.js";
|
|
4
4
|
import "./chunk-ODCXYGJ2.js";
|
|
5
5
|
import "./chunk-LBXDGVFS.js";
|
|
6
|
-
import "./chunk-D6NYWNY2.js";
|
|
7
6
|
import "./chunk-OQ3KXXGH.js";
|
|
8
7
|
import "./chunk-7OHJH7BF.js";
|
|
8
|
+
import "./chunk-D6NYWNY2.js";
|
|
9
9
|
import {
|
|
10
10
|
__toESM,
|
|
11
11
|
init_cjs_shims
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
// ../cli-kit/dist/public/node/custom-oclif-loader.js
|
|
15
15
|
init_cjs_shims();
|
|
16
16
|
var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends import_core.Config {
|
|
17
|
+
lazyCommandLoader;
|
|
17
18
|
/**
|
|
18
19
|
* Set a lazy command loader that will be used to load individual command classes on demand,
|
|
19
20
|
* bypassing the default oclif behavior of importing the entire COMMANDS module.
|
|
@@ -34,21 +35,20 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
34
35
|
* @returns The command result.
|
|
35
36
|
*/
|
|
36
37
|
async runCommand(id, argv = [], cachedCommand = null) {
|
|
37
|
-
if (this.lazyCommandLoader)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
return super.runCommand(id, argv, cachedCommand);
|
|
38
|
+
if (!this.lazyCommandLoader)
|
|
39
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
40
|
+
let cmd = cachedCommand ?? this.findCommand(id);
|
|
41
|
+
if (!cmd)
|
|
42
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
43
|
+
let commandClass = await this.lazyCommandLoader(id);
|
|
44
|
+
if (!commandClass)
|
|
45
|
+
return super.runCommand(id, argv, cachedCommand);
|
|
46
|
+
commandClass.id = id, commandClass.plugin = cmd.plugin ?? this.rootPlugin, await this.runHook("prerun", { argv, Command: commandClass });
|
|
47
|
+
let result = await commandClass.run(argv, this);
|
|
48
|
+
return await this.runHook("postrun", { argv, Command: commandClass, result }), result;
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
52
|
ShopifyConfig
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
54
|
+
//# sourceMappingURL=custom-oclif-loader-HTLL62HO.js.map
|
|
@@ -3,22 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-MSED5ZFM.js";
|
|
4
4
|
import {
|
|
5
5
|
renderWarning
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TGZSJFOF.js";
|
|
7
|
+
import "./chunk-JMC4PKOZ.js";
|
|
8
|
+
import "./chunk-YYJ6EVI6.js";
|
|
9
|
+
import "./chunk-LEQAULOW.js";
|
|
10
|
+
import "./chunk-CM6ALOD7.js";
|
|
11
|
+
import "./chunk-E43EDJOG.js";
|
|
10
12
|
import "./chunk-ODCXYGJ2.js";
|
|
11
13
|
import "./chunk-LBXDGVFS.js";
|
|
12
|
-
import "./chunk-D6NYWNY2.js";
|
|
13
14
|
import "./chunk-JGGOQOPO.js";
|
|
14
15
|
import "./chunk-OQ3KXXGH.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VJHCFG5K.js";
|
|
17
|
+
import "./chunk-PK2M5CKS.js";
|
|
18
|
+
import "./chunk-X2X377NR.js";
|
|
18
19
|
import "./chunk-7OHJH7BF.js";
|
|
20
|
+
import "./chunk-HNIAZN6U.js";
|
|
19
21
|
import "./chunk-C3J4HVUN.js";
|
|
20
22
|
import "./chunk-UFLX7QDP.js";
|
|
21
23
|
import "./chunk-SI4LHZYW.js";
|
|
24
|
+
import "./chunk-D6NYWNY2.js";
|
|
22
25
|
import {
|
|
23
26
|
init_cjs_shims
|
|
24
27
|
} from "./chunk-3XNI6LP4.js";
|
|
@@ -52,4 +55,4 @@ function renderUpgradeWarning(upgradeByDate, forThemes) {
|
|
|
52
55
|
export {
|
|
53
56
|
postrun
|
|
54
57
|
};
|
|
55
|
-
//# sourceMappingURL=deprecations-
|
|
58
|
+
//# sourceMappingURL=deprecations-37ZUNG4Z.js.map
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
environmentFilePath,
|
|
3
3
|
loadEnvironment
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-AOCVCJS6.js";
|
|
5
|
+
import "./chunk-TGZSJFOF.js";
|
|
6
|
+
import "./chunk-JMC4PKOZ.js";
|
|
7
|
+
import "./chunk-YYJ6EVI6.js";
|
|
8
|
+
import "./chunk-LEQAULOW.js";
|
|
9
|
+
import "./chunk-CM6ALOD7.js";
|
|
10
|
+
import "./chunk-E43EDJOG.js";
|
|
9
11
|
import "./chunk-ODCXYGJ2.js";
|
|
10
12
|
import "./chunk-LBXDGVFS.js";
|
|
11
|
-
import "./chunk-D6NYWNY2.js";
|
|
12
13
|
import "./chunk-JGGOQOPO.js";
|
|
13
14
|
import "./chunk-OQ3KXXGH.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VJHCFG5K.js";
|
|
16
|
+
import "./chunk-PK2M5CKS.js";
|
|
17
|
+
import "./chunk-X2X377NR.js";
|
|
17
18
|
import "./chunk-7OHJH7BF.js";
|
|
19
|
+
import "./chunk-HNIAZN6U.js";
|
|
18
20
|
import "./chunk-C3J4HVUN.js";
|
|
19
21
|
import "./chunk-UFLX7QDP.js";
|
|
20
22
|
import "./chunk-SI4LHZYW.js";
|
|
23
|
+
import "./chunk-D6NYWNY2.js";
|
|
21
24
|
import "./chunk-3XNI6LP4.js";
|
|
22
25
|
export {
|
|
23
26
|
environmentFilePath,
|
|
24
27
|
loadEnvironment
|
|
25
28
|
};
|
|
26
|
-
//# sourceMappingURL=environments-
|
|
29
|
+
//# sourceMappingURL=environments-ISQBBMTF.js.map
|