@shopify/create-app 3.75.3 → 3.76.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/{chunk-JU7XOPSV.js → chunk-4HFDUDDU.js} +74 -11
- package/dist/{chunk-GLMO3EKF.js → chunk-4IZOAUIJ.js} +3 -2
- package/dist/{chunk-5UVQFDVV.js → chunk-BR3KKEPN.js} +442 -560
- package/dist/chunk-IDMI4B5S.js +164 -0
- package/dist/{chunk-A6GHFQXL.js → chunk-U4LAO4KY.js} +5 -5
- package/dist/{chunk-7HUHPP7O.js → chunk-VV6IS7HZ.js} +4 -4
- package/dist/{custom-oclif-loader-NIJWNTLD.js → custom-oclif-loader-SMMR74RK.js} +2 -2
- package/dist/{error-handler-5SSNTCMW.js → error-handler-QN5AUYGU.js} +6 -6
- package/dist/hooks/postrun.js +6 -5
- package/dist/hooks/prerun.js +7 -4
- package/dist/index.js +21294 -21038
- package/dist/{local-FBAV4XPM.js → local-4SXMDAD7.js} +2 -2
- package/dist/{node-package-manager-Z7NGARP4.js → node-package-manager-ACRDOQYF.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-2WO5JIZG.js → ui-B4KI2XON.js} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -22455,7 +22455,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
22455
22455
|
try {
|
|
22456
22456
|
await getAndSet();
|
|
22457
22457
|
} catch (error) {
|
|
22458
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
22458
|
+
let { sendErrorToBugsnag } = await import("./error-handler-QN5AUYGU.js");
|
|
22459
22459
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
22460
22460
|
}
|
|
22461
22461
|
}, durationStack = [];
|
|
@@ -28065,7 +28065,7 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
|
|
|
28065
28065
|
}
|
|
28066
28066
|
|
|
28067
28067
|
// ../cli-kit/dist/public/node/ui.js
|
|
28068
|
-
var import_react55 = __toESM(require_react()), defaultUIDebugOptions = {
|
|
28068
|
+
var import_react55 = __toESM(require_react(), 1), defaultUIDebugOptions = {
|
|
28069
28069
|
skipTTYCheck: !1
|
|
28070
28070
|
};
|
|
28071
28071
|
async function renderConcurrent({ renderOptions, ...props }) {
|
|
@@ -28300,6 +28300,9 @@ function errorMessageImpliesEnvironmentIssue(message) {
|
|
|
28300
28300
|
].some((issueMessage) => message.includes(issueMessage));
|
|
28301
28301
|
}
|
|
28302
28302
|
|
|
28303
|
+
// ../cli-kit/dist/public/node/os.js
|
|
28304
|
+
init_cjs_shims();
|
|
28305
|
+
|
|
28303
28306
|
// ../../node_modules/.pnpm/execa@7.2.0/node_modules/execa/index.js
|
|
28304
28307
|
init_cjs_shims();
|
|
28305
28308
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
@@ -29150,17 +29153,74 @@ function create$(options) {
|
|
|
29150
29153
|
}
|
|
29151
29154
|
var $ = create$();
|
|
29152
29155
|
|
|
29156
|
+
// ../cli-kit/dist/public/node/os.js
|
|
29157
|
+
import { userInfo as osUserInfo } from "os";
|
|
29158
|
+
async function username(platform2 = process.platform) {
|
|
29159
|
+
outputDebug(outputContent`Obtaining user name...`);
|
|
29160
|
+
let environmentVariable = getEnvironmentVariable();
|
|
29161
|
+
if (environmentVariable)
|
|
29162
|
+
return environmentVariable;
|
|
29163
|
+
let userInfoUsername = getUsernameFromOsUserInfo();
|
|
29164
|
+
if (userInfoUsername)
|
|
29165
|
+
return userInfoUsername;
|
|
29166
|
+
try {
|
|
29167
|
+
if (platform2 === "win32") {
|
|
29168
|
+
let { stdout } = await execa("whoami");
|
|
29169
|
+
return cleanWindowsCommand(stdout);
|
|
29170
|
+
}
|
|
29171
|
+
let { stdout: userId } = await execa("id", ["-u"]);
|
|
29172
|
+
try {
|
|
29173
|
+
let { stdout } = await execa("id", ["-un", userId]);
|
|
29174
|
+
return stdout;
|
|
29175
|
+
} catch {
|
|
29176
|
+
}
|
|
29177
|
+
return makeUsernameFromId(userId);
|
|
29178
|
+
} catch {
|
|
29179
|
+
return null;
|
|
29180
|
+
}
|
|
29181
|
+
}
|
|
29182
|
+
function platformAndArch(platform2 = process.platform, arch = process.arch) {
|
|
29183
|
+
let archString;
|
|
29184
|
+
return arch === "x64" ? archString = "amd64" : arch === "ia32" ? archString = "386" : archString = arch, { platform: platform2.match(/^win.+/) ? "windows" : platform2, arch: archString };
|
|
29185
|
+
}
|
|
29186
|
+
function getEnvironmentVariable() {
|
|
29187
|
+
let { env: env3 } = process;
|
|
29188
|
+
return env3.SUDO_USER || env3.C9_USER || env3.LOGNAME || env3.USER || env3.LNAME || env3.USERNAME;
|
|
29189
|
+
}
|
|
29190
|
+
function getUsernameFromOsUserInfo() {
|
|
29191
|
+
try {
|
|
29192
|
+
return osUserInfo().username;
|
|
29193
|
+
} catch {
|
|
29194
|
+
return null;
|
|
29195
|
+
}
|
|
29196
|
+
}
|
|
29197
|
+
function cleanWindowsCommand(value) {
|
|
29198
|
+
return value.replace(/^.*\\/, "");
|
|
29199
|
+
}
|
|
29200
|
+
function makeUsernameFromId(userId) {
|
|
29201
|
+
return `no-username-${userId}`;
|
|
29202
|
+
}
|
|
29203
|
+
|
|
29153
29204
|
// ../cli-kit/dist/public/node/system.js
|
|
29154
29205
|
var import_which = __toESM(require_lib2(), 1);
|
|
29155
29206
|
async function openURL(url) {
|
|
29156
|
-
|
|
29207
|
+
let externalOpen = await import("./open-BHIF7E3E.js");
|
|
29208
|
+
try {
|
|
29209
|
+
return await externalOpen.default(url), !0;
|
|
29210
|
+
} catch {
|
|
29211
|
+
return !1;
|
|
29212
|
+
}
|
|
29157
29213
|
}
|
|
29158
29214
|
async function captureOutput(command, args, options) {
|
|
29159
29215
|
return (await buildExec(command, args, options)).stdout;
|
|
29160
29216
|
}
|
|
29161
29217
|
async function exec3(command, args, options) {
|
|
29218
|
+
if (options) {
|
|
29219
|
+
let runningOnWindows = platformAndArch().platform === "windows";
|
|
29220
|
+
options.background = runningOnWindows ? !1 : options.background;
|
|
29221
|
+
}
|
|
29162
29222
|
let commandProcess = buildExec(command, args, options);
|
|
29163
|
-
options?.stderr && options.stderr !== "inherit" && commandProcess.stderr?.pipe(options.stderr, { end: !1 }), options?.stdout && options.stdout !== "inherit" && commandProcess.stdout?.pipe(options.stdout, { end: !1 });
|
|
29223
|
+
options?.background && commandProcess.unref(), options?.stderr && options.stderr !== "inherit" && commandProcess.stderr?.pipe(options.stderr, { end: !1 }), options?.stdout && options.stdout !== "inherit" && commandProcess.stdout?.pipe(options.stdout, { end: !1 });
|
|
29164
29224
|
let aborted = !1;
|
|
29165
29225
|
options?.signal?.addEventListener("abort", () => {
|
|
29166
29226
|
let pid = commandProcess.pid;
|
|
@@ -29188,16 +29248,18 @@ function buildExec(command, args, options) {
|
|
|
29188
29248
|
env: env3,
|
|
29189
29249
|
cwd: executionCwd,
|
|
29190
29250
|
input: options?.input,
|
|
29191
|
-
stdio: options?.stdio,
|
|
29251
|
+
stdio: options?.background ? "ignore" : options?.stdio,
|
|
29192
29252
|
stdin: options?.stdin,
|
|
29193
29253
|
stdout: options?.stdout === "inherit" ? "inherit" : void 0,
|
|
29194
29254
|
stderr: options?.stderr === "inherit" ? "inherit" : void 0,
|
|
29195
29255
|
// Setting this to false makes it possible to kill the main process
|
|
29196
29256
|
// and all its sub-processes with Ctrl+C on Windows
|
|
29197
|
-
windowsHide: !1
|
|
29257
|
+
windowsHide: !1,
|
|
29258
|
+
detached: options?.background,
|
|
29259
|
+
cleanup: !options?.background
|
|
29198
29260
|
});
|
|
29199
29261
|
return outputDebug(`
|
|
29200
|
-
Running system process:
|
|
29262
|
+
Running system process${options?.background ? " in background" : ""}:
|
|
29201
29263
|
\xB7 Command: ${command} ${args.join(" ")}
|
|
29202
29264
|
\xB7 Working directory: ${executionCwd}
|
|
29203
29265
|
`), commandProcess;
|
|
@@ -30940,14 +31002,14 @@ var homedir = os5.homedir(), tmpdir2 = os5.tmpdir(), { env: env2 } = process20,
|
|
|
30940
31002
|
temp: path7.join(tmpdir2, name)
|
|
30941
31003
|
};
|
|
30942
31004
|
}, linux = (name) => {
|
|
30943
|
-
let
|
|
31005
|
+
let username2 = path7.basename(homedir);
|
|
30944
31006
|
return {
|
|
30945
31007
|
data: path7.join(env2.XDG_DATA_HOME || path7.join(homedir, ".local", "share"), name),
|
|
30946
31008
|
config: path7.join(env2.XDG_CONFIG_HOME || path7.join(homedir, ".config"), name),
|
|
30947
31009
|
cache: path7.join(env2.XDG_CACHE_HOME || path7.join(homedir, ".cache"), name),
|
|
30948
31010
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
30949
31011
|
log: path7.join(env2.XDG_STATE_HOME || path7.join(homedir, ".local", "state"), name),
|
|
30950
|
-
temp: path7.join(tmpdir2,
|
|
31012
|
+
temp: path7.join(tmpdir2, username2, name)
|
|
30951
31013
|
};
|
|
30952
31014
|
};
|
|
30953
31015
|
function envPaths(name, { suffix = "nodejs" } = {}) {
|
|
@@ -31415,8 +31477,9 @@ export {
|
|
|
31415
31477
|
mimicFunction,
|
|
31416
31478
|
require_signal_exit,
|
|
31417
31479
|
require_get_stream,
|
|
31418
|
-
execa,
|
|
31419
31480
|
execaSync,
|
|
31481
|
+
username,
|
|
31482
|
+
platformAndArch,
|
|
31420
31483
|
openURL,
|
|
31421
31484
|
captureOutput,
|
|
31422
31485
|
exec3 as exec,
|
|
@@ -31629,4 +31692,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31629
31692
|
* LICENSE file in the root directory of this source tree.
|
|
31630
31693
|
*)
|
|
31631
31694
|
*/
|
|
31632
|
-
//# sourceMappingURL=chunk-
|
|
31695
|
+
//# sourceMappingURL=chunk-4HFDUDDU.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_get_stream,
|
|
19
19
|
runWithTimer,
|
|
20
20
|
writeFile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4HFDUDDU.js";
|
|
22
22
|
import {
|
|
23
23
|
dirname,
|
|
24
24
|
joinPath
|
|
@@ -14767,6 +14767,7 @@ export {
|
|
|
14767
14767
|
cacheRetrieveOrRepopulate,
|
|
14768
14768
|
cacheStore,
|
|
14769
14769
|
cacheRetrieve,
|
|
14770
|
+
timeIntervalToMilliseconds,
|
|
14770
14771
|
runAtMinimumInterval,
|
|
14771
14772
|
runWithRateLimit,
|
|
14772
14773
|
yarnLockfile,
|
|
@@ -14830,4 +14831,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
14830
14831
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14831
14832
|
*)
|
|
14832
14833
|
*/
|
|
14833
|
-
//# sourceMappingURL=chunk-
|
|
14834
|
+
//# sourceMappingURL=chunk-4IZOAUIJ.js.map
|