@shopify/create-app 3.66.1 → 3.67.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-FIJKOZJF.js → chunk-2IV4ZS5T.js} +4 -3
- package/dist/{chunk-KFZCBK4T.js → chunk-3VT3NKCG.js} +4 -4
- package/dist/{chunk-257COCSO.js → chunk-4W4U5QAX.js} +2 -2
- package/dist/{chunk-S3DUCSRO.js → chunk-6IDMUQ5G.js} +7 -7
- package/dist/{chunk-QLRYO5KT.js → chunk-CHZ2CDKO.js} +24 -11
- package/dist/{chunk-LGVLNWZU.js → chunk-DI7ZLXJS.js} +4 -4
- package/dist/{chunk-XLDLHIVF.js → chunk-FC7PUGAB.js} +2 -2
- package/dist/{chunk-RUAGSZKM.js → chunk-FJ4GQQII.js} +4 -4
- package/dist/{chunk-WT4JHKP5.js → chunk-G2JFNATM.js} +22 -7
- package/dist/{chunk-BBE4ZEEU.js → chunk-IIKSVXBB.js} +5 -5
- package/dist/{chunk-CLUGFX6V.js → chunk-NY3QZZKZ.js} +13 -13
- package/dist/{chunk-VZVGAREJ.js → chunk-OL5GDQRF.js} +27 -17
- package/dist/{chunk-P5KC5F5V.js → chunk-U27RPK5X.js} +16 -5
- package/dist/{chunk-GAIGXDXK.js → chunk-W7FGCGVY.js} +11 -11
- package/dist/{chunk-7BASJP2S.js → chunk-WPLOKPEZ.js} +2 -2
- package/dist/{chunk-XG23WV6C.js → chunk-XNR6XO7P.js} +230 -89
- package/dist/commands/init.js +16 -16
- package/dist/commands/init.test.js +16 -16
- package/dist/{constants-WG7I7G3O.js → constants-MFMCWLIA.js} +4 -2
- package/dist/{custom-oclif-loader-BIG4GFMG.js → custom-oclif-loader-6IOKWJ6W.js} +4 -4
- package/dist/{error-handler-T4BVXIMP.js → error-handler-JKSPE4OA.js} +11 -11
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +7 -7
- package/dist/index.js +2 -2
- package/dist/{lib-3K5QYF3J.js → lib-FYUAIYTL.js} +2 -2
- package/dist/{local-LCGXZ56M.js → local-47FCO6X5.js} +4 -4
- package/dist/{node-package-manager-PPBMXNJX.js → node-package-manager-PFN33NPF.js} +5 -5
- package/dist/prompts/init.js +4 -4
- package/dist/prompts/init.test.js +8 -8
- package/dist/services/init.js +10 -10
- package/dist/{system-EHKKASQN.js → system-25LQSUMI.js} +6 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-RTRXLPXR.js → ui-BR6EA5YP.js} +4 -4
- package/dist/utils/template/cleanup.js +4 -4
- package/dist/utils/template/cleanup.test.js +4 -4
- package/dist/utils/template/npm.js +6 -6
- package/dist/utils/template/npm.test.js +6 -6
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
environmentVariables,
|
|
6
6
|
pathConstants
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2IV4ZS5T.js";
|
|
8
8
|
import {
|
|
9
9
|
cwd,
|
|
10
|
+
dirname,
|
|
10
11
|
joinPath,
|
|
11
12
|
normalizePath,
|
|
12
13
|
relativizePath,
|
|
@@ -22,13 +23,11 @@ import {
|
|
|
22
23
|
import {
|
|
23
24
|
require_brace_expansion,
|
|
24
25
|
require_cross_spawn,
|
|
25
|
-
require_has_flag,
|
|
26
26
|
require_lib,
|
|
27
27
|
require_source,
|
|
28
28
|
require_source_map,
|
|
29
|
-
require_supports_color,
|
|
30
29
|
require_supports_hyperlinks
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OL5GDQRF.js";
|
|
32
31
|
import {
|
|
33
32
|
Queue
|
|
34
33
|
} from "./chunk-522OB3EU.js";
|
|
@@ -4214,6 +4213,208 @@ var require_merge_stream = __commonJS({
|
|
|
4214
4213
|
}
|
|
4215
4214
|
});
|
|
4216
4215
|
|
|
4216
|
+
// ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/posix.js
|
|
4217
|
+
var require_posix = __commonJS({
|
|
4218
|
+
"../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/posix.js"(exports) {
|
|
4219
|
+
"use strict";
|
|
4220
|
+
init_cjs_shims();
|
|
4221
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4222
|
+
exports.sync = exports.isexe = void 0;
|
|
4223
|
+
var fs_1 = __require("fs"), promises_1 = __require("fs/promises"), isexe = async (path7, options = {}) => {
|
|
4224
|
+
let { ignoreErrors = !1 } = options;
|
|
4225
|
+
try {
|
|
4226
|
+
return checkStat(await (0, promises_1.stat)(path7), options);
|
|
4227
|
+
} catch (e) {
|
|
4228
|
+
let er = e;
|
|
4229
|
+
if (ignoreErrors || er.code === "EACCES")
|
|
4230
|
+
return !1;
|
|
4231
|
+
throw er;
|
|
4232
|
+
}
|
|
4233
|
+
};
|
|
4234
|
+
exports.isexe = isexe;
|
|
4235
|
+
var sync = (path7, options = {}) => {
|
|
4236
|
+
let { ignoreErrors = !1 } = options;
|
|
4237
|
+
try {
|
|
4238
|
+
return checkStat((0, fs_1.statSync)(path7), options);
|
|
4239
|
+
} catch (e) {
|
|
4240
|
+
let er = e;
|
|
4241
|
+
if (ignoreErrors || er.code === "EACCES")
|
|
4242
|
+
return !1;
|
|
4243
|
+
throw er;
|
|
4244
|
+
}
|
|
4245
|
+
};
|
|
4246
|
+
exports.sync = sync;
|
|
4247
|
+
var checkStat = (stat, options) => stat.isFile() && checkMode(stat, options), checkMode = (stat, options) => {
|
|
4248
|
+
let myUid = options.uid ?? process.getuid?.(), myGroups = options.groups ?? process.getgroups?.() ?? [], myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
|
|
4249
|
+
if (myUid === void 0 || myGid === void 0)
|
|
4250
|
+
throw new Error("cannot get uid or gid");
|
|
4251
|
+
let groups = /* @__PURE__ */ new Set([myGid, ...myGroups]), mod = stat.mode, uid = stat.uid, gid = stat.gid, u = parseInt("100", 8), g = parseInt("010", 8), o = parseInt("001", 8), ug = u | g;
|
|
4252
|
+
return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);
|
|
4253
|
+
};
|
|
4254
|
+
}
|
|
4255
|
+
});
|
|
4256
|
+
|
|
4257
|
+
// ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/win32.js
|
|
4258
|
+
var require_win32 = __commonJS({
|
|
4259
|
+
"../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/win32.js"(exports) {
|
|
4260
|
+
"use strict";
|
|
4261
|
+
init_cjs_shims();
|
|
4262
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4263
|
+
exports.sync = exports.isexe = void 0;
|
|
4264
|
+
var fs_1 = __require("fs"), promises_1 = __require("fs/promises"), isexe = async (path7, options = {}) => {
|
|
4265
|
+
let { ignoreErrors = !1 } = options;
|
|
4266
|
+
try {
|
|
4267
|
+
return checkStat(await (0, promises_1.stat)(path7), path7, options);
|
|
4268
|
+
} catch (e) {
|
|
4269
|
+
let er = e;
|
|
4270
|
+
if (ignoreErrors || er.code === "EACCES")
|
|
4271
|
+
return !1;
|
|
4272
|
+
throw er;
|
|
4273
|
+
}
|
|
4274
|
+
};
|
|
4275
|
+
exports.isexe = isexe;
|
|
4276
|
+
var sync = (path7, options = {}) => {
|
|
4277
|
+
let { ignoreErrors = !1 } = options;
|
|
4278
|
+
try {
|
|
4279
|
+
return checkStat((0, fs_1.statSync)(path7), path7, options);
|
|
4280
|
+
} catch (e) {
|
|
4281
|
+
let er = e;
|
|
4282
|
+
if (ignoreErrors || er.code === "EACCES")
|
|
4283
|
+
return !1;
|
|
4284
|
+
throw er;
|
|
4285
|
+
}
|
|
4286
|
+
};
|
|
4287
|
+
exports.sync = sync;
|
|
4288
|
+
var checkPathExt = (path7, options) => {
|
|
4289
|
+
let { pathExt = process.env.PATHEXT || "" } = options, peSplit = pathExt.split(";");
|
|
4290
|
+
if (peSplit.indexOf("") !== -1)
|
|
4291
|
+
return !0;
|
|
4292
|
+
for (let i = 0; i < peSplit.length; i++) {
|
|
4293
|
+
let p = peSplit[i].toLowerCase(), ext2 = path7.substring(path7.length - p.length).toLowerCase();
|
|
4294
|
+
if (p && ext2 === p)
|
|
4295
|
+
return !0;
|
|
4296
|
+
}
|
|
4297
|
+
return !1;
|
|
4298
|
+
}, checkStat = (stat, path7, options) => stat.isFile() && checkPathExt(path7, options);
|
|
4299
|
+
}
|
|
4300
|
+
});
|
|
4301
|
+
|
|
4302
|
+
// ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/options.js
|
|
4303
|
+
var require_options = __commonJS({
|
|
4304
|
+
"../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/options.js"(exports) {
|
|
4305
|
+
"use strict";
|
|
4306
|
+
init_cjs_shims();
|
|
4307
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4308
|
+
}
|
|
4309
|
+
});
|
|
4310
|
+
|
|
4311
|
+
// ../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/index.js
|
|
4312
|
+
var require_cjs = __commonJS({
|
|
4313
|
+
"../../node_modules/.pnpm/isexe@3.1.1/node_modules/isexe/dist/cjs/index.js"(exports) {
|
|
4314
|
+
"use strict";
|
|
4315
|
+
init_cjs_shims();
|
|
4316
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4317
|
+
k2 === void 0 && (k2 = k);
|
|
4318
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4319
|
+
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
|
4320
|
+
return m[k];
|
|
4321
|
+
} }), Object.defineProperty(o, k2, desc);
|
|
4322
|
+
} : function(o, m, k, k2) {
|
|
4323
|
+
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
|
4324
|
+
}), __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
4325
|
+
Object.defineProperty(o, "default", { enumerable: !0, value: v });
|
|
4326
|
+
} : function(o, v) {
|
|
4327
|
+
o.default = v;
|
|
4328
|
+
}), __importStar2 = exports && exports.__importStar || function(mod) {
|
|
4329
|
+
if (mod && mod.__esModule)
|
|
4330
|
+
return mod;
|
|
4331
|
+
var result = {};
|
|
4332
|
+
if (mod != null)
|
|
4333
|
+
for (var k in mod)
|
|
4334
|
+
k !== "default" && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding2(result, mod, k);
|
|
4335
|
+
return __setModuleDefault2(result, mod), result;
|
|
4336
|
+
}, __exportStar2 = exports && exports.__exportStar || function(m, exports2) {
|
|
4337
|
+
for (var p in m)
|
|
4338
|
+
p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p) && __createBinding2(exports2, m, p);
|
|
4339
|
+
};
|
|
4340
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4341
|
+
exports.sync = exports.isexe = exports.posix = exports.win32 = void 0;
|
|
4342
|
+
var posix = __importStar2(require_posix());
|
|
4343
|
+
exports.posix = posix;
|
|
4344
|
+
var win32 = __importStar2(require_win32());
|
|
4345
|
+
exports.win32 = win32;
|
|
4346
|
+
__exportStar2(require_options(), exports);
|
|
4347
|
+
var platform2 = process.env._ISEXE_TEST_PLATFORM_ || process.platform, impl = platform2 === "win32" ? win32 : posix;
|
|
4348
|
+
exports.isexe = impl.isexe;
|
|
4349
|
+
exports.sync = impl.sync;
|
|
4350
|
+
}
|
|
4351
|
+
});
|
|
4352
|
+
|
|
4353
|
+
// ../../node_modules/.pnpm/which@4.0.0/node_modules/which/lib/index.js
|
|
4354
|
+
var require_lib2 = __commonJS({
|
|
4355
|
+
"../../node_modules/.pnpm/which@4.0.0/node_modules/which/lib/index.js"(exports, module) {
|
|
4356
|
+
init_cjs_shims();
|
|
4357
|
+
var { isexe, sync: isexeSync } = require_cjs(), { join: join2, delimiter, sep: sep2, posix } = __require("path"), isWindows2 = process.platform === "win32", rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1")), rRel = new RegExp(`^\\.${rSlash.source}`), getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), getPathInfo = (cmd, {
|
|
4358
|
+
path: optPath = process.env.PATH,
|
|
4359
|
+
pathExt: optPathExt = process.env.PATHEXT,
|
|
4360
|
+
delimiter: optDelimiter = delimiter
|
|
4361
|
+
}) => {
|
|
4362
|
+
let pathEnv = cmd.match(rSlash) ? [""] : [
|
|
4363
|
+
// windows always checks the cwd first
|
|
4364
|
+
...isWindows2 ? [process.cwd()] : [],
|
|
4365
|
+
...(optPath || /* istanbul ignore next: very unusual */
|
|
4366
|
+
"").split(optDelimiter)
|
|
4367
|
+
];
|
|
4368
|
+
if (isWindows2) {
|
|
4369
|
+
let pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter), pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
|
|
4370
|
+
return cmd.includes(".") && pathExt[0] !== "" && pathExt.unshift(""), { pathEnv, pathExt, pathExtExe };
|
|
4371
|
+
}
|
|
4372
|
+
return { pathEnv, pathExt: [""] };
|
|
4373
|
+
}, getPathPart = (raw, cmd) => {
|
|
4374
|
+
let pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
|
|
4375
|
+
return (!pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "") + join2(pathPart, cmd);
|
|
4376
|
+
}, which2 = async (cmd, opt = {}) => {
|
|
4377
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
|
|
4378
|
+
for (let envPart of pathEnv) {
|
|
4379
|
+
let p = getPathPart(envPart, cmd);
|
|
4380
|
+
for (let ext2 of pathExt) {
|
|
4381
|
+
let withExt = p + ext2;
|
|
4382
|
+
if (await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: !0 })) {
|
|
4383
|
+
if (!opt.all)
|
|
4384
|
+
return withExt;
|
|
4385
|
+
found.push(withExt);
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
4389
|
+
if (opt.all && found.length)
|
|
4390
|
+
return found;
|
|
4391
|
+
if (opt.nothrow)
|
|
4392
|
+
return null;
|
|
4393
|
+
throw getNotFoundError(cmd);
|
|
4394
|
+
}, whichSync = (cmd, opt = {}) => {
|
|
4395
|
+
let { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt), found = [];
|
|
4396
|
+
for (let pathEnvPart of pathEnv) {
|
|
4397
|
+
let p = getPathPart(pathEnvPart, cmd);
|
|
4398
|
+
for (let ext2 of pathExt) {
|
|
4399
|
+
let withExt = p + ext2;
|
|
4400
|
+
if (isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: !0 })) {
|
|
4401
|
+
if (!opt.all)
|
|
4402
|
+
return withExt;
|
|
4403
|
+
found.push(withExt);
|
|
4404
|
+
}
|
|
4405
|
+
}
|
|
4406
|
+
}
|
|
4407
|
+
if (opt.all && found.length)
|
|
4408
|
+
return found;
|
|
4409
|
+
if (opt.nothrow)
|
|
4410
|
+
return null;
|
|
4411
|
+
throw getNotFoundError(cmd);
|
|
4412
|
+
};
|
|
4413
|
+
module.exports = which2;
|
|
4414
|
+
which2.sync = whichSync;
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
|
|
4217
4418
|
// ../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/util.js
|
|
4218
4419
|
var require_util = __commonJS({
|
|
4219
4420
|
"../../node_modules/.pnpm/macaddress@0.5.3/node_modules/macaddress/lib/util.js"(exports, module) {
|
|
@@ -20838,73 +21039,6 @@ var require_dist16 = __commonJS({
|
|
|
20838
21039
|
}
|
|
20839
21040
|
});
|
|
20840
21041
|
|
|
20841
|
-
// ../../node_modules/.pnpm/supports-hyperlinks@3.0.0/node_modules/supports-hyperlinks/index.js
|
|
20842
|
-
var require_supports_hyperlinks2 = __commonJS({
|
|
20843
|
-
"../../node_modules/.pnpm/supports-hyperlinks@3.0.0/node_modules/supports-hyperlinks/index.js"(exports, module) {
|
|
20844
|
-
"use strict";
|
|
20845
|
-
init_cjs_shims();
|
|
20846
|
-
var supportsColor3 = require_supports_color(), hasFlag2 = require_has_flag();
|
|
20847
|
-
function parseVersion(versionString) {
|
|
20848
|
-
if (/^\d{3,4}$/.test(versionString)) {
|
|
20849
|
-
let m = /(\d{1,2})(\d{2})/.exec(versionString) || [];
|
|
20850
|
-
return {
|
|
20851
|
-
major: 0,
|
|
20852
|
-
minor: parseInt(m[1], 10),
|
|
20853
|
-
patch: parseInt(m[2], 10)
|
|
20854
|
-
};
|
|
20855
|
-
}
|
|
20856
|
-
let versions = (versionString || "").split(".").map((n) => parseInt(n, 10));
|
|
20857
|
-
return {
|
|
20858
|
-
major: versions[0],
|
|
20859
|
-
minor: versions[1],
|
|
20860
|
-
patch: versions[2]
|
|
20861
|
-
};
|
|
20862
|
-
}
|
|
20863
|
-
function supportsHyperlink(stream2) {
|
|
20864
|
-
let {
|
|
20865
|
-
CI,
|
|
20866
|
-
FORCE_HYPERLINK,
|
|
20867
|
-
NETLIFY,
|
|
20868
|
-
TEAMCITY_VERSION,
|
|
20869
|
-
TERM_PROGRAM,
|
|
20870
|
-
TERM_PROGRAM_VERSION,
|
|
20871
|
-
VTE_VERSION
|
|
20872
|
-
} = process.env;
|
|
20873
|
-
if (FORCE_HYPERLINK)
|
|
20874
|
-
return !(FORCE_HYPERLINK.length > 0 && parseInt(FORCE_HYPERLINK, 10) === 0);
|
|
20875
|
-
if (hasFlag2("no-hyperlink") || hasFlag2("no-hyperlinks") || hasFlag2("hyperlink=false") || hasFlag2("hyperlink=never"))
|
|
20876
|
-
return !1;
|
|
20877
|
-
if (hasFlag2("hyperlink=true") || hasFlag2("hyperlink=always") || NETLIFY)
|
|
20878
|
-
return !0;
|
|
20879
|
-
if (!supportsColor3.supportsColor(stream2) || stream2 && !stream2.isTTY || process.platform === "win32" || CI || TEAMCITY_VERSION)
|
|
20880
|
-
return !1;
|
|
20881
|
-
if (TERM_PROGRAM) {
|
|
20882
|
-
let version = parseVersion(TERM_PROGRAM_VERSION || "");
|
|
20883
|
-
switch (TERM_PROGRAM) {
|
|
20884
|
-
case "iTerm.app":
|
|
20885
|
-
return version.major === 3 ? version.minor >= 1 : version.major > 3;
|
|
20886
|
-
case "WezTerm":
|
|
20887
|
-
return version.major >= 20200620;
|
|
20888
|
-
case "vscode":
|
|
20889
|
-
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
20890
|
-
}
|
|
20891
|
-
}
|
|
20892
|
-
if (VTE_VERSION) {
|
|
20893
|
-
if (VTE_VERSION === "0.50.0")
|
|
20894
|
-
return !1;
|
|
20895
|
-
let version = parseVersion(VTE_VERSION);
|
|
20896
|
-
return version.major > 0 || version.minor >= 50;
|
|
20897
|
-
}
|
|
20898
|
-
return !1;
|
|
20899
|
-
}
|
|
20900
|
-
module.exports = {
|
|
20901
|
-
supportsHyperlink,
|
|
20902
|
-
stdout: supportsHyperlink(process.stdout),
|
|
20903
|
-
stderr: supportsHyperlink(process.stderr)
|
|
20904
|
-
};
|
|
20905
|
-
}
|
|
20906
|
-
});
|
|
20907
|
-
|
|
20908
21042
|
// ../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/helpers.js
|
|
20909
21043
|
var require_helpers = __commonJS({
|
|
20910
21044
|
"../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/helpers.js"(exports) {
|
|
@@ -20956,7 +21090,7 @@ var require_helpers = __commonJS({
|
|
|
20956
21090
|
});
|
|
20957
21091
|
|
|
20958
21092
|
// ../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/cjs.js
|
|
20959
|
-
var
|
|
21093
|
+
var require_cjs2 = __commonJS({
|
|
20960
21094
|
"../../node_modules/.pnpm/ts-error@1.0.6/node_modules/ts-error/lib/cjs.js"(exports) {
|
|
20961
21095
|
"use strict";
|
|
20962
21096
|
init_cjs_shims();
|
|
@@ -23941,22 +24075,22 @@ var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/, regExpEscape2 = (s) => s.replace(/[-[
|
|
|
23941
24075
|
return globParts.filter((gs) => gs.length);
|
|
23942
24076
|
}
|
|
23943
24077
|
partsMatch(a, b, emptyGSMatch = !1) {
|
|
23944
|
-
let ai = 0, bi = 0, result = [],
|
|
24078
|
+
let ai = 0, bi = 0, result = [], which2 = "";
|
|
23945
24079
|
for (; ai < a.length && bi < b.length; )
|
|
23946
24080
|
if (a[ai] === b[bi])
|
|
23947
|
-
result.push(
|
|
24081
|
+
result.push(which2 === "b" ? b[bi] : a[ai]), ai++, bi++;
|
|
23948
24082
|
else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1])
|
|
23949
24083
|
result.push(a[ai]), ai++;
|
|
23950
24084
|
else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1])
|
|
23951
24085
|
result.push(b[bi]), bi++;
|
|
23952
24086
|
else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
23953
|
-
if (
|
|
24087
|
+
if (which2 === "b")
|
|
23954
24088
|
return !1;
|
|
23955
|
-
|
|
24089
|
+
which2 = "a", result.push(a[ai]), ai++, bi++;
|
|
23956
24090
|
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
23957
|
-
if (
|
|
24091
|
+
if (which2 === "a")
|
|
23958
24092
|
return !1;
|
|
23959
|
-
|
|
24093
|
+
which2 = "b", result.push(b[bi]), ai++, bi++;
|
|
23960
24094
|
} else
|
|
23961
24095
|
return !1;
|
|
23962
24096
|
return a.length === b.length && result;
|
|
@@ -25132,6 +25266,7 @@ function create$(options) {
|
|
|
25132
25266
|
var $ = create$();
|
|
25133
25267
|
|
|
25134
25268
|
// ../cli-kit/src/public/node/system.ts
|
|
25269
|
+
var import_which = __toESM(require_lib2(), 1);
|
|
25135
25270
|
async function openURL(url) {
|
|
25136
25271
|
await (await import("./open-MZGVNFZO.js")).default(url);
|
|
25137
25272
|
}
|
|
@@ -25161,7 +25296,7 @@ async function exec2(command, args, options) {
|
|
|
25161
25296
|
}
|
|
25162
25297
|
function buildExec(command, args, options) {
|
|
25163
25298
|
let env2 = options?.env ?? process.env;
|
|
25164
|
-
shouldDisplayColors() && (env2.FORCE_COLOR = "1");
|
|
25299
|
+
shouldDisplayColors() && (env2.FORCE_COLOR = "1"), checkCommandSafety(command);
|
|
25165
25300
|
let commandProcess = execa(command, args, {
|
|
25166
25301
|
env: env2,
|
|
25167
25302
|
cwd: options?.cwd,
|
|
@@ -25180,13 +25315,19 @@ Running system process:
|
|
|
25180
25315
|
\xB7 Working directory: ${options?.cwd ?? cwd()}
|
|
25181
25316
|
`), commandProcess;
|
|
25182
25317
|
}
|
|
25318
|
+
function checkCommandSafety(command) {
|
|
25319
|
+
if (dirname(import_which.default.sync(command)) === cwd()) {
|
|
25320
|
+
let headline = ["Skipped run of unsecure binary", { command }, "found in the current directory."], body = "Please remove that file or review your current PATH.";
|
|
25321
|
+
throw renderWarning({ headline, body }), new AbortError(headline, body);
|
|
25322
|
+
}
|
|
25323
|
+
}
|
|
25183
25324
|
async function sleep(seconds) {
|
|
25184
25325
|
return new Promise((resolve) => {
|
|
25185
25326
|
setTimeout(resolve, 1e3 * seconds);
|
|
25186
25327
|
});
|
|
25187
25328
|
}
|
|
25188
|
-
function
|
|
25189
|
-
return isTruthy(
|
|
25329
|
+
function terminalSupportsPrompting() {
|
|
25330
|
+
return isTruthy(process.env.CI) ? !1 : !!(process.stdin.isTTY && process.stdout.isTTY);
|
|
25190
25331
|
}
|
|
25191
25332
|
|
|
25192
25333
|
// ../cli-kit/src/private/node/context/spin-cache.ts
|
|
@@ -25377,7 +25518,7 @@ async function installGlobalShopifyCLI(packageManager) {
|
|
|
25377
25518
|
outputInfo(`Running ${packageManager} ${args.join(" ")}...`), await exec2(packageManager, args, { stdio: "inherit" });
|
|
25378
25519
|
}
|
|
25379
25520
|
async function installGlobalCLIPrompt() {
|
|
25380
|
-
return
|
|
25521
|
+
return terminalSupportsPrompting() ? await isGlobalCLIInstalled() ? { install: !1, alreadyInstalled: !0 } : { install: await renderSelectPrompt({
|
|
25381
25522
|
message: "We recommend installing Shopify CLI globally in your system. Would you like to install it now?",
|
|
25382
25523
|
choices: [
|
|
25383
25524
|
{ value: "yes", label: "Yes" },
|
|
@@ -29299,7 +29440,7 @@ var import_react23 = __toESM(require_react(), 1), LinksContext = import_react23.
|
|
|
29299
29440
|
|
|
29300
29441
|
// ../cli-kit/src/private/node/ui/components/Link.tsx
|
|
29301
29442
|
var import_react24 = __toESM(require_react(), 1);
|
|
29302
|
-
var import_supports_hyperlinks2 = __toESM(
|
|
29443
|
+
var import_supports_hyperlinks2 = __toESM(require_supports_hyperlinks(), 1);
|
|
29303
29444
|
function link(label, url, linksContext) {
|
|
29304
29445
|
if (!import_supports_hyperlinks2.default.stdout) {
|
|
29305
29446
|
if (linksContext === null)
|
|
@@ -29577,7 +29718,7 @@ function shouldDisplayColors(_process = process) {
|
|
|
29577
29718
|
}
|
|
29578
29719
|
|
|
29579
29720
|
// ../cli-kit/src/public/node/error.ts
|
|
29580
|
-
var import_core2 = __toESM(require_lib(), 1), import_ts_error = __toESM(
|
|
29721
|
+
var import_core2 = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs2(), 1);
|
|
29581
29722
|
var CancelExecution = class extends Error {
|
|
29582
29723
|
}, FatalError = class extends Error {
|
|
29583
29724
|
/**
|
|
@@ -29681,7 +29822,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
29681
29822
|
try {
|
|
29682
29823
|
await getAndSet();
|
|
29683
29824
|
} catch (error) {
|
|
29684
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
29825
|
+
let { sendErrorToBugsnag } = await import("./error-handler-JKSPE4OA.js");
|
|
29685
29826
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
29686
29827
|
}
|
|
29687
29828
|
}, durationStack = [];
|
|
@@ -31304,7 +31445,7 @@ var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOpti
|
|
|
31304
31445
|
stdin.setRawMode(!0), stdin.once("data", handler2), stdin.ref();
|
|
31305
31446
|
})));
|
|
31306
31447
|
function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions } = {}) {
|
|
31307
|
-
return !!(uiDebugOptions.skipTTYCheck || stdin ||
|
|
31448
|
+
return !!(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsPrompting());
|
|
31308
31449
|
}
|
|
31309
31450
|
function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
|
|
31310
31451
|
if (isTTY({ stdin, uiDebugOptions }))
|
|
@@ -31313,7 +31454,7 @@ function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
|
|
|
31313
31454
|
|
|
31314
31455
|
${outputContent`${outputToken.cyan(promptText)}`.value}
|
|
31315
31456
|
|
|
31316
|
-
This usually happens when running a command non-interactively, for example in a CI environment, or when piping
|
|
31457
|
+
This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;
|
|
31317
31458
|
throw new AbortError(
|
|
31318
31459
|
errorMessage,
|
|
31319
31460
|
"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal."
|
|
@@ -31368,7 +31509,7 @@ export {
|
|
|
31368
31509
|
captureOutput,
|
|
31369
31510
|
exec2 as exec,
|
|
31370
31511
|
sleep,
|
|
31371
|
-
|
|
31512
|
+
terminalSupportsPrompting,
|
|
31372
31513
|
isSpinEnvironment,
|
|
31373
31514
|
isTerminalInteractive,
|
|
31374
31515
|
homeDirectory,
|
|
@@ -31505,4 +31646,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
31505
31646
|
* LICENSE file in the root directory of this source tree.
|
|
31506
31647
|
*)
|
|
31507
31648
|
*/
|
|
31508
|
-
//# sourceMappingURL=chunk-
|
|
31649
|
+
//# sourceMappingURL=chunk-XNR6XO7P.js.map
|
package/dist/commands/init.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Init
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-W7FGCGVY.js";
|
|
4
|
+
import "../chunk-CHZ2CDKO.js";
|
|
5
5
|
import "../chunk-O5K4AU7Q.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6IDMUQ5G.js";
|
|
7
|
+
import "../chunk-FC7PUGAB.js";
|
|
8
|
+
import "../chunk-3VT3NKCG.js";
|
|
9
|
+
import "../chunk-G2JFNATM.js";
|
|
10
|
+
import "../chunk-NY3QZZKZ.js";
|
|
11
11
|
import "../chunk-VSLR7ET4.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-DI7ZLXJS.js";
|
|
13
|
+
import "../chunk-4W4U5QAX.js";
|
|
14
|
+
import "../chunk-WPLOKPEZ.js";
|
|
15
|
+
import "../chunk-U27RPK5X.js";
|
|
16
|
+
import "../chunk-IIKSVXBB.js";
|
|
17
|
+
import "../chunk-FJ4GQQII.js";
|
|
18
|
+
import "../chunk-XNR6XO7P.js";
|
|
19
19
|
import "../chunk-XVNW332R.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-2IV4ZS5T.js";
|
|
21
21
|
import "../chunk-4DRC2PSU.js";
|
|
22
22
|
import "../chunk-LTDD2GRL.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-OL5GDQRF.js";
|
|
24
24
|
import "../chunk-6A7MXLVB.js";
|
|
25
25
|
import "../chunk-ZAUZQLNO.js";
|
|
26
26
|
import "../chunk-UBB7JKND.js";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Init
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-W7FGCGVY.js";
|
|
4
4
|
import {
|
|
5
5
|
errorHandler
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-CHZ2CDKO.js";
|
|
7
7
|
import "../chunk-O5K4AU7Q.js";
|
|
8
8
|
import {
|
|
9
9
|
init_default
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-6IDMUQ5G.js";
|
|
11
|
+
import "../chunk-FC7PUGAB.js";
|
|
12
|
+
import "../chunk-3VT3NKCG.js";
|
|
13
|
+
import "../chunk-G2JFNATM.js";
|
|
14
|
+
import "../chunk-NY3QZZKZ.js";
|
|
15
15
|
import "../chunk-VSLR7ET4.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-DI7ZLXJS.js";
|
|
17
|
+
import "../chunk-4W4U5QAX.js";
|
|
18
|
+
import "../chunk-WPLOKPEZ.js";
|
|
19
|
+
import "../chunk-U27RPK5X.js";
|
|
20
|
+
import "../chunk-IIKSVXBB.js";
|
|
21
21
|
import {
|
|
22
22
|
init_exports,
|
|
23
23
|
visibleTemplates
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-FJ4GQQII.js";
|
|
25
25
|
import {
|
|
26
26
|
AbortError,
|
|
27
27
|
outputContent,
|
|
28
28
|
outputToken
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-XNR6XO7P.js";
|
|
30
30
|
import "../chunk-XVNW332R.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-2IV4ZS5T.js";
|
|
32
32
|
import "../chunk-4DRC2PSU.js";
|
|
33
33
|
import "../chunk-LTDD2GRL.js";
|
|
34
34
|
import {
|
|
35
35
|
require_lib
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-OL5GDQRF.js";
|
|
37
37
|
import "../chunk-6A7MXLVB.js";
|
|
38
38
|
import "../chunk-ZAUZQLNO.js";
|
|
39
39
|
import "../chunk-UBB7JKND.js";
|
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
environmentVariables,
|
|
5
5
|
logsFolder,
|
|
6
6
|
pathConstants,
|
|
7
|
+
reportingRateLimit,
|
|
7
8
|
sessionConstants,
|
|
8
9
|
systemEnvironmentVariables
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2IV4ZS5T.js";
|
|
10
11
|
import "./chunk-4DRC2PSU.js";
|
|
11
12
|
import "./chunk-PNN7RS7Y.js";
|
|
12
13
|
import "./chunk-POZ5MGPT.js";
|
|
@@ -16,7 +17,8 @@ export {
|
|
|
16
17
|
environmentVariables,
|
|
17
18
|
logsFolder,
|
|
18
19
|
pathConstants,
|
|
20
|
+
reportingRateLimit,
|
|
19
21
|
sessionConstants,
|
|
20
22
|
systemEnvironmentVariables
|
|
21
23
|
};
|
|
22
|
-
//# sourceMappingURL=constants-
|
|
24
|
+
//# sourceMappingURL=constants-MFMCWLIA.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XNR6XO7P.js";
|
|
5
5
|
import "./chunk-XVNW332R.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-2IV4ZS5T.js";
|
|
7
7
|
import {
|
|
8
8
|
cwd,
|
|
9
9
|
joinPath,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import "./chunk-LTDD2GRL.js";
|
|
13
13
|
import {
|
|
14
14
|
require_lib
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OL5GDQRF.js";
|
|
16
16
|
import "./chunk-6A7MXLVB.js";
|
|
17
17
|
import "./chunk-ZAUZQLNO.js";
|
|
18
18
|
import "./chunk-UBB7JKND.js";
|
|
@@ -44,4 +44,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
44
44
|
export {
|
|
45
45
|
ShopifyConfig
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
47
|
+
//# sourceMappingURL=custom-oclif-loader-6IOKWJ6W.js.map
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CHZ2CDKO.js";
|
|
8
8
|
import "./chunk-O5K4AU7Q.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-G2JFNATM.js";
|
|
10
|
+
import "./chunk-NY3QZZKZ.js";
|
|
11
11
|
import "./chunk-VSLR7ET4.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-DI7ZLXJS.js";
|
|
13
|
+
import "./chunk-4W4U5QAX.js";
|
|
14
|
+
import "./chunk-WPLOKPEZ.js";
|
|
15
|
+
import "./chunk-U27RPK5X.js";
|
|
16
|
+
import "./chunk-XNR6XO7P.js";
|
|
17
17
|
import "./chunk-XVNW332R.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-2IV4ZS5T.js";
|
|
19
19
|
import "./chunk-4DRC2PSU.js";
|
|
20
20
|
import "./chunk-LTDD2GRL.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OL5GDQRF.js";
|
|
22
22
|
import "./chunk-6A7MXLVB.js";
|
|
23
23
|
import "./chunk-ZAUZQLNO.js";
|
|
24
24
|
import "./chunk-UBB7JKND.js";
|
|
@@ -32,4 +32,4 @@ export {
|
|
|
32
32
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
33
33
|
sendErrorToBugsnag
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=error-handler-
|
|
35
|
+
//# sourceMappingURL=error-handler-JKSPE4OA.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reportAnalyticsEvent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-G2JFNATM.js";
|
|
4
|
+
import "../chunk-NY3QZZKZ.js";
|
|
5
5
|
import "../chunk-VSLR7ET4.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-DI7ZLXJS.js";
|
|
7
|
+
import "../chunk-4W4U5QAX.js";
|
|
8
|
+
import "../chunk-WPLOKPEZ.js";
|
|
9
|
+
import "../chunk-U27RPK5X.js";
|
|
10
10
|
import {
|
|
11
11
|
addSensitiveMetadata,
|
|
12
12
|
getAllSensitiveMetadata,
|
|
13
13
|
outputDebug,
|
|
14
14
|
renderWarning
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-XNR6XO7P.js";
|
|
16
16
|
import "../chunk-XVNW332R.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-2IV4ZS5T.js";
|
|
18
18
|
import "../chunk-4DRC2PSU.js";
|
|
19
19
|
import "../chunk-LTDD2GRL.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-OL5GDQRF.js";
|
|
21
21
|
import "../chunk-6A7MXLVB.js";
|
|
22
22
|
import "../chunk-ZAUZQLNO.js";
|
|
23
23
|
import "../chunk-UBB7JKND.js";
|