@shopify/cli 3.73.1 → 3.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dev-console/extensions/dev-console/assets/{index-D7F9wNys.js → index-lyGm6l3x.js} +12 -12
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/assets/speedscope/SourceCodePro-Regular.ttf.f546cbe0.woff2 +0 -0
- package/dist/assets/speedscope/demangle-cpp.1768f4cc.js +4 -0
- package/dist/assets/speedscope/favicon-16x16.f74b3187.png +0 -0
- package/dist/assets/speedscope/favicon-32x32.bc503437.png +0 -0
- package/dist/assets/speedscope/file-format-schema.json +324 -0
- package/dist/assets/speedscope/import.bcbb2033.js +123 -0
- package/dist/assets/speedscope/index.html +2 -0
- package/dist/assets/speedscope/perf-vertx-stacks-01-collapsed-all.2681da68.txt +199 -0
- package/dist/assets/speedscope/release.txt +3 -0
- package/dist/assets/speedscope/reset.8c46b7a1.css +2 -0
- package/dist/assets/speedscope/source-code-pro.52b1676f.css +2 -0
- package/dist/assets/speedscope/source-code-pro.LICENSE.md +93 -0
- package/dist/assets/speedscope/source-map.438fa06b.js +24 -0
- package/dist/assets/speedscope/speedscope.6f107512.js +193 -0
- package/dist/{chokidar-5LLC6S6D.js → chokidar-BLUAYFAB.js} +13 -1044
- package/dist/chokidar-OATAHMV6.js +1122 -0
- package/dist/{chunk-PWMEMGZN.js → chunk-2GCE2GUM.js} +3 -3
- package/dist/chunk-3I3GQNEW.js +95 -0
- package/dist/{chunk-OFYEMT6X.js → chunk-4QRIOWN3.js} +2 -2
- package/dist/{chunk-TIXENOYB.js → chunk-4W33LVQQ.js} +3 -3
- package/dist/{chunk-PVMQM44E.js → chunk-53WQGP7S.js} +4 -4
- package/dist/chunk-57Q6OQG4.js +111 -0
- package/dist/{chunk-MHUINF7I.js → chunk-5CLGH5PH.js} +2 -2
- package/dist/{chunk-CRHXI6PS.js → chunk-5DBS6QOU.js} +102 -638
- package/dist/{chunk-SNXQ36U2.js → chunk-5JC3BUPR.js} +3 -3
- package/dist/{chunk-3UQTWISO.js → chunk-5JWRABV2.js} +8 -8
- package/dist/{chunk-4SP4IRCQ.js → chunk-6JNRBEP6.js} +7 -9
- package/dist/{chunk-NHV2E73I.js → chunk-76NEANNG.js} +6442 -3165
- package/dist/{chunk-X4N2QZOS.js → chunk-7T4EKFVU.js} +16 -2
- package/dist/{chunk-I72O5WWR.js → chunk-ACIVN2Q4.js} +502 -699
- package/dist/{chunk-ZX3L2JKV.js → chunk-AKL7T64Q.js} +80 -133
- package/dist/{chunk-YVXC5Q6R.js → chunk-B27LGWRZ.js} +3 -3
- package/dist/{chunk-BUFIEXZ5.js → chunk-B3YWYURY.js} +701 -141
- package/dist/{chunk-X5WKMCE4.js → chunk-BWBSJLZN.js} +333 -156
- package/dist/{chunk-K7HGDAI4.js → chunk-CDBXAE2F.js} +20 -104
- package/dist/{chunk-SBPFWO4S.js → chunk-CDQA3SST.js} +56182 -37290
- package/dist/chunk-CP3BRHWK.js +33 -0
- package/dist/{chunk-RZOW7U2N.js → chunk-D5AR5HKB.js} +2 -2
- package/dist/chunk-EMPP4I5H.js +497 -0
- package/dist/{chunk-DZHO64DX.js → chunk-FCWD4NEK.js} +3 -3
- package/dist/{chunk-7JQIHXLD.js → chunk-FMXC2O6H.js} +2 -2
- package/dist/{chunk-P63UVLRS.js → chunk-GVMUVIT5.js} +7 -7
- package/dist/{chunk-KUM3DVPF.js → chunk-HMDWNGIV.js} +142 -471
- package/dist/{chunk-MJWFXPPX.js → chunk-I6YWZKVU.js} +2 -2
- package/dist/{chunk-MLL3JKVY.js → chunk-IYQNHNNP.js} +4 -4
- package/dist/{chunk-QIM24FVT.js → chunk-JWRRKMF2.js} +2 -2
- package/dist/{chunk-OXS42VB7.js → chunk-L3FVJFIT.js} +498 -412
- package/dist/{chunk-HIQDOFZI.js → chunk-LH6BHL6J.js} +3 -3
- package/dist/{chunk-OAZFIMJ3.js → chunk-LQ2ZKVR6.js} +45 -115
- package/dist/{chunk-4UAFBJXJ.js → chunk-MDJOXUMQ.js} +4 -4
- package/dist/{chunk-EKIVYQZC.js → chunk-MSBZRBI5.js} +4 -4
- package/dist/{chunk-3HBRMIPY.js → chunk-MW7RWHY5.js} +341 -211
- package/dist/{chunk-GLYEBL66.js → chunk-NUW6LQU4.js} +4 -4
- package/dist/{chunk-LPBV67AA.js → chunk-PMOQBQSE.js} +3 -3
- package/dist/{chunk-NQZUE7SY.js → chunk-QEUQO265.js} +5 -7
- package/dist/chunk-QRARFXIM.js +1137 -0
- package/dist/{chunk-KD7WMX4J.js → chunk-R7RENZQC.js} +3 -3
- package/dist/chunk-UB7RN523.js +15933 -0
- package/dist/{chunk-O72ZUVEA.js → chunk-VI4NVMJH.js} +2 -2
- package/dist/{chunk-RDZJQNFU.js → chunk-WBTJ7MQU.js} +3 -3
- package/dist/{chunk-CXHISGHD.js → chunk-WKO4CJCL.js} +5 -7
- package/dist/{chunk-6NZVGPSV.js → chunk-WNUVUNTL.js} +41 -23
- package/dist/{chunk-RBLSG22M.js → chunk-XBIDXV7B.js} +4 -4
- package/dist/{chunk-PBDGN4T2.js → chunk-XJNTFQIK.js} +5 -5
- package/dist/cli/commands/auth/logout.js +20 -19
- package/dist/cli/commands/auth/logout.test.js +22 -21
- package/dist/cli/commands/cache/clear.js +19 -18
- package/dist/cli/commands/debug/command-flags.js +19 -18
- package/dist/cli/commands/docs/generate.js +19 -18
- package/dist/cli/commands/docs/generate.test.js +20 -19
- package/dist/cli/commands/help.js +19 -18
- package/dist/cli/commands/kitchen-sink/async.js +20 -19
- package/dist/cli/commands/kitchen-sink/async.test.js +21 -20
- package/dist/cli/commands/kitchen-sink/index.js +22 -21
- package/dist/cli/commands/kitchen-sink/index.test.js +23 -22
- package/dist/cli/commands/kitchen-sink/prompts.js +20 -19
- package/dist/cli/commands/kitchen-sink/prompts.test.js +21 -20
- package/dist/cli/commands/kitchen-sink/static.js +20 -19
- package/dist/cli/commands/kitchen-sink/static.test.js +21 -20
- package/dist/cli/commands/notifications/generate.js +20 -19
- package/dist/cli/commands/notifications/list.js +20 -19
- package/dist/cli/commands/search.js +20 -19
- package/dist/cli/commands/upgrade.js +20 -19
- package/dist/cli/commands/upgrade.test.js +2 -1
- package/dist/cli/commands/version.js +20 -19
- package/dist/cli/commands/version.test.js +21 -20
- package/dist/cli/services/commands/notifications.js +14 -13
- package/dist/cli/services/commands/search.js +9 -8
- package/dist/cli/services/commands/search.test.js +10 -9
- package/dist/cli/services/commands/version.js +10 -9
- package/dist/cli/services/commands/version.test.js +12 -11
- package/dist/cli/services/kitchen-sink/async.js +9 -8
- package/dist/cli/services/kitchen-sink/prompts.js +9 -8
- package/dist/cli/services/kitchen-sink/static.js +9 -8
- package/dist/cli/services/upgrade.d.ts +0 -1
- package/dist/cli/services/upgrade.js +11 -10
- package/dist/cli/services/upgrade.test.js +14 -13
- package/dist/configs/all.yml +6 -0
- package/dist/configs/recommended.yml +6 -0
- package/dist/{custom-oclif-loader-L4JT3EUD.js → custom-oclif-loader-ZY5GUSB3.js} +9 -8
- package/dist/{del-P2RS6GN2.js → del-FBU5JYXS.js} +4 -4
- package/dist/{devtools-K7FXBBFZ.js → devtools-6LOQORRT.js} +2 -2
- package/dist/{error-handler-4CU3ZOV7.js → error-handler-YRN4E6SY.js} +17 -16
- package/dist/hooks/postrun.js +18 -16
- package/dist/hooks/prerun.js +15 -14
- package/dist/{http-proxy-FXWKYHZ3.js → http-proxy-L3MCJRQS.js} +3 -2
- package/dist/index.js +18723 -17426
- package/dist/lib-E2DSNKUX.js +13 -0
- package/dist/{local-2K66O4X2.js → local-VTZT5Q4L.js} +11 -10
- package/dist/{morph-OSHCID2F.js → morph-ACVSDUS7.js} +3 -3
- package/dist/{node-342GUJIM.js → node-ONVZF27D.js} +23 -20
- package/dist/{node-package-manager-RJSBCFD7.js → node-package-manager-BZNXJETD.js} +11 -10
- package/dist/{npa-TM76BGG3.js → npa-JAX2F6CO.js} +2 -2
- package/dist/out-AZBX4ITJ.js +7 -0
- package/dist/{path-2HZUSAGR.js → path-2K5HIMHZ.js} +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-YBLW4B72.js → ui-3RKZNTJR.js} +9 -8
- package/dist/{workerd-5KR5CP5F.js → workerd-PSNADDQA.js} +23 -20
- package/oclif.manifest.json +103 -2
- package/package.json +9 -9
- package/LICENSE +0 -8
- package/dist/chunk-5YYJVU2L.js +0 -15746
- package/dist/chunk-HYVCBINV.js +0 -3811
- package/dist/lib-QZGSY5YB.js +0 -13
- package/dist/out-JR4DWQ2G.js +0 -7
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cgb-oKsM.css → index-n8yr6cxq.css} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
list
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QEUQO265.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6JNRBEP6.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var List = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
List
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-2GCE2GUM.js.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS,
|
|
3
|
+
__require,
|
|
4
|
+
init_cjs_shims
|
|
5
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
8
|
+
var require_has_flag = __commonJS({
|
|
9
|
+
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
|
|
10
|
+
"use strict";
|
|
11
|
+
init_cjs_shims();
|
|
12
|
+
module.exports = (flag, argv = process.argv) => {
|
|
13
|
+
let prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--", position = argv.indexOf(prefix + flag), terminatorPosition = argv.indexOf("--");
|
|
14
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
// ../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js
|
|
20
|
+
var require_supports_color = __commonJS({
|
|
21
|
+
"../../node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js"(exports, module) {
|
|
22
|
+
"use strict";
|
|
23
|
+
init_cjs_shims();
|
|
24
|
+
var os = __require("os"), tty = __require("tty"), hasFlag = require_has_flag(), { env } = process, flagForceColor;
|
|
25
|
+
hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never") ? flagForceColor = 0 : (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) && (flagForceColor = 1);
|
|
26
|
+
function envForceColor() {
|
|
27
|
+
if ("FORCE_COLOR" in env)
|
|
28
|
+
return env.FORCE_COLOR === "true" ? 1 : env.FORCE_COLOR === "false" ? 0 : env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
29
|
+
}
|
|
30
|
+
function translateLevel(level) {
|
|
31
|
+
return level === 0 ? !1 : {
|
|
32
|
+
level,
|
|
33
|
+
hasBasic: !0,
|
|
34
|
+
has256: level >= 2,
|
|
35
|
+
has16m: level >= 3
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = !0 } = {}) {
|
|
39
|
+
let noFlagForceColor = envForceColor();
|
|
40
|
+
noFlagForceColor !== void 0 && (flagForceColor = noFlagForceColor);
|
|
41
|
+
let forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
42
|
+
if (forceColor === 0)
|
|
43
|
+
return 0;
|
|
44
|
+
if (sniffFlags) {
|
|
45
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor"))
|
|
46
|
+
return 3;
|
|
47
|
+
if (hasFlag("color=256"))
|
|
48
|
+
return 2;
|
|
49
|
+
}
|
|
50
|
+
if (haveStream && !streamIsTTY && forceColor === void 0)
|
|
51
|
+
return 0;
|
|
52
|
+
let min = forceColor || 0;
|
|
53
|
+
if (env.TERM === "dumb")
|
|
54
|
+
return min;
|
|
55
|
+
if (process.platform === "win32") {
|
|
56
|
+
let osRelease = os.release().split(".");
|
|
57
|
+
return Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586 ? Number(osRelease[2]) >= 14931 ? 3 : 2 : 1;
|
|
58
|
+
}
|
|
59
|
+
if ("CI" in env)
|
|
60
|
+
return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship" ? 1 : min;
|
|
61
|
+
if ("TEAMCITY_VERSION" in env)
|
|
62
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
63
|
+
if (env.COLORTERM === "truecolor")
|
|
64
|
+
return 3;
|
|
65
|
+
if ("TERM_PROGRAM" in env) {
|
|
66
|
+
let version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
67
|
+
switch (env.TERM_PROGRAM) {
|
|
68
|
+
case "iTerm.app":
|
|
69
|
+
return version >= 3 ? 3 : 2;
|
|
70
|
+
case "Apple_Terminal":
|
|
71
|
+
return 2;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return /-256(color)?$/i.test(env.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM) || "COLORTERM" in env ? 1 : min;
|
|
75
|
+
}
|
|
76
|
+
function getSupportLevel(stream, options = {}) {
|
|
77
|
+
let level = supportsColor(stream, {
|
|
78
|
+
streamIsTTY: stream && stream.isTTY,
|
|
79
|
+
...options
|
|
80
|
+
});
|
|
81
|
+
return translateLevel(level);
|
|
82
|
+
}
|
|
83
|
+
module.exports = {
|
|
84
|
+
supportsColor: getSupportLevel,
|
|
85
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
86
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
require_has_flag,
|
|
93
|
+
require_supports_color
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=chunk-3I3GQNEW.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
execa,
|
|
3
3
|
outputContent,
|
|
4
4
|
outputDebug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L3FVJFIT.js";
|
|
6
6
|
import {
|
|
7
7
|
init_cjs_shims
|
|
8
8
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
username,
|
|
61
61
|
platformAndArch
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-4QRIOWN3.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VI4NVMJH.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6JNRBEP6.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkPrompts
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-4W33LVQQ.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FCWD4NEK.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6JNRBEP6.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L3FVJFIT.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
Upgrade
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-53WQGP7S.js.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {
|
|
2
|
+
basename,
|
|
3
|
+
dirname,
|
|
4
|
+
extname,
|
|
5
|
+
isAbsolute,
|
|
6
|
+
join,
|
|
7
|
+
normalize,
|
|
8
|
+
relative,
|
|
9
|
+
resolve
|
|
10
|
+
} from "./chunk-CDBXAE2F.js";
|
|
11
|
+
import {
|
|
12
|
+
__commonJS,
|
|
13
|
+
__require,
|
|
14
|
+
__toESM,
|
|
15
|
+
init_cjs_shims
|
|
16
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
|
|
19
|
+
var require_commondir = __commonJS({
|
|
20
|
+
"../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
|
|
21
|
+
init_cjs_shims();
|
|
22
|
+
var path = __require("path");
|
|
23
|
+
module.exports = function(basedir, relfiles) {
|
|
24
|
+
if (relfiles)
|
|
25
|
+
var files = relfiles.map(function(r) {
|
|
26
|
+
return path.resolve(basedir, r);
|
|
27
|
+
});
|
|
28
|
+
else
|
|
29
|
+
var files = basedir;
|
|
30
|
+
var res = files.slice(1).reduce(function(ps, file) {
|
|
31
|
+
if (!file.match(/^([A-Za-z]:)?\/|\\/))
|
|
32
|
+
throw new Error("relative path without a basedir");
|
|
33
|
+
for (var xs = file.split(/\/+|\\+/), i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++) ;
|
|
34
|
+
return ps.slice(0, i);
|
|
35
|
+
}, files[0].split(/\/+|\\+/));
|
|
36
|
+
return res.length > 1 ? res.join("/") : "/";
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// ../cli-kit/dist/public/node/path.js
|
|
42
|
+
init_cjs_shims();
|
|
43
|
+
var import_commondir = __toESM(require_commondir());
|
|
44
|
+
import { fileURLToPath } from "url";
|
|
45
|
+
function joinPath(...paths) {
|
|
46
|
+
return join(...paths);
|
|
47
|
+
}
|
|
48
|
+
function normalizePath(path) {
|
|
49
|
+
return normalize(path);
|
|
50
|
+
}
|
|
51
|
+
function resolvePath(...paths) {
|
|
52
|
+
return resolve(...paths);
|
|
53
|
+
}
|
|
54
|
+
function relativePath(from, to) {
|
|
55
|
+
return relative(from, to);
|
|
56
|
+
}
|
|
57
|
+
function isAbsolutePath(path) {
|
|
58
|
+
return isAbsolute(path);
|
|
59
|
+
}
|
|
60
|
+
function dirname2(path) {
|
|
61
|
+
return dirname(path);
|
|
62
|
+
}
|
|
63
|
+
function basename2(path, ext) {
|
|
64
|
+
return basename(path, ext);
|
|
65
|
+
}
|
|
66
|
+
function extname2(path) {
|
|
67
|
+
return extname(path);
|
|
68
|
+
}
|
|
69
|
+
function relativizePath(path, dir = cwd()) {
|
|
70
|
+
let result = (0, import_commondir.default)([path, dir]), relativePath2 = relative(dir, path), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
|
|
71
|
+
return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path : relativePath2;
|
|
72
|
+
}
|
|
73
|
+
function isSubpath(mainPath, subpath) {
|
|
74
|
+
let relativePath2 = relative(mainPath, subpath);
|
|
75
|
+
return !relativePath2.startsWith("..") && !isAbsolutePath(relativePath2);
|
|
76
|
+
}
|
|
77
|
+
function moduleDirectory(moduleURL) {
|
|
78
|
+
return dirname2(fileURLToPath(moduleURL));
|
|
79
|
+
}
|
|
80
|
+
function cwd() {
|
|
81
|
+
return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
|
|
82
|
+
}
|
|
83
|
+
function sniffForPath(argv = process.argv) {
|
|
84
|
+
let pathFlagIndex = argv.indexOf("--path");
|
|
85
|
+
if (pathFlagIndex === -1)
|
|
86
|
+
return argv.find((arg) => arg.startsWith("--path="))?.split("=")[1];
|
|
87
|
+
let pathFlag = argv[pathFlagIndex + 1];
|
|
88
|
+
if (!(!pathFlag || pathFlag.startsWith("-")))
|
|
89
|
+
return pathFlag;
|
|
90
|
+
}
|
|
91
|
+
function sniffForJson(argv = process.argv) {
|
|
92
|
+
return argv.includes("--json") || argv.includes("-j");
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
joinPath,
|
|
97
|
+
normalizePath,
|
|
98
|
+
resolvePath,
|
|
99
|
+
relativePath,
|
|
100
|
+
isAbsolutePath,
|
|
101
|
+
dirname2 as dirname,
|
|
102
|
+
basename2 as basename,
|
|
103
|
+
extname2 as extname,
|
|
104
|
+
relativizePath,
|
|
105
|
+
isSubpath,
|
|
106
|
+
moduleDirectory,
|
|
107
|
+
cwd,
|
|
108
|
+
sniffForPath,
|
|
109
|
+
sniffForJson
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=chunk-57Q6OQG4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_merge2,
|
|
3
3
|
require_out
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5DBS6QOU.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require,
|
|
@@ -622,4 +622,4 @@ export {
|
|
|
622
622
|
require_slash,
|
|
623
623
|
require_globby
|
|
624
624
|
};
|
|
625
|
-
//# sourceMappingURL=chunk-
|
|
625
|
+
//# sourceMappingURL=chunk-5CLGH5PH.js.map
|