@sanity/cli 3.74.2-canary.98 → 3.74.2-coreui.20
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/lib/_chunks-cjs/cli.js +245 -241
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/lib/_chunks-cjs/loadEnv.js +73 -15
- package/lib/_chunks-cjs/loadEnv.js.map +1 -1
- package/lib/index.d.mts +0 -3
- package/lib/index.d.ts +0 -3
- package/lib/index.esm.js +70 -12
- package/lib/index.esm.js.map +1 -1
- package/lib/index.mjs +70 -12
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/actions/init-project/initProject.ts +4 -8
- package/src/cli.ts +4 -14
- package/src/types.ts +0 -3
- package/src/util/resolveRootDir.ts +8 -9
package/lib/_chunks-cjs/cli.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
var fs$1 = require("node:fs"), os = require("node:os"), path$3 = require("node:path"), chalk = require("chalk"), loadEnv = require("./loadEnv.js"), require$$0$
|
2
|
+
var fs$1 = require("node:fs"), os = require("node:os"), path$3 = require("node:path"), chalk = require("chalk"), loadEnv = require("./loadEnv.js"), require$$0$4 = require("path"), require$$1$2 = require("module"), require$$0$5 = require("fs"), telemetry = require("@sanity/telemetry"), childProcess = require("node:child_process"), fs = require("node:fs/promises"), util$4 = require("node:util"), require$$0$6 = require("os"), require$$0$c = require("url"), require$$1$3 = require("get-it"), require$$2$1 = require("get-it/middleware"), require$$0$7 = require("constants"), require$$0$8 = require("stream"), require$$0$a = require("util"), require$$0$9 = require("assert"), require$$0$b = require("events"), require$$6$1 = require("http"), semver = require("semver"), pkgDir = require("pkg-dir"), client$1 = require("@sanity/client"), require$$3$1 = require("crypto"), require$$1$4 = require("child_process"), require$$0$d = require("fs/promises"), require$$0$e = require("buffer"), getCliConfig = require("./getCliConfig.js"), journeyConfig = require("./journeyConfig.js"), Stream = require("node:stream"), promises$1 = require("node:stream/promises"), templateValidator = require("@sanity/template-validator"), require$$2$2 = require("string_decoder"), require$$0$f = require("zlib"), require$$7$1 = require("process"), http = require("node:http"), traverse = require("@babel/traverse"), node_url = require("node:url"), node_events = require("node:events"), node_string_decoder = require("node:string_decoder"), process$2 = require("node:process"), require$$2$3 = require("readline"), require$$0$g = require("tty");
|
3
3
|
function _interopDefaultCompat(e) {
|
4
4
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
5
5
|
}
|
@@ -33,11 +33,11 @@ function _mergeNamespaces(n, m) {
|
|
33
33
|
});
|
34
34
|
}), Object.freeze(n);
|
35
35
|
}
|
36
|
-
var fs__namespace = /* @__PURE__ */ _interopNamespaceCompat(fs$1), os__default = /* @__PURE__ */ _interopDefaultCompat(os), path__default = /* @__PURE__ */ _interopDefaultCompat(path$3), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk), require$$0__default
|
36
|
+
var fs__namespace = /* @__PURE__ */ _interopNamespaceCompat(fs$1), os__default = /* @__PURE__ */ _interopDefaultCompat(os), path__default = /* @__PURE__ */ _interopDefaultCompat(path$3), chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk), require$$0__default = /* @__PURE__ */ _interopDefaultCompat(require$$0$4), require$$1__default = /* @__PURE__ */ _interopDefaultCompat(require$$1$2), require$$0__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$0$5), childProcess__default = /* @__PURE__ */ _interopDefaultCompat(childProcess), fs__default = /* @__PURE__ */ _interopDefaultCompat(fs), util__default = /* @__PURE__ */ _interopDefaultCompat(util$4), require$$0__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$0$6), require$$0__default$8 = /* @__PURE__ */ _interopDefaultCompat(require$$0$c), require$$1__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$1$3), require$$2__default = /* @__PURE__ */ _interopDefaultCompat(require$$2$1), require$$0__default$3 = /* @__PURE__ */ _interopDefaultCompat(require$$0$7), require$$0__default$4 = /* @__PURE__ */ _interopDefaultCompat(require$$0$8), require$$0__default$6 = /* @__PURE__ */ _interopDefaultCompat(require$$0$a), require$$0__default$5 = /* @__PURE__ */ _interopDefaultCompat(require$$0$9), require$$0__default$7 = /* @__PURE__ */ _interopDefaultCompat(require$$0$b), require$$6__default = /* @__PURE__ */ _interopDefaultCompat(require$$6$1), semver__default = /* @__PURE__ */ _interopDefaultCompat(semver), pkgDir__default = /* @__PURE__ */ _interopDefaultCompat(pkgDir), require$$3__default = /* @__PURE__ */ _interopDefaultCompat(require$$3$1), require$$1__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$1$4), require$$0__default$9 = /* @__PURE__ */ _interopDefaultCompat(require$$0$d), require$$0__default$a = /* @__PURE__ */ _interopDefaultCompat(require$$0$e), Stream__default = /* @__PURE__ */ _interopDefaultCompat(Stream), require$$2__default$1 = /* @__PURE__ */ _interopDefaultCompat(require$$2$2), require$$0__default$b = /* @__PURE__ */ _interopDefaultCompat(require$$0$f), require$$7__default = /* @__PURE__ */ _interopDefaultCompat(require$$7$1), http__default = /* @__PURE__ */ _interopDefaultCompat(http), traverse__default = /* @__PURE__ */ _interopDefaultCompat(traverse), process__default = /* @__PURE__ */ _interopDefaultCompat(process$2), require$$2__default$2 = /* @__PURE__ */ _interopDefaultCompat(require$$2$3), require$$0__default$c = /* @__PURE__ */ _interopDefaultCompat(require$$0$g), resolveFrom$1 = { exports: {} }, hasRequiredResolveFrom;
|
37
37
|
function requireResolveFrom() {
|
38
38
|
if (hasRequiredResolveFrom) return resolveFrom$1.exports;
|
39
39
|
hasRequiredResolveFrom = 1;
|
40
|
-
const path2 = require$$0__default
|
40
|
+
const path2 = require$$0__default.default, Module = require$$1__default.default, fs2 = require$$0__default$1.default, resolveFrom2 = (fromDirectory, moduleId, silent) => {
|
41
41
|
if (typeof fromDirectory != "string")
|
42
42
|
throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
|
43
43
|
if (typeof moduleId != "string")
|
@@ -3979,7 +3979,7 @@ function requirePromisePropsRecursive() {
|
|
3979
3979
|
var promisePropsRecursiveExports = requirePromisePropsRecursive(), promiseProps = /* @__PURE__ */ loadEnv.getDefaultExportFromCjs(promisePropsRecursiveExports), xdgBasedir$1 = {}, hasRequiredXdgBasedir;
|
3980
3980
|
function requireXdgBasedir() {
|
3981
3981
|
return hasRequiredXdgBasedir || (hasRequiredXdgBasedir = 1, function(exports2) {
|
3982
|
-
const os2 = require$$0__default$2.default, path2 = require$$0__default
|
3982
|
+
const os2 = require$$0__default$2.default, path2 = require$$0__default.default, homeDirectory = os2.homedir(), { env } = process;
|
3983
3983
|
exports2.data = env.XDG_DATA_HOME || (homeDirectory ? path2.join(homeDirectory, ".local", "share") : void 0), exports2.config = env.XDG_CONFIG_HOME || (homeDirectory ? path2.join(homeDirectory, ".config") : void 0), exports2.cache = env.XDG_CACHE_HOME || (homeDirectory ? path2.join(homeDirectory, ".cache") : void 0), exports2.runtime = env.XDG_RUNTIME_DIR || void 0, exports2.dataDirs = (env.XDG_DATA_DIRS || "/usr/local/share/:/usr/share/").split(":"), exports2.data && exports2.dataDirs.unshift(exports2.data), exports2.configDirs = (env.XDG_CONFIG_DIRS || "/etc/xdg").split(":"), exports2.config && exports2.configDirs.unshift(exports2.config);
|
3984
3984
|
}(xdgBasedir$1)), xdgBasedir$1;
|
3985
3985
|
}
|
@@ -4133,7 +4133,7 @@ var hasRequiredUtils$3;
|
|
4133
4133
|
function requireUtils$3() {
|
4134
4134
|
if (hasRequiredUtils$3) return utils$3;
|
4135
4135
|
hasRequiredUtils$3 = 1;
|
4136
|
-
var fs2 = require$$0__default.default, ini2 = requireIni$1(), path2 = require$$0__default
|
4136
|
+
var fs2 = require$$0__default$1.default, ini2 = requireIni$1(), path2 = require$$0__default.default, stripJsonComments2 = requireStripJsonComments(), parse3 = utils$3.parse = function(content) {
|
4137
4137
|
return /^\s*{/.test(content) ? JSON.parse(stripJsonComments2(content)) : ini2.parse(content);
|
4138
4138
|
}, file = utils$3.file = function() {
|
4139
4139
|
var args = [].slice.call(arguments).filter(function(arg) {
|
@@ -4386,7 +4386,7 @@ var rc, hasRequiredRc;
|
|
4386
4386
|
function requireRc() {
|
4387
4387
|
if (hasRequiredRc) return rc;
|
4388
4388
|
hasRequiredRc = 1;
|
4389
|
-
var cc = requireUtils$3(), join = require$$0__default
|
4389
|
+
var cc = requireUtils$3(), join = require$$0__default.default.join, deepExtend2 = requireDeepExtend(), etc = "/etc", win = process.platform === "win32", home = win ? process.env.USERPROFILE : process.env.HOME;
|
4390
4390
|
return rc = function(name, defaults2, argv, parse3) {
|
4391
4391
|
if (typeof name != "string")
|
4392
4392
|
throw new Error("rc(name): name *must* be string");
|
@@ -4703,7 +4703,7 @@ var gracefulFs$1, hasRequiredGracefulFs$1;
|
|
4703
4703
|
function requireGracefulFs$1() {
|
4704
4704
|
if (hasRequiredGracefulFs$1) return gracefulFs$1;
|
4705
4705
|
hasRequiredGracefulFs$1 = 1;
|
4706
|
-
var fs2 = require$$0__default.default, polyfills2 = requirePolyfills$1(), legacy = requireLegacyStreams$1(), clone = requireClone$1(), util2 = require$$0__default$
|
4706
|
+
var fs2 = require$$0__default$1.default, polyfills2 = requirePolyfills$1(), legacy = requireLegacyStreams$1(), clone = requireClone$1(), util2 = require$$0__default$6.default, gracefulQueue, previousSymbol;
|
4707
4707
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
|
4708
4708
|
function noop2() {
|
4709
4709
|
}
|
@@ -4738,7 +4738,7 @@ GFS4: `), console.error(m);
|
|
4738
4738
|
value: fs$closeSync
|
4739
4739
|
}), closeSync;
|
4740
4740
|
}(fs2.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
4741
|
-
debug2(fs2[gracefulQueue]), require$$0__default$
|
4741
|
+
debug2(fs2[gracefulQueue]), require$$0__default$5.default.equal(fs2[gracefulQueue].length, 0);
|
4742
4742
|
});
|
4743
4743
|
}
|
4744
4744
|
loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs2[gracefulQueue]), gracefulFs$1 = patch(clone(fs2)), process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched && (gracefulFs$1 = patch(fs2), fs2.__patched = !0);
|
@@ -4932,7 +4932,7 @@ var hasRequiredCaFile;
|
|
4932
4932
|
function requireCaFile() {
|
4933
4933
|
if (hasRequiredCaFile) return caFile;
|
4934
4934
|
hasRequiredCaFile = 1;
|
4935
|
-
var __importDefault2 = caFile
|
4935
|
+
var __importDefault2 = caFile.__importDefault || function(mod) {
|
4936
4936
|
return mod && mod.__esModule ? mod : { default: mod };
|
4937
4937
|
};
|
4938
4938
|
Object.defineProperty(caFile, "__esModule", { value: !0 }), caFile.readCAFileSync = void 0;
|
@@ -4952,7 +4952,7 @@ function requireCaFile() {
|
|
4952
4952
|
var hasRequiredDist$3;
|
4953
4953
|
function requireDist$3() {
|
4954
4954
|
return hasRequiredDist$3 || (hasRequiredDist$3 = 1, function(exports2) {
|
4955
|
-
var __createBinding2 = dist$4
|
4955
|
+
var __createBinding2 = dist$4.__createBinding || (Object.create ? function(o, m, k, k2) {
|
4956
4956
|
k2 === void 0 && (k2 = k);
|
4957
4957
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
4958
4958
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
@@ -4960,7 +4960,7 @@ function requireDist$3() {
|
|
4960
4960
|
} }), Object.defineProperty(o, k2, desc);
|
4961
4961
|
} : function(o, m, k, k2) {
|
4962
4962
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
4963
|
-
}), __exportStar2 = dist$4
|
4963
|
+
}), __exportStar2 = dist$4.__exportStar || function(m, exports3) {
|
4964
4964
|
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p) && __createBinding2(exports3, m, p);
|
4965
4965
|
};
|
4966
4966
|
Object.defineProperty(exports2, "__esModule", { value: !0 }), __exportStar2(requireCaFile(), exports2);
|
@@ -5042,7 +5042,7 @@ var hasRequiredConfigChain;
|
|
5042
5042
|
function requireConfigChain() {
|
5043
5043
|
if (hasRequiredConfigChain) return configChain.exports;
|
5044
5044
|
hasRequiredConfigChain = 1;
|
5045
|
-
var ProtoList = requireProtoList(), path2 = require$$0__default
|
5045
|
+
var ProtoList = requireProtoList(), path2 = require$$0__default.default, fs2 = require$$0__default$1.default, ini2 = requireIni$1(), EE = require$$0__default$7.default.EventEmitter, url = require$$0__default$8.default, http2 = require$$6__default.default, exports2 = configChain.exports = function() {
|
5046
5046
|
for (var args = [].slice.call(arguments), conf2 = new ConfigChain(); args.length; ) {
|
5047
5047
|
var a = args.shift();
|
5048
5048
|
a && conf2.push(typeof a == "string" ? json2(a) : a);
|
@@ -5241,7 +5241,7 @@ var hasRequiredUtil$2;
|
|
5241
5241
|
function requireUtil$2() {
|
5242
5242
|
if (hasRequiredUtil$2) return util$3;
|
5243
5243
|
hasRequiredUtil$2 = 1;
|
5244
|
-
const fs2 = require$$0__default.default, path2 = require$$0__default
|
5244
|
+
const fs2 = require$$0__default$1.default, path2 = require$$0__default.default, { envReplace: envReplace2 } = requireDist$2(), parseKey = (key2) => typeof key2 != "string" ? key2 : envReplace2(key2, process.env), parseField = (types2, field, key2) => {
|
5245
5245
|
if (typeof field != "string")
|
5246
5246
|
return field;
|
5247
5247
|
const typeList = [].concat(types2[key2]), isPath = typeList.indexOf(path2) !== -1, isBool = typeList.indexOf(Boolean) !== -1, isString = typeList.indexOf(String) !== -1, isNumber2 = typeList.indexOf(Number) !== -1;
|
@@ -5299,7 +5299,7 @@ var types$4 = {}, hasRequiredTypes$3;
|
|
5299
5299
|
function requireTypes$3() {
|
5300
5300
|
if (hasRequiredTypes$3) return types$4;
|
5301
5301
|
hasRequiredTypes$3 = 1;
|
5302
|
-
const path2 = require$$0__default
|
5302
|
+
const path2 = require$$0__default.default, Stream2 = require$$0__default$4.default.Stream, url = require$$0__default$8.default, Umask = () => {
|
5303
5303
|
}, getLocalAddresses = () => [], semver2 = () => {
|
5304
5304
|
};
|
5305
5305
|
return types$4.types = {
|
@@ -5431,7 +5431,7 @@ var conf, hasRequiredConf;
|
|
5431
5431
|
function requireConf() {
|
5432
5432
|
if (hasRequiredConf) return conf;
|
5433
5433
|
hasRequiredConf = 1;
|
5434
|
-
const { readCAFileSync } = requireDist$3(), fs2 = require$$0__default.default, path2 = require$$0__default
|
5434
|
+
const { readCAFileSync } = requireDist$3(), fs2 = require$$0__default$1.default, path2 = require$$0__default.default, { ConfigChain } = requireConfigChain(), envKeyToSetting2 = requireEnvKeyToSetting(), util2 = requireUtil$2();
|
5435
5435
|
class Conf extends ConfigChain {
|
5436
5436
|
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
|
5437
5437
|
constructor(base2, types2) {
|
@@ -5555,7 +5555,7 @@ function requireConf() {
|
|
5555
5555
|
var defaults$3 = {}, hasRequiredDefaults;
|
5556
5556
|
function requireDefaults() {
|
5557
5557
|
return hasRequiredDefaults || (hasRequiredDefaults = 1, function(exports2) {
|
5558
|
-
const os2 = require$$0__default$2.default, path2 = require$$0__default
|
5558
|
+
const os2 = require$$0__default$2.default, path2 = require$$0__default.default, temp = os2.tmpdir(), uidOrPid = process.getuid ? process.getuid() : process.pid, hasUnicode = () => !0, isWindows = process.platform === "win32", osenv = {
|
5559
5559
|
editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows ? "notepad.exe" : "vi"),
|
5560
5560
|
shell: () => isWindows ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
|
5561
5561
|
}, umask = {
|
@@ -5695,7 +5695,7 @@ function requireDefaults() {
|
|
5695
5695
|
var hasRequiredNpmConf;
|
5696
5696
|
function requireNpmConf() {
|
5697
5697
|
return hasRequiredNpmConf || (hasRequiredNpmConf = 1, function(module2) {
|
5698
|
-
const path2 = require$$0__default
|
5698
|
+
const path2 = require$$0__default.default, Conf = requireConf(), _defaults = requireDefaults();
|
5699
5699
|
module2.exports = (opts, types2, defaults2) => {
|
5700
5700
|
const conf2 = new Conf(Object.assign({}, _defaults.defaults, defaults2), types2);
|
5701
5701
|
conf2.add(Object.assign({}, opts), "cli");
|
@@ -5740,7 +5740,7 @@ var registryAuthToken, hasRequiredRegistryAuthToken;
|
|
5740
5740
|
function requireRegistryAuthToken() {
|
5741
5741
|
if (hasRequiredRegistryAuthToken) return registryAuthToken;
|
5742
5742
|
hasRequiredRegistryAuthToken = 1;
|
5743
|
-
const npmConf2 = requireNpmConf(), tokenKey = ":_authToken", legacyTokenKey = ":_auth", userKey = ":username", passwordKey = ":_password";
|
5743
|
+
const url = require$$0__default$8.default, npmConf2 = requireNpmConf(), tokenKey = ":_authToken", legacyTokenKey = ":_auth", userKey = ":username", passwordKey = ":_password";
|
5744
5744
|
registryAuthToken = function() {
|
5745
5745
|
let checkUrl, options2;
|
5746
5746
|
arguments.length >= 2 ? (checkUrl = arguments[0], options2 = Object.assign({}, arguments[1])) : typeof arguments[0] == "string" ? checkUrl = arguments[0] : options2 = Object.assign({}, arguments[0]), options2 = options2 || {};
|
@@ -5751,24 +5751,17 @@ function requireRegistryAuthToken() {
|
|
5751
5751
|
}
|
5752
5752
|
} : npmConf2()).config, checkUrl = checkUrl || options2.npmrc.get("registry") || npmConf2.defaults.registry, getRegistryAuthInfo(checkUrl, options2) || getLegacyAuthInfo(options2.npmrc);
|
5753
5753
|
};
|
5754
|
-
function urlResolve(from2, to) {
|
5755
|
-
const resolvedUrl = new URL(to, new URL(from2.startsWith("//") ? `./${from2}` : from2, "resolve://"));
|
5756
|
-
if (resolvedUrl.protocol === "resolve:") {
|
5757
|
-
const { pathname, search, hash } = resolvedUrl;
|
5758
|
-
return pathname + search + hash;
|
5759
|
-
}
|
5760
|
-
return resolvedUrl.toString();
|
5761
|
-
}
|
5762
5754
|
function getRegistryAuthInfo(checkUrl, options2) {
|
5763
|
-
|
5755
|
+
const parsed = url.parse(checkUrl, !1, !0);
|
5756
|
+
let pathname;
|
5764
5757
|
for (; pathname !== "/" && parsed.pathname !== pathname; ) {
|
5765
5758
|
pathname = parsed.pathname || "/";
|
5766
5759
|
const regUrl = "//" + parsed.host + pathname.replace(/\/$/, ""), authInfo = getAuthInfoForUrl(regUrl, options2.npmrc);
|
5767
5760
|
if (authInfo)
|
5768
5761
|
return authInfo;
|
5769
5762
|
if (!options2.recursive)
|
5770
|
-
return /\/$/.test(checkUrl) ? void 0 : getRegistryAuthInfo(
|
5771
|
-
parsed.pathname =
|
5763
|
+
return /\/$/.test(checkUrl) ? void 0 : getRegistryAuthInfo(url.resolve(checkUrl, "."), options2);
|
5764
|
+
parsed.pathname = url.resolve(normalizePath(pathname), "..") || "/";
|
5772
5765
|
}
|
5773
5766
|
}
|
5774
5767
|
function getLegacyAuthInfo(npmrc) {
|
@@ -5816,7 +5809,7 @@ var src, hasRequiredSrc;
|
|
5816
5809
|
function requireSrc() {
|
5817
5810
|
if (hasRequiredSrc) return src;
|
5818
5811
|
hasRequiredSrc = 1;
|
5819
|
-
const url = require$$
|
5812
|
+
const url = require$$0__default$8.default, { getIt } = require$$1__default$1.default, { debug: debug2, retry: retry2, promise: promise2, httpErrors, jsonResponse } = require$$2__default.default, registryUrl2 = requireRegistryUrl(), registryAuthToken2 = requireRegistryAuthToken(), semver2 = semver__default.default, isJson = (contentType) => /(application\/json|\+json)/.test(contentType || "");
|
5820
5813
|
function shouldRetry(err, num, options2) {
|
5821
5814
|
const response = err.response || { statusCode: 500, headers: {} };
|
5822
5815
|
return (
|
@@ -6255,7 +6248,7 @@ var gracefulFs, hasRequiredGracefulFs;
|
|
6255
6248
|
function requireGracefulFs() {
|
6256
6249
|
if (hasRequiredGracefulFs) return gracefulFs;
|
6257
6250
|
hasRequiredGracefulFs = 1;
|
6258
|
-
var fs2 = require$$0__default.default, polyfills2 = requirePolyfills(), legacy = requireLegacyStreams(), clone = requireClone(), util2 = require$$0__default$
|
6251
|
+
var fs2 = require$$0__default$1.default, polyfills2 = requirePolyfills(), legacy = requireLegacyStreams(), clone = requireClone(), util2 = require$$0__default$6.default, gracefulQueue, previousSymbol;
|
6259
6252
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
|
6260
6253
|
function noop2() {
|
6261
6254
|
}
|
@@ -6290,7 +6283,7 @@ GFS4: `), console.error(m);
|
|
6290
6283
|
value: fs$closeSync
|
6291
6284
|
}), closeSync;
|
6292
6285
|
}(fs2.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
6293
|
-
debug2(fs2[gracefulQueue]), require$$0__default$
|
6286
|
+
debug2(fs2[gracefulQueue]), require$$0__default$5.default.equal(fs2[gracefulQueue].length, 0);
|
6294
6287
|
});
|
6295
6288
|
}
|
6296
6289
|
loadEnv.commonjsGlobal[gracefulQueue] || publishQueue(loadEnv.commonjsGlobal, fs2[gracefulQueue]), gracefulFs = patch(clone(fs2)), process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs2.__patched && (gracefulFs = patch(fs2), fs2.__patched = !0);
|
@@ -6484,7 +6477,7 @@ var makeDir = { exports: {} }, hasRequiredMakeDir;
|
|
6484
6477
|
function requireMakeDir() {
|
6485
6478
|
if (hasRequiredMakeDir) return makeDir.exports;
|
6486
6479
|
hasRequiredMakeDir = 1;
|
6487
|
-
const fs2 = require$$0__default.default, path2 = require$$0__default
|
6480
|
+
const fs2 = require$$0__default$1.default, path2 = require$$0__default.default, { promisify } = require$$0__default$6.default, useNativeRecursiveOption = semver__default.default.satisfies(process.version, ">=10.12.0"), checkPath = (pth) => {
|
6488
6481
|
if (process.platform === "win32" && /[<>:"|?*]/.test(pth.replace(path2.parse(pth).root, ""))) {
|
6489
6482
|
const error2 = new Error(`Path contains invalid characters: ${pth}`);
|
6490
6483
|
throw error2.code = "EINVAL", error2;
|
@@ -6666,22 +6659,22 @@ function requireSignalExit() {
|
|
6666
6659
|
};
|
6667
6660
|
};
|
6668
6661
|
else {
|
6669
|
-
var assert = require$$0__default$
|
6662
|
+
var assert = require$$0__default$5.default, signals2 = requireSignals(), isWin = /^win/i.test(process2.platform), EE = require$$0__default$7.default;
|
6670
6663
|
typeof EE != "function" && (EE = EE.EventEmitter);
|
6671
6664
|
var emitter;
|
6672
6665
|
process2.__signal_exit_emitter__ ? emitter = process2.__signal_exit_emitter__ : (emitter = process2.__signal_exit_emitter__ = new EE(), emitter.count = 0, emitter.emitted = {}), emitter.infinite || (emitter.setMaxListeners(1 / 0), emitter.infinite = !0), signalExit.exports = function(cb, opts) {
|
6673
6666
|
if (!processOk2(loadEnv.commonjsGlobal.process))
|
6674
6667
|
return function() {
|
6675
6668
|
};
|
6676
|
-
assert.equal(typeof cb, "function", "a callback must be provided for exit handler"), loaded === !1 &&
|
6669
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler"), loaded === !1 && load2();
|
6677
6670
|
var ev = "exit";
|
6678
6671
|
opts && opts.alwaysLast && (ev = "afterexit");
|
6679
6672
|
var remove = function() {
|
6680
|
-
emitter.removeListener(ev, cb), emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0 &&
|
6673
|
+
emitter.removeListener(ev, cb), emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0 && unload2();
|
6681
6674
|
};
|
6682
6675
|
return emitter.on(ev, cb), remove;
|
6683
6676
|
};
|
6684
|
-
var
|
6677
|
+
var unload2 = function() {
|
6685
6678
|
!loaded || !processOk2(loadEnv.commonjsGlobal.process) || (loaded = !1, signals2.forEach(function(sig) {
|
6686
6679
|
try {
|
6687
6680
|
process2.removeListener(sig, sigListeners[sig]);
|
@@ -6689,7 +6682,7 @@ function requireSignalExit() {
|
|
6689
6682
|
}
|
6690
6683
|
}), process2.emit = originalProcessEmit, process2.reallyExit = originalProcessReallyExit, emitter.count -= 1);
|
6691
6684
|
};
|
6692
|
-
signalExit.exports.unload =
|
6685
|
+
signalExit.exports.unload = unload2;
|
6693
6686
|
var emit = function(event, code, signal) {
|
6694
6687
|
emitter.emitted[event] || (emitter.emitted[event] = !0, emitter.emit(event, code, signal));
|
6695
6688
|
}, sigListeners = {};
|
@@ -6697,13 +6690,13 @@ function requireSignalExit() {
|
|
6697
6690
|
sigListeners[sig] = function() {
|
6698
6691
|
if (processOk2(loadEnv.commonjsGlobal.process)) {
|
6699
6692
|
var listeners = process2.listeners(sig);
|
6700
|
-
listeners.length === emitter.count && (
|
6693
|
+
listeners.length === emitter.count && (unload2(), emit("exit", null, sig), emit("afterexit", null, sig), isWin && sig === "SIGHUP" && (sig = "SIGINT"), process2.kill(process2.pid, sig));
|
6701
6694
|
}
|
6702
6695
|
};
|
6703
6696
|
}), signalExit.exports.signals = function() {
|
6704
6697
|
return signals2;
|
6705
6698
|
};
|
6706
|
-
var loaded = !1,
|
6699
|
+
var loaded = !1, load2 = function() {
|
6707
6700
|
loaded || !processOk2(loadEnv.commonjsGlobal.process) || (loaded = !0, emitter.count += 1, signals2 = signals2.filter(function(sig) {
|
6708
6701
|
try {
|
6709
6702
|
return process2.on(sig, sigListeners[sig]), !0;
|
@@ -6712,7 +6705,7 @@ function requireSignalExit() {
|
|
6712
6705
|
}
|
6713
6706
|
}), process2.emit = processEmit, process2.reallyExit = processReallyExit);
|
6714
6707
|
};
|
6715
|
-
signalExit.exports.load =
|
6708
|
+
signalExit.exports.load = load2;
|
6716
6709
|
var originalProcessReallyExit = process2.reallyExit, processReallyExit = function(code) {
|
6717
6710
|
processOk2(loadEnv.commonjsGlobal.process) && (process2.exitCode = code || /* istanbul ignore next */
|
6718
6711
|
0, emit("exit", process2.exitCode, null), emit("afterexit", process2.exitCode, null), originalProcessReallyExit.call(process2, process2.exitCode));
|
@@ -6770,7 +6763,7 @@ var hasRequiredWriteFileAtomic;
|
|
6770
6763
|
function requireWriteFileAtomic() {
|
6771
6764
|
if (hasRequiredWriteFileAtomic) return writeFileAtomic.exports;
|
6772
6765
|
hasRequiredWriteFileAtomic = 1, writeFileAtomic.exports = writeFile, writeFileAtomic.exports.sync = writeFileSync, writeFileAtomic.exports._getTmpname = getTmpname, writeFileAtomic.exports._cleanupOnExit = cleanupOnExit;
|
6773
|
-
const fs2 = require$$0__default.default, MurmurHash3 = requireImurmurhash(), onExit2 = requireSignalExit(), path2 = require$$0__default
|
6766
|
+
const fs2 = require$$0__default$1.default, MurmurHash3 = requireImurmurhash(), onExit2 = requireSignalExit(), path2 = require$$0__default.default, isTypedArray = requireIsTypedarray(), typedArrayToBuffer = requireTypedarrayToBuffer(), { promisify } = require$$0__default$6.default, activeFiles = {}, threadId = function() {
|
6774
6767
|
try {
|
6775
6768
|
return require("worker_threads").threadId;
|
6776
6769
|
} catch {
|
@@ -6978,7 +6971,7 @@ var configstore, hasRequiredConfigstore;
|
|
6978
6971
|
function requireConfigstore() {
|
6979
6972
|
if (hasRequiredConfigstore) return configstore;
|
6980
6973
|
hasRequiredConfigstore = 1;
|
6981
|
-
const path2 = require$$0__default
|
6974
|
+
const path2 = require$$0__default.default, os2 = require$$0__default$2.default, fs2 = requireGracefulFs(), makeDir2 = requireMakeDir(), xdgBasedir2 = requireXdgBasedir(), writeFileAtomic2 = requireWriteFileAtomic(), dotProp2 = requireDotProp(), uniqueString2 = requireUniqueString(), configDirectory = xdgBasedir2.config || path2.join(os2.tmpdir(), uniqueString2()), permissionError = "You don't have access to this file.", makeDirOptions = { mode: 448 }, writeFileOptions = { mode: 384 };
|
6982
6975
|
class Configstore {
|
6983
6976
|
constructor(id, defaults2, options2 = {}) {
|
6984
6977
|
const pathPrefix = options2.globalConfigPath ? path2.join(id, "config.json") : path2.join("configstore", `${id}.json`);
|
@@ -7228,7 +7221,7 @@ var isWsl = { exports: {} }, isDocker_1, hasRequiredIsDocker;
|
|
7228
7221
|
function requireIsDocker() {
|
7229
7222
|
if (hasRequiredIsDocker) return isDocker_1;
|
7230
7223
|
hasRequiredIsDocker = 1;
|
7231
|
-
const fs2 = require$$0__default.default;
|
7224
|
+
const fs2 = require$$0__default$1.default;
|
7232
7225
|
let isDocker;
|
7233
7226
|
function hasDockerEnv() {
|
7234
7227
|
try {
|
@@ -7250,7 +7243,7 @@ var hasRequiredIsWsl;
|
|
7250
7243
|
function requireIsWsl() {
|
7251
7244
|
if (hasRequiredIsWsl) return isWsl.exports;
|
7252
7245
|
hasRequiredIsWsl = 1;
|
7253
|
-
const os2 = require$$0__default$2.default, fs2 = require$$0__default.default, isDocker = requireIsDocker(), isWsl$1 = () => {
|
7246
|
+
const os2 = require$$0__default$2.default, fs2 = require$$0__default$1.default, isDocker = requireIsDocker(), isWsl$1 = () => {
|
7254
7247
|
if (process.platform !== "linux")
|
7255
7248
|
return !1;
|
7256
7249
|
if (os2.release().toLowerCase().includes("microsoft"))
|
@@ -7284,7 +7277,7 @@ var open_1, hasRequiredOpen;
|
|
7284
7277
|
function requireOpen() {
|
7285
7278
|
if (hasRequiredOpen) return open_1;
|
7286
7279
|
hasRequiredOpen = 1;
|
7287
|
-
const path2 = require$$0__default
|
7280
|
+
const path2 = require$$0__default.default, childProcess2 = require$$1__default$2.default, { promises: fs2, constants: fsConstants } = require$$0__default$1.default, isWsl2 = requireIsWsl(), isDocker = requireIsDocker(), defineLazyProperty = requireDefineLazyProp(), localXdgOpenPath = path2.join(__dirname, "xdg-open"), { platform: platform2, arch } = process, hasContainerEnv = () => {
|
7288
7281
|
try {
|
7289
7282
|
return fs2.statSync("/run/.containerenv"), !0;
|
7290
7283
|
} catch {
|
@@ -8767,7 +8760,7 @@ function requireLoader$2() {
|
|
8767
8760
|
for (index = 0, length = documents.length; index < length; index += 1)
|
8768
8761
|
iterator2(documents[index]);
|
8769
8762
|
}
|
8770
|
-
function
|
8763
|
+
function load2(input2, options2) {
|
8771
8764
|
var documents = loadDocuments(input2, options2);
|
8772
8765
|
if (documents.length !== 0) {
|
8773
8766
|
if (documents.length === 1)
|
@@ -8782,9 +8775,9 @@ function requireLoader$2() {
|
|
8782
8775
|
return loadAll(input2, common2.extend({ schema: DEFAULT_SAFE_SCHEMA }, options2));
|
8783
8776
|
}
|
8784
8777
|
function safeLoad(input2, options2) {
|
8785
|
-
return
|
8778
|
+
return load2(input2, common2.extend({ schema: DEFAULT_SAFE_SCHEMA }, options2));
|
8786
8779
|
}
|
8787
|
-
return loader$2.loadAll = loadAll, loader$2.load =
|
8780
|
+
return loader$2.loadAll = loadAll, loader$2.load = load2, loader$2.safeLoadAll = safeLoadAll, loader$2.safeLoad = safeLoad, loader$2;
|
8788
8781
|
}
|
8789
8782
|
var dumper$2 = {}, hasRequiredDumper$2;
|
8790
8783
|
function requireDumper$2() {
|
@@ -10519,11 +10512,11 @@ var hasRequiredReadConfigFile;
|
|
10519
10512
|
function requireReadConfigFile() {
|
10520
10513
|
if (hasRequiredReadConfigFile) return readConfigFile;
|
10521
10514
|
hasRequiredReadConfigFile = 1;
|
10522
|
-
var __importDefault2 = readConfigFile
|
10515
|
+
var __importDefault2 = readConfigFile.__importDefault || function(mod) {
|
10523
10516
|
return mod && mod.__esModule ? mod : { default: mod };
|
10524
10517
|
};
|
10525
10518
|
Object.defineProperty(readConfigFile, "__esModule", { value: !0 }), readConfigFile.readConfigFile = void 0;
|
10526
|
-
const js_yaml_1 = __importDefault2(requireJsYaml$3()), toml_1 = __importDefault2(requireToml()), fs_1 = require$$0__default.default, error_utils_1 = requireDist$1(), { readFile } = fs_1.promises;
|
10519
|
+
const js_yaml_1 = __importDefault2(requireJsYaml$3()), toml_1 = __importDefault2(requireToml()), fs_1 = require$$0__default$1.default, error_utils_1 = requireDist$1(), { readFile } = fs_1.promises;
|
10527
10520
|
async function readFileOrNull(file) {
|
10528
10521
|
try {
|
10529
10522
|
return await readFile(file);
|
@@ -10558,7 +10551,7 @@ function requireTypes$2() {
|
|
10558
10551
|
var hasRequiredFrameworks;
|
10559
10552
|
function requireFrameworks() {
|
10560
10553
|
return hasRequiredFrameworks || (hasRequiredFrameworks = 1, function(exports2) {
|
10561
|
-
var __createBinding2 = frameworks
|
10554
|
+
var __createBinding2 = frameworks.__createBinding || (Object.create ? function(o, m, k, k2) {
|
10562
10555
|
k2 === void 0 && (k2 = k);
|
10563
10556
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
10564
10557
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
@@ -10566,11 +10559,11 @@ function requireFrameworks() {
|
|
10566
10559
|
} }), Object.defineProperty(o, k2, desc);
|
10567
10560
|
} : function(o, m, k, k2) {
|
10568
10561
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
10569
|
-
}), __exportStar2 = frameworks
|
10562
|
+
}), __exportStar2 = frameworks.__exportStar || function(m, exports3) {
|
10570
10563
|
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p) && __createBinding2(exports3, m, p);
|
10571
10564
|
};
|
10572
10565
|
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.frameworks = void 0;
|
10573
|
-
const path_1 = require$$0__default
|
10566
|
+
const path_1 = require$$0__default.default, fs_1 = require$$0__default$1.default, read_config_file_1 = requireReadConfigFile();
|
10574
10567
|
__exportStar2(requireTypes$2(), exports2);
|
10575
10568
|
const { readdir: readdir2, readFile, unlink: unlink2 } = fs_1.promises;
|
10576
10569
|
exports2.frameworks = [
|
@@ -12996,11 +12989,11 @@ var hasRequiredDetectBuilders;
|
|
12996
12989
|
function requireDetectBuilders() {
|
12997
12990
|
if (hasRequiredDetectBuilders) return detectBuilders;
|
12998
12991
|
hasRequiredDetectBuilders = 1;
|
12999
|
-
var __importDefault2 = detectBuilders
|
12992
|
+
var __importDefault2 = detectBuilders.__importDefault || function(mod) {
|
13000
12993
|
return mod && mod.__esModule ? mod : { default: mod };
|
13001
12994
|
};
|
13002
12995
|
Object.defineProperty(detectBuilders, "__esModule", { value: !0 }), detectBuilders.detectBuilders = detectBuilders.detectOutputDirectory = detectBuilders.detectApiDirectory = detectBuilders.detectApiExtensions = detectBuilders.sortFiles = void 0;
|
13003
|
-
const minimatch_12 = __importDefault2(requireMinimatch$1()), semver_1 = semver__default.default, path_1 = require$$0__default
|
12996
|
+
const minimatch_12 = __importDefault2(requireMinimatch$1()), semver_1 = semver__default.default, path_1 = require$$0__default.default, frameworks_1 = __importDefault2(requireFrameworks()), is_official_runtime_1 = requireIsOfficialRuntime(), slugToFramework = new Map(frameworks_1.default.map((f) => [f.slug, f]));
|
13004
12997
|
function sortFiles(fileA, fileB) {
|
13005
12998
|
return fileA.localeCompare(fileB);
|
13006
12999
|
}
|
@@ -13406,7 +13399,7 @@ function requireDetectBuilders() {
|
|
13406
13399
|
}
|
13407
13400
|
function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options2) {
|
13408
13401
|
const defaultRoutes = [], redirectRoutes = [], rewriteRoutes = [], errorRoutes = [], framework = frontendBuilder?.config?.framework || "", isNextjs = framework === "nextjs" || (0, is_official_runtime_1.isOfficialRuntime)("next", frontendBuilder?.use), ignoreRuntimes = slugToFramework.get(framework)?.ignoreRuntimes;
|
13409
|
-
if (apiRoutes
|
13402
|
+
if (apiRoutes.length > 0)
|
13410
13403
|
if (options2.featHandleMiss) {
|
13411
13404
|
const extSet = detectApiExtensions(apiBuilders);
|
13412
13405
|
if (extSet.size > 0) {
|
@@ -13467,7 +13460,7 @@ var detectFileSystemApi = {}, hasRequiredDetectFileSystemApi;
|
|
13467
13460
|
function requireDetectFileSystemApi() {
|
13468
13461
|
if (hasRequiredDetectFileSystemApi) return detectFileSystemApi;
|
13469
13462
|
hasRequiredDetectFileSystemApi = 1;
|
13470
|
-
var __importDefault2 = detectFileSystemApi
|
13463
|
+
var __importDefault2 = detectFileSystemApi.__importDefault || function(mod) {
|
13471
13464
|
return mod && mod.__esModule ? mod : { default: mod };
|
13472
13465
|
};
|
13473
13466
|
Object.defineProperty(detectFileSystemApi, "__esModule", { value: !0 }), detectFileSystemApi.detectFileSystemAPI = void 0;
|
@@ -13687,7 +13680,7 @@ function requireDetectFramework() {
|
|
13687
13680
|
var getProjectPaths = {}, hasRequiredGetProjectPaths;
|
13688
13681
|
function requireGetProjectPaths() {
|
13689
13682
|
return hasRequiredGetProjectPaths || (hasRequiredGetProjectPaths = 1, function(exports2) {
|
13690
|
-
var __importDefault2 = getProjectPaths
|
13683
|
+
var __importDefault2 = getProjectPaths.__importDefault || function(mod) {
|
13691
13684
|
return mod && mod.__esModule ? mod : { default: mod };
|
13692
13685
|
};
|
13693
13686
|
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.getProjectPaths = void 0;
|
@@ -13718,7 +13711,7 @@ var filesystem = {}, hasRequiredFilesystem;
|
|
13718
13711
|
function requireFilesystem() {
|
13719
13712
|
if (hasRequiredFilesystem) return filesystem;
|
13720
13713
|
hasRequiredFilesystem = 1, Object.defineProperty(filesystem, "__esModule", { value: !0 }), filesystem.DetectorFilesystem = void 0;
|
13721
|
-
const path_1 = require$$0__default
|
13714
|
+
const path_1 = require$$0__default.default;
|
13722
13715
|
class DetectorFilesystem {
|
13723
13716
|
constructor() {
|
13724
13717
|
this.hasPath = async (path2) => {
|
@@ -13755,11 +13748,11 @@ var localFileSystemDetector = {}, hasRequiredLocalFileSystemDetector;
|
|
13755
13748
|
function requireLocalFileSystemDetector() {
|
13756
13749
|
if (hasRequiredLocalFileSystemDetector) return localFileSystemDetector;
|
13757
13750
|
hasRequiredLocalFileSystemDetector = 1;
|
13758
|
-
var __importDefault2 = localFileSystemDetector
|
13751
|
+
var __importDefault2 = localFileSystemDetector.__importDefault || function(mod) {
|
13759
13752
|
return mod && mod.__esModule ? mod : { default: mod };
|
13760
13753
|
};
|
13761
13754
|
Object.defineProperty(localFileSystemDetector, "__esModule", { value: !0 }), localFileSystemDetector.LocalFileSystemDetector = void 0;
|
13762
|
-
const promises_1 = __importDefault2(require$$0__default$
|
13755
|
+
const promises_1 = __importDefault2(require$$0__default$9.default), path_1 = require$$0__default.default, filesystem_1 = requireFilesystem(), error_utils_1 = requireDist$1();
|
13763
13756
|
class LocalFileSystemDetector extends filesystem_1.DetectorFilesystem {
|
13764
13757
|
constructor(rootPath) {
|
13765
13758
|
super(), this.rootPath = rootPath;
|
@@ -13892,11 +13885,11 @@ var getWorkspaces = {}, hasRequiredGetWorkspaces;
|
|
13892
13885
|
function requireGetWorkspaces() {
|
13893
13886
|
if (hasRequiredGetWorkspaces) return getWorkspaces;
|
13894
13887
|
hasRequiredGetWorkspaces = 1;
|
13895
|
-
var __importDefault2 = getWorkspaces
|
13888
|
+
var __importDefault2 = getWorkspaces.__importDefault || function(mod) {
|
13896
13889
|
return mod && mod.__esModule ? mod : { default: mod };
|
13897
13890
|
};
|
13898
13891
|
Object.defineProperty(getWorkspaces, "__esModule", { value: !0 }), getWorkspaces.getWorkspaces = void 0;
|
13899
|
-
const path_1 = __importDefault2(require$$0__default
|
13892
|
+
const path_1 = __importDefault2(require$$0__default.default), workspace_managers_1 = requireWorkspaceManagers(), detect_framework_1 = requireDetectFramework(), MAX_DEPTH_TRAVERSE = 3, posixPath = path_1.default.posix;
|
13900
13893
|
async function getWorkspaces$1({ fs: fs2, depth = MAX_DEPTH_TRAVERSE, cwd = "/" }) {
|
13901
13894
|
if (depth === 0)
|
13902
13895
|
return [];
|
@@ -15018,7 +15011,7 @@ function requireLoader$1() {
|
|
15018
15011
|
for (var index = 0, length = documents.length; index < length; index += 1)
|
15019
15012
|
iterator2(documents[index]);
|
15020
15013
|
}
|
15021
|
-
function
|
15014
|
+
function load2(input2, options2) {
|
15022
15015
|
var documents = loadDocuments(input2, options2);
|
15023
15016
|
if (documents.length !== 0) {
|
15024
15017
|
if (documents.length === 1)
|
@@ -15026,7 +15019,7 @@ function requireLoader$1() {
|
|
15026
15019
|
throw new YAMLException("expected a single document in the stream, but found more");
|
15027
15020
|
}
|
15028
15021
|
}
|
15029
|
-
return loader$1.loadAll = loadAll, loader$1.load =
|
15022
|
+
return loader$1.loadAll = loadAll, loader$1.load = load2, loader$1;
|
15030
15023
|
}
|
15031
15024
|
var dumper$1 = {}, hasRequiredDumper$1;
|
15032
15025
|
function requireDumper$1() {
|
@@ -15353,7 +15346,7 @@ var old = {}, hasRequiredOld;
|
|
15353
15346
|
function requireOld() {
|
15354
15347
|
if (hasRequiredOld) return old;
|
15355
15348
|
hasRequiredOld = 1;
|
15356
|
-
var pathModule = require$$0__default
|
15349
|
+
var pathModule = require$$0__default.default, isWindows = process.platform === "win32", fs2 = require$$0__default$1.default, DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
15357
15350
|
function rethrow() {
|
15358
15351
|
var callback;
|
15359
15352
|
if (DEBUG) {
|
@@ -15469,7 +15462,7 @@ var fs_realpath, hasRequiredFs_realpath;
|
|
15469
15462
|
function requireFs_realpath() {
|
15470
15463
|
if (hasRequiredFs_realpath) return fs_realpath;
|
15471
15464
|
hasRequiredFs_realpath = 1, fs_realpath = realpath, realpath.realpath = realpath, realpath.sync = realpathSync2, realpath.realpathSync = realpathSync2, realpath.monkeypatch = monkeypatch, realpath.unmonkeypatch = unmonkeypatch;
|
15472
|
-
var fs2 = require$$0__default.default, origRealpath = fs2.realpath, origRealpathSync = fs2.realpathSync, version2 = process.version, ok = /^v[0-5]\./.test(version2), old2 = requireOld();
|
15465
|
+
var fs2 = require$$0__default$1.default, origRealpath = fs2.realpath, origRealpathSync = fs2.realpathSync, version2 = process.version, ok = /^v[0-5]\./.test(version2), old2 = requireOld();
|
15473
15466
|
function newError(er) {
|
15474
15467
|
return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG");
|
15475
15468
|
}
|
@@ -15961,7 +15954,7 @@ function requireCommon$1() {
|
|
15961
15954
|
function ownProp(obj, field) {
|
15962
15955
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
15963
15956
|
}
|
15964
|
-
var fs2 = require$$0__default.default, path2 = require$$0__default
|
15957
|
+
var fs2 = require$$0__default$1.default, path2 = require$$0__default.default, minimatch2 = requireMinimatch(), isAbsolute = require$$0__default.default.isAbsolute, Minimatch2 = minimatch2.Minimatch;
|
15965
15958
|
function alphasort(a, b) {
|
15966
15959
|
return a.localeCompare(b, "en");
|
15967
15960
|
}
|
@@ -16049,7 +16042,7 @@ function requireSync() {
|
|
16049
16042
|
hasRequiredSync = 1, sync$1 = globSync2, globSync2.GlobSync = GlobSync;
|
16050
16043
|
var rp = requireFs_realpath(), minimatch2 = requireMinimatch();
|
16051
16044
|
requireGlob().Glob;
|
16052
|
-
var path2 = require$$0__default
|
16045
|
+
var path2 = require$$0__default.default, assert = require$$0__default$5.default, isAbsolute = require$$0__default.default.isAbsolute, common2 = requireCommon$1(), setopts = common2.setopts, ownProp = common2.ownProp, childrenIgnored = common2.childrenIgnored, isIgnored = common2.isIgnored;
|
16053
16046
|
function globSync2(pattern, options2) {
|
16054
16047
|
if (typeof options2 == "function" || arguments.length === 3)
|
16055
16048
|
throw new TypeError(`callback provided to sync glob
|
@@ -16366,7 +16359,7 @@ var glob_1, hasRequiredGlob;
|
|
16366
16359
|
function requireGlob() {
|
16367
16360
|
if (hasRequiredGlob) return glob_1;
|
16368
16361
|
hasRequiredGlob = 1, glob_1 = glob2;
|
16369
|
-
var rp = requireFs_realpath(), minimatch2 = requireMinimatch(), inherits2 = requireInherits(), EE = require$$0__default$7.default.EventEmitter, path2 = require$$0__default
|
16362
|
+
var rp = requireFs_realpath(), minimatch2 = requireMinimatch(), inherits2 = requireInherits(), EE = require$$0__default$7.default.EventEmitter, path2 = require$$0__default.default, assert = require$$0__default$5.default, isAbsolute = require$$0__default.default.isAbsolute, globSync2 = requireSync(), common2 = requireCommon$1(), setopts = common2.setopts, ownProp = common2.ownProp, inflight = requireInflight(), childrenIgnored = common2.childrenIgnored, isIgnored = common2.isIgnored, once2 = requireOnce();
|
16370
16363
|
function glob2(pattern, options2, cb) {
|
16371
16364
|
if (typeof options2 == "function" && (cb = options2, options2 = {}), options2 || (options2 = {}), options2.sync) {
|
16372
16365
|
if (cb)
|
@@ -17547,11 +17540,11 @@ var lib$2 = JSON5, dist = /* @__PURE__ */ Object.freeze({
|
|
17547
17540
|
function requireGetGlobFs() {
|
17548
17541
|
if (hasRequiredGetGlobFs) return getGlobFs;
|
17549
17542
|
hasRequiredGetGlobFs = 1;
|
17550
|
-
var __importDefault2 = getGlobFs
|
17543
|
+
var __importDefault2 = getGlobFs.__importDefault || function(mod) {
|
17551
17544
|
return mod && mod.__esModule ? mod : { default: mod };
|
17552
17545
|
};
|
17553
17546
|
Object.defineProperty(getGlobFs, "__esModule", { value: !0 }), getGlobFs.getGlobFs = void 0;
|
17554
|
-
const fs_1 = __importDefault2(require$$0__default.default);
|
17547
|
+
const fs_1 = __importDefault2(require$$0__default$1.default);
|
17555
17548
|
function removeWindowsPrefix(path2) {
|
17556
17549
|
return path2.replace(/^[a-zA-Z]:/, "");
|
17557
17550
|
}
|
@@ -17609,11 +17602,11 @@ var hasRequiredGetWorkspacePackagePaths;
|
|
17609
17602
|
function requireGetWorkspacePackagePaths() {
|
17610
17603
|
if (hasRequiredGetWorkspacePackagePaths) return getWorkspacePackagePaths;
|
17611
17604
|
hasRequiredGetWorkspacePackagePaths = 1;
|
17612
|
-
var __importDefault2 = getWorkspacePackagePaths
|
17605
|
+
var __importDefault2 = getWorkspacePackagePaths.__importDefault || function(mod) {
|
17613
17606
|
return mod && mod.__esModule ? mod : { default: mod };
|
17614
17607
|
};
|
17615
17608
|
Object.defineProperty(getWorkspacePackagePaths, "__esModule", { value: !0 }), getWorkspacePackagePaths.getWorkspacePackagePaths = void 0;
|
17616
|
-
const path_1 = __importDefault2(require$$0__default
|
17609
|
+
const path_1 = __importDefault2(require$$0__default.default), js_yaml_1 = __importDefault2(requireJsYaml$2()), glob_12 = __importDefault2(requireGlob()), json5_1 = __importDefault2(require$$4$2), get_glob_fs_1 = requireGetGlobFs(), posixPath = path_1.default.posix;
|
17617
17610
|
async function getWorkspacePackagePaths$1({ fs: fs2, workspace }) {
|
17618
17611
|
const { type: type2, rootPath } = workspace, workspaceFs = fs2.chdir(rootPath);
|
17619
17612
|
let results = [];
|
@@ -17827,11 +17820,11 @@ var getMonorepoDefaultSettings = {}, hasRequiredGetMonorepoDefaultSettings;
|
|
17827
17820
|
function requireGetMonorepoDefaultSettings() {
|
17828
17821
|
if (hasRequiredGetMonorepoDefaultSettings) return getMonorepoDefaultSettings;
|
17829
17822
|
hasRequiredGetMonorepoDefaultSettings = 1;
|
17830
|
-
var __importDefault2 = getMonorepoDefaultSettings
|
17823
|
+
var __importDefault2 = getMonorepoDefaultSettings.__importDefault || function(mod) {
|
17831
17824
|
return mod && mod.__esModule ? mod : { default: mod };
|
17832
17825
|
};
|
17833
17826
|
Object.defineProperty(getMonorepoDefaultSettings, "__esModule", { value: !0 }), getMonorepoDefaultSettings.getMonorepoDefaultSettings = getMonorepoDefaultSettings.MissingBuildTarget = getMonorepoDefaultSettings.MissingBuildPipeline = void 0;
|
17834
|
-
const path_1 = require$$0__default
|
17827
|
+
const path_1 = require$$0__default.default, monorepo_managers_1 = requireMonorepoManagers(), package_managers_1 = requirePackageManagers(), detect_framework_1 = requireDetectFramework(), json5_1 = __importDefault2(require$$4$2), semver_1 = __importDefault2(semver__default.default);
|
17835
17828
|
class MissingBuildPipeline extends Error {
|
17836
17829
|
constructor() {
|
17837
17830
|
super("Missing required `build` pipeline in turbo.json or package.json Turbo configuration.");
|
@@ -17916,7 +17909,7 @@ function requireGetMonorepoDefaultSettings() {
|
|
17916
17909
|
var hasRequiredDist;
|
17917
17910
|
function requireDist() {
|
17918
17911
|
return hasRequiredDist || (hasRequiredDist = 1, function(exports2) {
|
17919
|
-
var __createBinding2 = dist$1
|
17912
|
+
var __createBinding2 = dist$1.__createBinding || (Object.create ? function(o, m, k, k2) {
|
17920
17913
|
k2 === void 0 && (k2 = k);
|
17921
17914
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
17922
17915
|
(!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() {
|
@@ -17924,7 +17917,7 @@ function requireDist() {
|
|
17924
17917
|
} }), Object.defineProperty(o, k2, desc);
|
17925
17918
|
} : function(o, m, k, k2) {
|
17926
17919
|
k2 === void 0 && (k2 = k), o[k2] = m[k];
|
17927
|
-
}), __exportStar2 = dist$1
|
17920
|
+
}), __exportStar2 = dist$1.__exportStar || function(m, exports3) {
|
17928
17921
|
for (var p in m) p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p) && __createBinding2(exports3, m, p);
|
17929
17922
|
};
|
17930
17923
|
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.packageManagers = exports2.isStaticRuntime = exports2.isOfficialRuntime = exports2.monorepoManagers = exports2.getWorkspacePackagePaths = exports2.getWorkspaces = exports2.workspaceManagers = exports2.LocalFileSystemDetector = exports2.DetectorFilesystem = exports2.getProjectPaths = exports2.detectFrameworkVersion = exports2.detectFrameworkRecord = exports2.detectFrameworks = exports2.detectFramework = exports2.detectFileSystemAPI = exports2.detectApiExtensions = exports2.detectApiDirectory = exports2.detectOutputDirectory = exports2.detectBuilders = void 0;
|
@@ -17996,7 +17989,7 @@ var distExports = requireDist(), execa$1 = { exports: {} }, crossSpawn = { expor
|
|
17996
17989
|
function requireWindows() {
|
17997
17990
|
if (hasRequiredWindows) return windows$1;
|
17998
17991
|
hasRequiredWindows = 1, windows$1 = isexe, isexe.sync = sync2;
|
17999
|
-
var fs2 = require$$0__default.default;
|
17992
|
+
var fs2 = require$$0__default$1.default;
|
18000
17993
|
function checkPathExt(path2, options2) {
|
18001
17994
|
var pathext = options2.pathExt !== void 0 ? options2.pathExt : process.env.PATHEXT;
|
18002
17995
|
if (!pathext || (pathext = pathext.split(";"), pathext.indexOf("") !== -1))
|
@@ -18025,7 +18018,7 @@ var mode, hasRequiredMode;
|
|
18025
18018
|
function requireMode() {
|
18026
18019
|
if (hasRequiredMode) return mode;
|
18027
18020
|
hasRequiredMode = 1, mode = isexe, isexe.sync = sync2;
|
18028
|
-
var fs2 = require$$0__default.default;
|
18021
|
+
var fs2 = require$$0__default$1.default;
|
18029
18022
|
function isexe(path2, options2, cb) {
|
18030
18023
|
fs2.stat(path2, function(er, stat2) {
|
18031
18024
|
cb(er, er ? !1 : checkStat(stat2, options2));
|
@@ -18078,7 +18071,7 @@ var which_1, hasRequiredWhich;
|
|
18078
18071
|
function requireWhich() {
|
18079
18072
|
if (hasRequiredWhich) return which_1;
|
18080
18073
|
hasRequiredWhich = 1;
|
18081
|
-
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", path2 = require$$0__default
|
18074
|
+
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", path2 = require$$0__default.default, COLON = isWindows ? ";" : ":", isexe = requireIsexe(), getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }), getPathInfo = (cmd, opt) => {
|
18082
18075
|
const colon = opt.colon || COLON, pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
18083
18076
|
// windows always checks the cwd first
|
18084
18077
|
...isWindows ? [process.cwd()] : [],
|
@@ -18150,7 +18143,7 @@ var resolveCommand_1, hasRequiredResolveCommand;
|
|
18150
18143
|
function requireResolveCommand() {
|
18151
18144
|
if (hasRequiredResolveCommand) return resolveCommand_1;
|
18152
18145
|
hasRequiredResolveCommand = 1;
|
18153
|
-
const path2 = require$$0__default
|
18146
|
+
const path2 = require$$0__default.default, which2 = requireWhich(), getPathKey = requirePathKey();
|
18154
18147
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
18155
18148
|
const env = parsed.options.env || process.env, cwd = process.cwd(), hasCustomCwd = parsed.options.cwd != null, shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
18156
18149
|
if (shouldSwitchCwd)
|
@@ -18209,7 +18202,7 @@ var readShebang_1, hasRequiredReadShebang;
|
|
18209
18202
|
function requireReadShebang() {
|
18210
18203
|
if (hasRequiredReadShebang) return readShebang_1;
|
18211
18204
|
hasRequiredReadShebang = 1;
|
18212
|
-
const fs2 = require$$0__default.default, shebangCommand2 = requireShebangCommand();
|
18205
|
+
const fs2 = require$$0__default$1.default, shebangCommand2 = requireShebangCommand();
|
18213
18206
|
function readShebang(command2) {
|
18214
18207
|
const buffer2 = Buffer.alloc(150);
|
18215
18208
|
let fd;
|
@@ -18225,7 +18218,7 @@ var parse_1$2, hasRequiredParse$3;
|
|
18225
18218
|
function requireParse$3() {
|
18226
18219
|
if (hasRequiredParse$3) return parse_1$2;
|
18227
18220
|
hasRequiredParse$3 = 1;
|
18228
|
-
const path2 = require$$0__default
|
18221
|
+
const path2 = require$$0__default.default, resolveCommand = requireResolveCommand(), escape2 = require_escape(), readShebang = requireReadShebang(), isWin = process.platform === "win32", isExecutableRegExp = /\.(?:com|exe)$/i, isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
18229
18222
|
function detectShebang(parsed) {
|
18230
18223
|
parsed.file = resolveCommand(parsed);
|
18231
18224
|
const shebang = parsed.file && readShebang(parsed.file);
|
@@ -18325,7 +18318,7 @@ function requireStripFinalNewline() {
|
|
18325
18318
|
var npmRunPath = { exports: {} }, hasRequiredNpmRunPath;
|
18326
18319
|
function requireNpmRunPath() {
|
18327
18320
|
return hasRequiredNpmRunPath || (hasRequiredNpmRunPath = 1, function(module2) {
|
18328
|
-
const path2 = require$$0__default
|
18321
|
+
const path2 = require$$0__default.default, pathKey2 = requirePathKey(), npmRunPath2 = (options2) => {
|
18329
18322
|
options2 = {
|
18330
18323
|
cwd: process.cwd(),
|
18331
18324
|
path: process.env[pathKey2()],
|
@@ -18385,7 +18378,7 @@ var error, hasRequiredError;
|
|
18385
18378
|
function requireError() {
|
18386
18379
|
if (hasRequiredError) return error;
|
18387
18380
|
hasRequiredError = 1;
|
18388
|
-
const os2 = require$$0__default$2.default, util2 = require$$0__default$
|
18381
|
+
const os2 = require$$0__default$2.default, util2 = require$$0__default$6.default, getCode = (error2, code) => error2 && error2.code ? [error2.code, os2.constants.errno[error2.code]] : Number.isInteger(code) ? [util2.getSystemErrorName(-code), code] : [], getErrorPrefix = ({ timedOut, timeout: timeout2, signal, exitCodeName, exitCode, isCanceled }) => timedOut ? `timed out after ${timeout2} milliseconds` : isCanceled ? "was canceled" : signal ? `was killed with ${signal}` : exitCode !== void 0 ? `failed with exit code ${exitCode} (${exitCodeName})` : "failed";
|
18389
18382
|
return error = ({
|
18390
18383
|
stdout,
|
18391
18384
|
stderr,
|
@@ -18615,7 +18608,7 @@ var hasRequiredGetStream;
|
|
18615
18608
|
function requireGetStream() {
|
18616
18609
|
if (hasRequiredGetStream) return getStream.exports;
|
18617
18610
|
hasRequiredGetStream = 1;
|
18618
|
-
const { constants: BufferConstants } = require$$0__default$
|
18611
|
+
const { constants: BufferConstants } = require$$0__default$a.default, pump = requirePump(), bufferStream2 = requireBufferStream();
|
18619
18612
|
class MaxBufferError extends Error {
|
18620
18613
|
constructor() {
|
18621
18614
|
super("maxBuffer exceeded"), this.name = "MaxBufferError";
|
@@ -18761,7 +18754,7 @@ var hasRequiredExeca;
|
|
18761
18754
|
function requireExeca() {
|
18762
18755
|
if (hasRequiredExeca) return execa$1.exports;
|
18763
18756
|
hasRequiredExeca = 1;
|
18764
|
-
const path2 = require$$0__default
|
18757
|
+
const path2 = require$$0__default.default, childProcess2 = require$$1__default$2.default, crossSpawn2 = requireCrossSpawn(), stripFinalNewline2 = requireStripFinalNewline(), npmRunPath2 = requireNpmRunPath(), onetime2 = requireOnetime$1(), makeError = requireError(), normalizeStdio = requireStdio(), { spawnedKill, spawnedCancel, setupTimeout, setExitHandler } = requireKill(), { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = requireStream(), { mergePromise, getSpawnedPromise } = requirePromise(), { joinCommand, parseCommand } = requireCommand(), DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100, getEnv = ({ env: envOption, extendEnv, preferLocal, localDir }) => {
|
18765
18758
|
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
18766
18759
|
return preferLocal ? npmRunPath2.env({ env, cwd: localDir }) : env;
|
18767
18760
|
}, handleArgs = (file, args, options2 = {}) => {
|
@@ -19049,7 +19042,7 @@ function requireToRegexRange() {
|
|
19049
19042
|
return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
|
19050
19043
|
};
|
19051
19044
|
function collatePatterns(neg, pos2, options2) {
|
19052
|
-
let onlyNegative = filterPatterns(neg, pos2, "-", !1)
|
19045
|
+
let onlyNegative = filterPatterns(neg, pos2, "-", !1), onlyPositive = filterPatterns(pos2, neg, "", !1), intersected = filterPatterns(neg, pos2, "-?", !0);
|
19053
19046
|
return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
|
19054
19047
|
}
|
19055
19048
|
function splitToRanges(min2, max2) {
|
@@ -19144,7 +19137,7 @@ var fillRange, hasRequiredFillRange;
|
|
19144
19137
|
function requireFillRange() {
|
19145
19138
|
if (hasRequiredFillRange) return fillRange;
|
19146
19139
|
hasRequiredFillRange = 1;
|
19147
|
-
const util2 = require$$0__default$
|
19140
|
+
const util2 = require$$0__default$6.default, toRegexRange = requireToRegexRange(), isObject2 = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber2 = (num) => Number.isInteger(+num), zeros = (input2) => {
|
19148
19141
|
let value = `${input2}`, index = -1;
|
19149
19142
|
if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
|
19150
19143
|
for (; value[++index] === "0"; ) ;
|
@@ -19622,7 +19615,7 @@ var utils$1 = {}, constants$1, hasRequiredConstants$1;
|
|
19622
19615
|
function requireConstants$1() {
|
19623
19616
|
if (hasRequiredConstants$1) return constants$1;
|
19624
19617
|
hasRequiredConstants$1 = 1;
|
19625
|
-
const path2 = require$$0__default
|
19618
|
+
const path2 = require$$0__default.default, WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
|
19626
19619
|
DOT_LITERAL,
|
19627
19620
|
PLUS_LITERAL,
|
19628
19621
|
QMARK_LITERAL,
|
@@ -19796,7 +19789,7 @@ function requireConstants$1() {
|
|
19796
19789
|
var hasRequiredUtils$1;
|
19797
19790
|
function requireUtils$1() {
|
19798
19791
|
return hasRequiredUtils$1 || (hasRequiredUtils$1 = 1, function(exports2) {
|
19799
|
-
const path2 = require$$0__default
|
19792
|
+
const path2 = require$$0__default.default, win32 = process.platform === "win32", {
|
19800
19793
|
REGEX_BACKSLASH,
|
19801
19794
|
REGEX_REMOVE_BACKSLASH,
|
19802
19795
|
REGEX_SPECIAL_CHARS,
|
@@ -20459,7 +20452,7 @@ var picomatch_1, hasRequiredPicomatch$1;
|
|
20459
20452
|
function requirePicomatch$1() {
|
20460
20453
|
if (hasRequiredPicomatch$1) return picomatch_1;
|
20461
20454
|
hasRequiredPicomatch$1 = 1;
|
20462
|
-
const path2 = require$$0__default
|
20455
|
+
const path2 = require$$0__default.default, scan2 = requireScan(), parse3 = requireParse$1(), utils2 = requireUtils$1(), constants2 = requireConstants$1(), isObject2 = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch2 = (glob2, options2, returnState = !1) => {
|
20463
20456
|
if (Array.isArray(glob2)) {
|
20464
20457
|
const fns = glob2.map((input2) => picomatch2(input2, options2, returnState));
|
20465
20458
|
return (str2) => {
|
@@ -20525,7 +20518,7 @@ var micromatch_1, hasRequiredMicromatch;
|
|
20525
20518
|
function requireMicromatch() {
|
20526
20519
|
if (hasRequiredMicromatch) return micromatch_1;
|
20527
20520
|
hasRequiredMicromatch = 1;
|
20528
|
-
const util2 = require$$0__default$
|
20521
|
+
const util2 = require$$0__default$6.default, braces = requireBraces(), picomatch2 = requirePicomatch(), utils2 = requireUtils$1(), isEmptyString = (v) => v === "" || v === "./", hasBraces = (v) => {
|
20529
20522
|
const index = v.indexOf("{");
|
20530
20523
|
return index > -1 && v.indexOf("}", index) > -1;
|
20531
20524
|
}, micromatch = (list2, patterns, options2) => {
|
@@ -20618,11 +20611,11 @@ var hasRequiredCore$3;
|
|
20618
20611
|
function requireCore$3() {
|
20619
20612
|
if (hasRequiredCore$3) return core$3;
|
20620
20613
|
hasRequiredCore$3 = 1;
|
20621
|
-
var __importDefault2 = core$3
|
20614
|
+
var __importDefault2 = core$3.__importDefault || function(mod) {
|
20622
20615
|
return mod && mod.__esModule ? mod : { default: mod };
|
20623
20616
|
};
|
20624
20617
|
Object.defineProperty(core$3, "__esModule", { value: !0 }), core$3.readPackageJSON = core$3.extractWorkspaces = core$3.isMatchWorkspaces = core$3.checkWorkspaces = core$3.findWorkspaceRoot = void 0;
|
20625
|
-
const path_1 = __importDefault2(require$$0__default
|
20618
|
+
const path_1 = __importDefault2(require$$0__default.default), pkg_dir_1 = __importDefault2(pkgDir__default.default), fs_1 = require$$0__default$1.default, micromatch_12 = __importDefault2(requireMicromatch());
|
20626
20619
|
function findWorkspaceRoot(initial) {
|
20627
20620
|
initial || (initial = process.cwd());
|
20628
20621
|
let _pkg = pkg_dir_1.default.sync(initial);
|
@@ -20789,7 +20782,7 @@ var hasRequiredLocatePath;
|
|
20789
20782
|
function requireLocatePath() {
|
20790
20783
|
if (hasRequiredLocatePath) return locatePath.exports;
|
20791
20784
|
hasRequiredLocatePath = 1;
|
20792
|
-
const path2 = require$$0__default
|
20785
|
+
const path2 = require$$0__default.default, fs2 = require$$0__default$1.default, { promisify } = require$$0__default$6.default, pLocate = requirePLocate(), fsStat = promisify(fs2.stat), fsLStat = promisify(fs2.lstat), typeMappings = {
|
20793
20786
|
directory: "isDirectory",
|
20794
20787
|
file: "isFile"
|
20795
20788
|
};
|
@@ -20835,7 +20828,7 @@ var pathExists = { exports: {} }, hasRequiredPathExists;
|
|
20835
20828
|
function requirePathExists() {
|
20836
20829
|
if (hasRequiredPathExists) return pathExists.exports;
|
20837
20830
|
hasRequiredPathExists = 1;
|
20838
|
-
const fs2 = require$$0__default.default, { promisify } = require$$0__default$
|
20831
|
+
const fs2 = require$$0__default$1.default, { promisify } = require$$0__default$6.default, pAccess = promisify(fs2.access);
|
20839
20832
|
return pathExists.exports = async (path2) => {
|
20840
20833
|
try {
|
20841
20834
|
return await pAccess(path2), !0;
|
@@ -20853,7 +20846,7 @@ function requirePathExists() {
|
|
20853
20846
|
var hasRequiredFindUp;
|
20854
20847
|
function requireFindUp() {
|
20855
20848
|
return hasRequiredFindUp || (hasRequiredFindUp = 1, function(module2) {
|
20856
|
-
const path2 = require$$0__default
|
20849
|
+
const path2 = require$$0__default.default, locatePath2 = requireLocatePath(), pathExists2 = requirePathExists(), stop = Symbol("findUp.stop");
|
20857
20850
|
module2.exports = async (name, options2 = {}) => {
|
20858
20851
|
let directory = path2.resolve(options2.cwd || "");
|
20859
20852
|
const { root: root2 } = path2.parse(directory), paths = [].concat(name), runMatcher = async (locateOptions) => {
|
@@ -22113,7 +22106,7 @@ function requireLoader() {
|
|
22113
22106
|
for (var index = 0, length = documents.length; index < length; index += 1)
|
22114
22107
|
iterator2(documents[index]);
|
22115
22108
|
}
|
22116
|
-
function
|
22109
|
+
function load2(input2, options2) {
|
22117
22110
|
var documents = loadDocuments(input2, options2);
|
22118
22111
|
if (documents.length !== 0) {
|
22119
22112
|
if (documents.length === 1)
|
@@ -22125,9 +22118,9 @@ function requireLoader() {
|
|
22125
22118
|
return typeof iterator2 == "object" && iterator2 !== null && typeof options2 > "u" && (options2 = iterator2, iterator2 = null), loadAll(input2, iterator2, common2.extend({ schema: DEFAULT_SAFE_SCHEMA }, options2));
|
22126
22119
|
}
|
22127
22120
|
function safeLoad(input2, options2) {
|
22128
|
-
return
|
22121
|
+
return load2(input2, common2.extend({ schema: DEFAULT_SAFE_SCHEMA }, options2));
|
22129
22122
|
}
|
22130
|
-
return loader.loadAll = loadAll, loader.load =
|
22123
|
+
return loader.loadAll = loadAll, loader.load = load2, loader.safeLoadAll = safeLoadAll, loader.safeLoad = safeLoad, loader;
|
22131
22124
|
}
|
22132
22125
|
var dumper = {}, hasRequiredDumper;
|
22133
22126
|
function requireDumper() {
|
@@ -22433,7 +22426,7 @@ var whichPm, hasRequiredWhichPm;
|
|
22433
22426
|
function requireWhichPm() {
|
22434
22427
|
if (hasRequiredWhichPm) return whichPm;
|
22435
22428
|
hasRequiredWhichPm = 1;
|
22436
|
-
const path2 = require$$0__default
|
22429
|
+
const path2 = require$$0__default.default, pathExists2 = requirePathExists(), loadYamlFile2 = requireLoadYamlFile();
|
22437
22430
|
whichPm = async function(pkgPath) {
|
22438
22431
|
const modulesPath = path2.join(pkgPath, "node_modules");
|
22439
22432
|
if (await pathExists2(path2.join(modulesPath, ".yarn-integrity"))) return { name: "yarn" };
|
@@ -22466,7 +22459,7 @@ var preferredPm, hasRequiredPreferredPm;
|
|
22466
22459
|
function requirePreferredPm() {
|
22467
22460
|
if (hasRequiredPreferredPm) return preferredPm;
|
22468
22461
|
hasRequiredPreferredPm = 1;
|
22469
|
-
const findYarnWorkspaceRoot = requireFindYarnWorkspaceRoot2(), findUp2 = requireFindUp(), path2 = require$$0__default
|
22462
|
+
const findYarnWorkspaceRoot = requireFindYarnWorkspaceRoot2(), findUp2 = requireFindUp(), path2 = require$$0__default.default, pathExists2 = requirePathExists(), whichPM = requireWhichPm();
|
22470
22463
|
return preferredPm = async function(pkgPath) {
|
22471
22464
|
if (typeof pkgPath != "string")
|
22472
22465
|
throw new TypeError(`pkgPath should be a string, got ${typeof pkgPath}`);
|
@@ -22717,7 +22710,7 @@ function requireIni() {
|
|
22717
22710
|
var hasRequiredGlobalDirs;
|
22718
22711
|
function requireGlobalDirs() {
|
22719
22712
|
return hasRequiredGlobalDirs || (hasRequiredGlobalDirs = 1, function(exports2) {
|
22720
|
-
const path2 = require$$0__default
|
22713
|
+
const path2 = require$$0__default.default, os2 = require$$0__default$2.default, fs2 = require$$0__default$1.default, ini2 = requireIni(), isWindows = process.platform === "win32", readRc = (filePath) => {
|
22721
22714
|
try {
|
22722
22715
|
return ini2.parse(fs2.readFileSync(filePath, "utf8")).prefix;
|
22723
22716
|
} catch {
|
@@ -22778,7 +22771,7 @@ var isPathInside, hasRequiredIsPathInside;
|
|
22778
22771
|
function requireIsPathInside() {
|
22779
22772
|
if (hasRequiredIsPathInside) return isPathInside;
|
22780
22773
|
hasRequiredIsPathInside = 1;
|
22781
|
-
const path2 = require$$0__default
|
22774
|
+
const path2 = require$$0__default.default;
|
22782
22775
|
return isPathInside = (childPath, parentPath) => {
|
22783
22776
|
const relation = path2.relative(parentPath, childPath);
|
22784
22777
|
return !!(relation && relation !== ".." && !relation.startsWith(`..${path2.sep}`) && relation !== path2.resolve(childPath));
|
@@ -22788,7 +22781,7 @@ var isInstalledGlobally$1, hasRequiredIsInstalledGlobally;
|
|
22788
22781
|
function requireIsInstalledGlobally() {
|
22789
22782
|
if (hasRequiredIsInstalledGlobally) return isInstalledGlobally$1;
|
22790
22783
|
hasRequiredIsInstalledGlobally = 1;
|
22791
|
-
const fs2 = require$$0__default.default, globalDirs2 = requireGlobalDirs(), isPathInside2 = requireIsPathInside();
|
22784
|
+
const fs2 = require$$0__default$1.default, globalDirs2 = requireGlobalDirs(), isPathInside2 = requireIsPathInside();
|
22792
22785
|
return isInstalledGlobally$1 = (() => {
|
22793
22786
|
try {
|
22794
22787
|
return isPathInside2(__dirname, globalDirs2.yarn.packages) || isPathInside2(__dirname, fs2.realpathSync(globalDirs2.npm.packages));
|
@@ -22867,7 +22860,7 @@ var gitconfiglocal, hasRequiredGitconfiglocal;
|
|
22867
22860
|
function requireGitconfiglocal() {
|
22868
22861
|
if (hasRequiredGitconfiglocal) return gitconfiglocal;
|
22869
22862
|
hasRequiredGitconfiglocal = 1;
|
22870
|
-
const fs2 = require$$0__default.default.promises, ini2 = requireIni$1(), path2 = require$$0__default
|
22863
|
+
const fs2 = require$$0__default$1.default.promises, ini2 = requireIni$1(), path2 = require$$0__default.default;
|
22871
22864
|
gitconfiglocal = async function(dir, options2 = {}) {
|
22872
22865
|
const config2 = await findGit(dir, options2);
|
22873
22866
|
if (!config2) throw new Error("no gitconfig to be found at " + dir);
|
@@ -22911,7 +22904,7 @@ var fsExistsSync, hasRequiredFsExistsSync;
|
|
22911
22904
|
function requireFsExistsSync() {
|
22912
22905
|
if (hasRequiredFsExistsSync) return fsExistsSync;
|
22913
22906
|
hasRequiredFsExistsSync = 1;
|
22914
|
-
var fs2 = require$$0__default.default;
|
22907
|
+
var fs2 = require$$0__default$1.default;
|
22915
22908
|
return fsExistsSync = function(filepath) {
|
22916
22909
|
try {
|
22917
22910
|
return (fs2.accessSync || fs2.statSync)(filepath), !0;
|
@@ -22984,7 +22977,7 @@ var polyfill, hasRequiredPolyfill;
|
|
22984
22977
|
function requirePolyfill() {
|
22985
22978
|
if (hasRequiredPolyfill) return polyfill;
|
22986
22979
|
hasRequiredPolyfill = 1;
|
22987
|
-
var fs2 = require$$0__default.default, parse3 = requireParsePasswd();
|
22980
|
+
var fs2 = require$$0__default$1.default, parse3 = requireParsePasswd();
|
22988
22981
|
function homedir() {
|
22989
22982
|
if (process.platform === "win32")
|
22990
22983
|
return process.env.USERPROFILE ? process.env.USERPROFILE : process.env.HOMEDRIVE && process.env.HOMEPATH ? process.env.HOMEDRIVE + process.env.HOMEPATH : process.env.HOME ? process.env.HOME : null;
|
@@ -23030,7 +23023,7 @@ var gitConfigPath, hasRequiredGitConfigPath;
|
|
23030
23023
|
function requireGitConfigPath() {
|
23031
23024
|
if (hasRequiredGitConfigPath) return gitConfigPath;
|
23032
23025
|
hasRequiredGitConfigPath = 1;
|
23033
|
-
var path2 = require$$0__default
|
23026
|
+
var path2 = require$$0__default.default, exists = requireFsExistsSync(), extend = requireExtendShallow(), homedir = requireHomedirPolyfill();
|
23034
23027
|
return gitConfigPath = function(type2, options2) {
|
23035
23028
|
typeof type2 != "string" && (options2 = type2, type2 = null);
|
23036
23029
|
var opts = extend({ cwd: process.cwd() }, options2);
|
@@ -23054,7 +23047,7 @@ var parseGitConfig, hasRequiredParseGitConfig;
|
|
23054
23047
|
function requireParseGitConfig() {
|
23055
23048
|
if (hasRequiredParseGitConfig) return parseGitConfig;
|
23056
23049
|
hasRequiredParseGitConfig = 1;
|
23057
|
-
var fs2 = require$$0__default.default, path2 = require$$0__default
|
23050
|
+
var fs2 = require$$0__default$1.default, path2 = require$$0__default.default, exists = requireFsExistsSync(), extend = requireExtendShallow(), configPath = requireGitConfigPath(), ini2 = requireIni$1();
|
23058
23051
|
function parse3(options2, cb) {
|
23059
23052
|
if (typeof options2 == "function" && (cb = options2, options2 = {}), typeof cb != "function")
|
23060
23053
|
throw new TypeError("parse-git-config async expects a callback function.");
|
@@ -23126,9 +23119,9 @@ function getProjectDefaults(workDir, { isPlugin, context }) {
|
|
23126
23119
|
license: "UNLICENSED",
|
23127
23120
|
author: getUserInfo(context),
|
23128
23121
|
// Don't try to use git remote from main Sanity project for plugins
|
23129
|
-
gitRemote: resolveGitRemote(cwd),
|
23122
|
+
gitRemote: isPlugin && isSanityRoot ? "" : resolveGitRemote(cwd),
|
23130
23123
|
// Don't try to guess plugin name if we're initing from Sanity root
|
23131
|
-
projectName: path__default.default.basename(cwd),
|
23124
|
+
projectName: isPlugin && isSanityRoot ? "" : path__default.default.basename(cwd),
|
23132
23125
|
// If we're initing a plugin, don't use description from Sanity readme
|
23133
23126
|
description: getProjectDescription({ isSanityRoot, isPlugin, outputDir: cwd })
|
23134
23127
|
});
|
@@ -23165,7 +23158,7 @@ async function getProjectDescription({
|
|
23165
23158
|
isPlugin,
|
23166
23159
|
outputDir
|
23167
23160
|
}) {
|
23168
|
-
if (!isSanityRoot)
|
23161
|
+
if (!(isSanityRoot && !isPlugin))
|
23169
23162
|
return Promise.resolve("");
|
23170
23163
|
try {
|
23171
23164
|
const readmePath = path__default.default.join(outputDir, "README.md"), match2 = (await fs__default.default.readFile(readmePath, { encoding: "utf8" })).match(/^# .*?\n+(\w.*?)(?:$|\n)/);
|
@@ -23495,7 +23488,7 @@ var minizlib = {}, constants, hasRequiredConstants;
|
|
23495
23488
|
function requireConstants() {
|
23496
23489
|
if (hasRequiredConstants) return constants;
|
23497
23490
|
hasRequiredConstants = 1;
|
23498
|
-
const realZlibConstants = require$$0__default$
|
23491
|
+
const realZlibConstants = require$$0__default$b.default.constants || /* istanbul ignore next */
|
23499
23492
|
{ ZLIB_VERNUM: 4736 };
|
23500
23493
|
return constants = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), {
|
23501
23494
|
Z_NO_FLUSH: 0,
|
@@ -23862,7 +23855,7 @@ var hasRequiredMinizlib;
|
|
23862
23855
|
function requireMinizlib() {
|
23863
23856
|
if (hasRequiredMinizlib) return minizlib;
|
23864
23857
|
hasRequiredMinizlib = 1;
|
23865
|
-
const assert = require$$0__default$
|
23858
|
+
const assert = require$$0__default$5.default, Buffer2 = require$$0__default$a.default.Buffer, realZlib = require$$0__default$b.default, constants2 = minizlib.constants = requireConstants(), Minipass2 = requireMinipass(), OriginalBufferConcat = Buffer2.concat, _superWrite = Symbol("_superWrite");
|
23866
23859
|
class ZlibError extends Error {
|
23867
23860
|
constructor(err) {
|
23868
23861
|
super("zlib: " + err.message), this.code = err.code, this.errno = err.errno, this.code || (this.code = "ZLIB_ERROR"), this.message = "zlib: " + err.message, Error.captureStackTrace(this, this.constructor);
|
@@ -24167,7 +24160,7 @@ var header, hasRequiredHeader;
|
|
24167
24160
|
function requireHeader() {
|
24168
24161
|
if (hasRequiredHeader) return header;
|
24169
24162
|
hasRequiredHeader = 1;
|
24170
|
-
const types2 = requireTypes$1(), pathModule = require$$0__default
|
24163
|
+
const types2 = requireTypes$1(), pathModule = require$$0__default.default.posix, large = requireLargeNumbers(), SLURP = Symbol("slurp"), TYPE = Symbol("type");
|
24171
24164
|
class Header {
|
24172
24165
|
constructor(data, off, ex, gex) {
|
24173
24166
|
this.cksumValid = !1, this.needPax = !1, this.nullBlock = !1, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[TYPE] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(data) ? this.decode(data, off || 0, ex, gex) : data && this.set(data);
|
@@ -24246,7 +24239,7 @@ var pax, hasRequiredPax;
|
|
24246
24239
|
function requirePax() {
|
24247
24240
|
if (hasRequiredPax) return pax;
|
24248
24241
|
hasRequiredPax = 1;
|
24249
|
-
const Header = requireHeader(), path2 = require$$0__default
|
24242
|
+
const Header = requireHeader(), path2 = require$$0__default.default;
|
24250
24243
|
class Pax {
|
24251
24244
|
constructor(obj, global2) {
|
24252
24245
|
this.atime = obj.atime || null, this.charset = obj.charset || null, this.comment = obj.comment || null, this.ctime = obj.ctime || null, this.gid = obj.gid || null, this.gname = obj.gname || null, this.linkpath = obj.linkpath || null, this.mtime = obj.mtime || null, this.path = obj.path || null, this.size = obj.size || null, this.uid = obj.uid || null, this.uname = obj.uname || null, this.dev = obj.dev || null, this.ino = obj.ino || null, this.nlink = obj.nlink || null, this.global = global2 || !1;
|
@@ -24345,7 +24338,7 @@ var stripAbsolutePath, hasRequiredStripAbsolutePath;
|
|
24345
24338
|
function requireStripAbsolutePath() {
|
24346
24339
|
if (hasRequiredStripAbsolutePath) return stripAbsolutePath;
|
24347
24340
|
hasRequiredStripAbsolutePath = 1;
|
24348
|
-
const { isAbsolute, parse: parse3 } = require$$0__default
|
24341
|
+
const { isAbsolute, parse: parse3 } = require$$0__default.default.win32;
|
24349
24342
|
return stripAbsolutePath = (path2) => {
|
24350
24343
|
let r = "", parsed = parse3(path2);
|
24351
24344
|
for (; isAbsolute(path2) || parsed.root; ) {
|
@@ -24363,7 +24356,7 @@ var writeEntry, hasRequiredWriteEntry;
|
|
24363
24356
|
function requireWriteEntry() {
|
24364
24357
|
if (hasRequiredWriteEntry) return writeEntry;
|
24365
24358
|
hasRequiredWriteEntry = 1;
|
24366
|
-
const { Minipass: Minipass2 } = requireMinipass$1(), Pax = requirePax(), Header = requireHeader(), fs2 = require$$0__default.default, path2 = require$$0__default
|
24359
|
+
const { Minipass: Minipass2 } = requireMinipass$1(), Pax = requirePax(), Header = requireHeader(), fs2 = require$$0__default$1.default, path2 = require$$0__default.default, normPath = requireNormalizeWindowsPath(), stripSlash = requireStripTrailingSlashes(), prefixPath = (path3, prefix) => prefix ? (path3 = normPath(path3).replace(/^\.(\/|$)/, ""), stripSlash(prefix) + "/" + path3) : normPath(path3), maxReadSize = 16 * 1024 * 1024, PROCESS2 = Symbol("process"), FILE = Symbol("file"), DIRECTORY = Symbol("directory"), SYMLINK = Symbol("symlink"), HARDLINK = Symbol("hardlink"), HEADER = Symbol("header"), READ2 = Symbol("read"), LSTAT = Symbol("lstat"), ONLSTAT = Symbol("onlstat"), ONREAD = Symbol("onread"), ONREADLINK = Symbol("onreadlink"), OPENFILE = Symbol("openfile"), ONOPENFILE = Symbol("onopenfile"), CLOSE = Symbol("close"), MODE = Symbol("mode"), AWAITDRAIN = Symbol("awaitDrain"), ONDRAIN = Symbol("ondrain"), PREFIX = Symbol("prefix"), HAD_ERROR = Symbol("hadError"), warner = requireWarnMixin(), winchars2 = requireWinchars(), stripAbsolutePath2 = requireStripAbsolutePath(), modeFix2 = requireModeFix(), WriteEntry = warner(class extends Minipass2 {
|
24367
24360
|
constructor(p, opt) {
|
24368
24361
|
if (opt = opt || {}, super(opt), typeof p != "string")
|
24369
24362
|
throw new TypeError("path is required");
|
@@ -24804,7 +24797,7 @@ function requirePack() {
|
|
24804
24797
|
this.path = path3 || "./", this.absolute = absolute, this.entry = null, this.stat = null, this.readdir = null, this.pending = !1, this.ignore = !1, this.piped = !1;
|
24805
24798
|
}
|
24806
24799
|
}
|
24807
|
-
const { Minipass: Minipass2 } = requireMinipass$1(), zlib = requireMinizlib(), ReadEntry = requireReadEntry(), WriteEntry = requireWriteEntry(), WriteEntrySync = WriteEntry.Sync, WriteEntryTar = WriteEntry.Tar, Yallist = requireYallist(), EOF2 = Buffer.alloc(1024), ONSTAT = Symbol("onStat"), ENDED = Symbol("ended"), QUEUE = Symbol("queue"), CURRENT = Symbol("current"), PROCESS2 = Symbol("process"), PROCESSING = Symbol("processing"), PROCESSJOB = Symbol("processJob"), JOBS = Symbol("jobs"), JOBDONE = Symbol("jobDone"), ADDFSENTRY = Symbol("addFSEntry"), ADDTARENTRY = Symbol("addTarEntry"), STAT = Symbol("stat"), READDIR = Symbol("readdir"), ONREADDIR = Symbol("onreaddir"), PIPE = Symbol("pipe"), ENTRY = Symbol("entry"), ENTRYOPT = Symbol("entryOpt"), WRITEENTRYCLASS = Symbol("writeEntryClass"), WRITE = Symbol("write"), ONDRAIN = Symbol("ondrain"), fs2 = require$$0__default.default, path2 = require$$0__default
|
24800
|
+
const { Minipass: Minipass2 } = requireMinipass$1(), zlib = requireMinizlib(), ReadEntry = requireReadEntry(), WriteEntry = requireWriteEntry(), WriteEntrySync = WriteEntry.Sync, WriteEntryTar = WriteEntry.Tar, Yallist = requireYallist(), EOF2 = Buffer.alloc(1024), ONSTAT = Symbol("onStat"), ENDED = Symbol("ended"), QUEUE = Symbol("queue"), CURRENT = Symbol("current"), PROCESS2 = Symbol("process"), PROCESSING = Symbol("processing"), PROCESSJOB = Symbol("processJob"), JOBS = Symbol("jobs"), JOBDONE = Symbol("jobDone"), ADDFSENTRY = Symbol("addFSEntry"), ADDTARENTRY = Symbol("addTarEntry"), STAT = Symbol("stat"), READDIR = Symbol("readdir"), ONREADDIR = Symbol("onreaddir"), PIPE = Symbol("pipe"), ENTRY = Symbol("entry"), ENTRYOPT = Symbol("entryOpt"), WRITEENTRYCLASS = Symbol("writeEntryClass"), WRITE = Symbol("write"), ONDRAIN = Symbol("ondrain"), fs2 = require$$0__default$1.default, path2 = require$$0__default.default, warner = requireWarnMixin(), normPath = requireNormalizeWindowsPath(), Pack = warner(class extends Minipass2 {
|
24808
24801
|
constructor(opt) {
|
24809
24802
|
if (super(opt), opt = opt || /* @__PURE__ */ Object.create(null), this.opt = opt, this.file = opt.file || "", this.cwd = opt.cwd || process.cwd(), this.maxReadSize = opt.maxReadSize, this.preservePaths = !!opt.preservePaths, this.strict = !!opt.strict, this.noPax = !!opt.noPax, this.prefix = normPath(opt.prefix || ""), this.linkCache = opt.linkCache || /* @__PURE__ */ new Map(), this.statCache = opt.statCache || /* @__PURE__ */ new Map(), this.readdirCache = opt.readdirCache || /* @__PURE__ */ new Map(), this[WRITEENTRYCLASS] = WriteEntry, typeof opt.onwarn == "function" && this.on("warn", opt.onwarn), this.portable = !!opt.portable, this.zip = null, opt.gzip || opt.brotli) {
|
24810
24803
|
if (opt.gzip && opt.brotli)
|
@@ -24974,7 +24967,7 @@ var fsMinipass = {}, hasRequiredFsMinipass;
|
|
24974
24967
|
function requireFsMinipass() {
|
24975
24968
|
if (hasRequiredFsMinipass) return fsMinipass;
|
24976
24969
|
hasRequiredFsMinipass = 1;
|
24977
|
-
const MiniPass = requireMinipass(), EE = require$$0__default$7.default.EventEmitter, fs2 = require$$0__default.default;
|
24970
|
+
const MiniPass = requireMinipass(), EE = require$$0__default$7.default.EventEmitter, fs2 = require$$0__default$1.default;
|
24978
24971
|
let writev = fs2.writev;
|
24979
24972
|
if (!writev) {
|
24980
24973
|
const binding = process.binding("fs"), FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
|
@@ -25390,7 +25383,7 @@ var list_1, hasRequiredList$1;
|
|
25390
25383
|
function requireList$1() {
|
25391
25384
|
if (hasRequiredList$1) return list_1;
|
25392
25385
|
hasRequiredList$1 = 1;
|
25393
|
-
const hlo = requireHighLevelOpt(), Parser = requireParse(), fs2 = require$$0__default.default, fsm = requireFsMinipass(), path2 = require$$0__default
|
25386
|
+
const hlo = requireHighLevelOpt(), Parser = requireParse(), fs2 = require$$0__default$1.default, fsm = requireFsMinipass(), path2 = require$$0__default.default, stripSlash = requireStripTrailingSlashes();
|
25394
25387
|
list_1 = (opt_, files, cb) => {
|
25395
25388
|
typeof opt_ == "function" ? (cb = opt_, files = null, opt_ = {}) : Array.isArray(opt_) && (files = opt_, opt_ = {}), typeof files == "function" && (cb = files, files = null), files ? files = Array.from(files) : files = [];
|
25396
25389
|
const opt = hlo(opt_);
|
@@ -25457,7 +25450,7 @@ var create_1, hasRequiredCreate;
|
|
25457
25450
|
function requireCreate() {
|
25458
25451
|
if (hasRequiredCreate) return create_1;
|
25459
25452
|
hasRequiredCreate = 1;
|
25460
|
-
const hlo = requireHighLevelOpt(), Pack = requirePack(), fsm = requireFsMinipass(), t = requireList$1(), path2 = require$$0__default
|
25453
|
+
const hlo = requireHighLevelOpt(), Pack = requirePack(), fsm = requireFsMinipass(), t = requireList$1(), path2 = require$$0__default.default;
|
25461
25454
|
create_1 = (opt_, files, cb) => {
|
25462
25455
|
if (typeof files == "function" && (cb = files), Array.isArray(opt_) && (files = opt_, opt_ = {}), !files || !Array.isArray(files) || !files.length)
|
25463
25456
|
throw new TypeError("no files or directories specified");
|
@@ -25517,7 +25510,7 @@ var replace_1, hasRequiredReplace;
|
|
25517
25510
|
function requireReplace() {
|
25518
25511
|
if (hasRequiredReplace) return replace_1;
|
25519
25512
|
hasRequiredReplace = 1;
|
25520
|
-
const hlo = requireHighLevelOpt(), Pack = requirePack(), fs2 = require$$0__default.default, fsm = requireFsMinipass(), t = requireList$1(), path2 = require$$0__default
|
25513
|
+
const hlo = requireHighLevelOpt(), Pack = requirePack(), fs2 = require$$0__default$1.default, fsm = requireFsMinipass(), t = requireList$1(), path2 = require$$0__default.default, Header = requireHeader();
|
25521
25514
|
replace_1 = (opt_, files, cb) => {
|
25522
25515
|
const opt = hlo(opt_);
|
25523
25516
|
if (!opt.file)
|
@@ -25681,11 +25674,11 @@ function requireUpdate() {
|
|
25681
25674
|
};
|
25682
25675
|
return update;
|
25683
25676
|
}
|
25684
|
-
var mkdir = { exports: {} }, optsArg_1, hasRequiredOptsArg;
|
25677
|
+
var mkdir$1 = { exports: {} }, optsArg_1, hasRequiredOptsArg;
|
25685
25678
|
function requireOptsArg() {
|
25686
25679
|
if (hasRequiredOptsArg) return optsArg_1;
|
25687
25680
|
hasRequiredOptsArg = 1;
|
25688
|
-
const { promisify } = require$$0__default$
|
25681
|
+
const { promisify } = require$$0__default$6.default, fs2 = require$$0__default$1.default;
|
25689
25682
|
return optsArg_1 = (opts) => {
|
25690
25683
|
if (!opts)
|
25691
25684
|
opts = { mode: 511, fs: fs2 };
|
@@ -25704,7 +25697,7 @@ var pathArg_1, hasRequiredPathArg;
|
|
25704
25697
|
function requirePathArg() {
|
25705
25698
|
if (hasRequiredPathArg) return pathArg_1;
|
25706
25699
|
hasRequiredPathArg = 1;
|
25707
|
-
const platform2 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform, { resolve, parse: parse3 } = require$$0__default
|
25700
|
+
const platform2 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform, { resolve, parse: parse3 } = require$$0__default.default;
|
25708
25701
|
return pathArg_1 = (path2) => {
|
25709
25702
|
if (/\0/.test(path2))
|
25710
25703
|
throw Object.assign(
|
@@ -25729,7 +25722,7 @@ var findMade_1, hasRequiredFindMade;
|
|
25729
25722
|
function requireFindMade() {
|
25730
25723
|
if (hasRequiredFindMade) return findMade_1;
|
25731
25724
|
hasRequiredFindMade = 1;
|
25732
|
-
const { dirname } = require$$0__default
|
25725
|
+
const { dirname } = require$$0__default.default, findMade = (opts, parent, path2 = void 0) => path2 === parent ? Promise.resolve() : opts.statAsync(parent).then(
|
25733
25726
|
(st) => st.isDirectory() ? path2 : void 0,
|
25734
25727
|
// will fail later
|
25735
25728
|
(er) => er.code === "ENOENT" ? findMade(opts, dirname(parent), parent) : void 0
|
@@ -25747,7 +25740,7 @@ var mkdirpManual_1, hasRequiredMkdirpManual;
|
|
25747
25740
|
function requireMkdirpManual() {
|
25748
25741
|
if (hasRequiredMkdirpManual) return mkdirpManual_1;
|
25749
25742
|
hasRequiredMkdirpManual = 1;
|
25750
|
-
const { dirname } = require$$0__default
|
25743
|
+
const { dirname } = require$$0__default.default, mkdirpManual = (path2, opts, made) => {
|
25751
25744
|
opts.recursive = !1;
|
25752
25745
|
const parent = dirname(path2);
|
25753
25746
|
return parent === path2 ? opts.mkdirAsync(path2, opts).catch((er) => {
|
@@ -25797,7 +25790,7 @@ var mkdirpNative_1, hasRequiredMkdirpNative;
|
|
25797
25790
|
function requireMkdirpNative() {
|
25798
25791
|
if (hasRequiredMkdirpNative) return mkdirpNative_1;
|
25799
25792
|
hasRequiredMkdirpNative = 1;
|
25800
|
-
const { dirname } = require$$0__default
|
25793
|
+
const { dirname } = require$$0__default.default, { findMade, findMadeSync } = requireFindMade(), { mkdirpManual, mkdirpManualSync } = requireMkdirpManual();
|
25801
25794
|
return mkdirpNative_1 = { mkdirpNative: (path2, opts) => (opts.recursive = !0, dirname(path2) === path2 ? opts.mkdirAsync(path2, opts) : findMade(opts, path2).then((made) => opts.mkdirAsync(path2, opts).then(() => made).catch((er) => {
|
25802
25795
|
if (er.code === "ENOENT")
|
25803
25796
|
return mkdirpManual(path2, opts);
|
@@ -25819,7 +25812,7 @@ var useNative_1, hasRequiredUseNative;
|
|
25819
25812
|
function requireUseNative() {
|
25820
25813
|
if (hasRequiredUseNative) return useNative_1;
|
25821
25814
|
hasRequiredUseNative = 1;
|
25822
|
-
const fs2 = require$$0__default.default, versArr2 = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split("."), hasNative2 = +versArr2[0] > 10 || +versArr2[0] == 10 && +versArr2[1] >= 12;
|
25815
|
+
const fs2 = require$$0__default$1.default, versArr2 = (process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version).replace(/^v/, "").split("."), hasNative2 = +versArr2[0] > 10 || +versArr2[0] == 10 && +versArr2[1] >= 12;
|
25823
25816
|
return useNative_1 = { useNative: hasNative2 ? (opts) => opts.mkdir === fs2.mkdir : () => !1, useNativeSync: hasNative2 ? (opts) => opts.mkdirSync === fs2.mkdirSync : () => !1 }, useNative_1;
|
25824
25817
|
}
|
25825
25818
|
var mkdirp_1, hasRequiredMkdirp;
|
@@ -25833,7 +25826,7 @@ var chownr_1, hasRequiredChownr;
|
|
25833
25826
|
function requireChownr() {
|
25834
25827
|
if (hasRequiredChownr) return chownr_1;
|
25835
25828
|
hasRequiredChownr = 1;
|
25836
|
-
const fs2 = require$$0__default.default, path2 = require$$0__default
|
25829
|
+
const fs2 = require$$0__default$1.default, path2 = require$$0__default.default, LCHOWN = fs2.lchown ? "lchown" : "chown", LCHOWNSYNC = fs2.lchownSync ? "lchownSync" : "chownSync", needEISDIRHandled = fs2.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), lchownSync = (path3, uid, gid) => {
|
25837
25830
|
try {
|
25838
25831
|
return fs2[LCHOWNSYNC](path3, uid, gid);
|
25839
25832
|
} catch (er) {
|
@@ -25931,9 +25924,9 @@ function requireChownr() {
|
|
25931
25924
|
}
|
25932
25925
|
var hasRequiredMkdir;
|
25933
25926
|
function requireMkdir() {
|
25934
|
-
if (hasRequiredMkdir) return mkdir.exports;
|
25927
|
+
if (hasRequiredMkdir) return mkdir$1.exports;
|
25935
25928
|
hasRequiredMkdir = 1;
|
25936
|
-
const mkdirp = requireMkdirp(), fs2 = require$$0__default.default, path2 = require$$0__default
|
25929
|
+
const mkdirp = requireMkdirp(), fs2 = require$$0__default$1.default, path2 = require$$0__default.default, chownr = requireChownr(), normPath = requireNormalizeWindowsPath();
|
25937
25930
|
class SymlinkError extends Error {
|
25938
25931
|
constructor(symlink, path3) {
|
25939
25932
|
super("Cannot extract through symbolic link"), this.path = path3, this.symlink = symlink;
|
@@ -25955,7 +25948,7 @@ function requireMkdir() {
|
|
25955
25948
|
(er || !st.isDirectory()) && (er = new CwdError(dir, er && er.code || "ENOTDIR")), cb(er);
|
25956
25949
|
});
|
25957
25950
|
};
|
25958
|
-
mkdir.exports = (dir, opt, cb) => {
|
25951
|
+
mkdir$1.exports = (dir, opt, cb) => {
|
25959
25952
|
dir = normPath(dir);
|
25960
25953
|
const umask = opt.umask, mode2 = opt.mode | 448, needChmod = (mode2 & umask) !== 0, uid = opt.uid, gid = opt.gid, doChown = typeof uid == "number" && typeof gid == "number" && (uid !== opt.processUid || gid !== opt.processGid), preserve = opt.preserve, unlink2 = opt.unlink, cache = opt.cache, cwd = normPath(opt.cwd), done = (er, created) => {
|
25961
25954
|
er ? cb(er) : (cSet(cache, dir, !0), created && doChown ? chownr(created, uid, gid, (er2) => done(er2)) : needChmod ? fs2.chmod(dir, mode2, cb) : cb());
|
@@ -26005,7 +25998,7 @@ function requireMkdir() {
|
|
26005
25998
|
throw new CwdError(dir, code);
|
26006
25999
|
}
|
26007
26000
|
};
|
26008
|
-
return mkdir.exports.sync = (dir, opt) => {
|
26001
|
+
return mkdir$1.exports.sync = (dir, opt) => {
|
26009
26002
|
dir = normPath(dir);
|
26010
26003
|
const umask = opt.umask, mode2 = opt.mode | 448, needChmod = (mode2 & umask) !== 0, uid = opt.uid, gid = opt.gid, doChown = typeof uid == "number" && typeof gid == "number" && (uid !== opt.processUid || gid !== opt.processGid), preserve = opt.preserve, unlink2 = opt.unlink, cache = opt.cache, cwd = normPath(opt.cwd), done = (created2) => {
|
26011
26004
|
cSet(cache, dir, !0), created2 && doChown && chownr.sync(created2, uid, gid), needChmod && fs2.chmodSync(dir, mode2);
|
@@ -26034,7 +26027,7 @@ function requireMkdir() {
|
|
26034
26027
|
return new SymlinkError(part, part + "/" + parts.join("/"));
|
26035
26028
|
}
|
26036
26029
|
return done(created);
|
26037
|
-
}, mkdir.exports;
|
26030
|
+
}, mkdir$1.exports;
|
26038
26031
|
}
|
26039
26032
|
var normalizeUnicode, hasRequiredNormalizeUnicode;
|
26040
26033
|
function requireNormalizeUnicode() {
|
@@ -26047,7 +26040,7 @@ var pathReservations, hasRequiredPathReservations;
|
|
26047
26040
|
function requirePathReservations() {
|
26048
26041
|
if (hasRequiredPathReservations) return pathReservations;
|
26049
26042
|
hasRequiredPathReservations = 1;
|
26050
|
-
const assert = require$$0__default$
|
26043
|
+
const assert = require$$0__default$5.default, normalize2 = requireNormalizeUnicode(), stripSlashes = requireStripTrailingSlashes(), { join } = require$$0__default.default, isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
26051
26044
|
return pathReservations = () => {
|
26052
26045
|
const queues = /* @__PURE__ */ new Map(), reservations = /* @__PURE__ */ new Map(), getDirs = (path2) => path2.split("/").slice(0, -1).reduce((set2, path3) => (set2.length && (path3 = join(set2[set2.length - 1], path3)), set2.push(path3 || "/"), set2), []), running = /* @__PURE__ */ new Set(), getQueues = (fn) => {
|
26053
26046
|
const res = reservations.get(fn);
|
@@ -26091,14 +26084,14 @@ var getWriteFlag, hasRequiredGetWriteFlag;
|
|
26091
26084
|
function requireGetWriteFlag() {
|
26092
26085
|
if (hasRequiredGetWriteFlag) return getWriteFlag;
|
26093
26086
|
hasRequiredGetWriteFlag = 1;
|
26094
|
-
const isWindows = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", fs2 = loadEnv.commonjsGlobal.__FAKE_TESTING_FS__ || require$$0__default.default, { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs2.constants, fMapEnabled = isWindows && !!UV_FS_O_FILEMAP, fMapLimit = 512 * 1024, fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
26087
|
+
const isWindows = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", fs2 = loadEnv.commonjsGlobal.__FAKE_TESTING_FS__ || require$$0__default$1.default, { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs2.constants, fMapEnabled = isWindows && !!UV_FS_O_FILEMAP, fMapLimit = 512 * 1024, fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
26095
26088
|
return getWriteFlag = fMapEnabled ? (size) => size < fMapLimit ? fMapFlag : "w" : () => "w", getWriteFlag;
|
26096
26089
|
}
|
26097
26090
|
var unpack, hasRequiredUnpack;
|
26098
26091
|
function requireUnpack() {
|
26099
26092
|
if (hasRequiredUnpack) return unpack;
|
26100
26093
|
hasRequiredUnpack = 1;
|
26101
|
-
const assert = require$$0__default$
|
26094
|
+
const assert = require$$0__default$5.default, Parser = requireParse(), fs2 = require$$0__default$1.default, fsm = requireFsMinipass(), path2 = require$$0__default.default, mkdir2 = requireMkdir(), wc = requireWinchars(), pathReservations2 = requirePathReservations(), stripAbsolutePath2 = requireStripAbsolutePath(), normPath = requireNormalizeWindowsPath(), stripSlash = requireStripTrailingSlashes(), normalize2 = requireNormalizeUnicode(), ONENTRY = Symbol("onEntry"), CHECKFS = Symbol("checkFs"), CHECKFS2 = Symbol("checkFs2"), PRUNECACHE = Symbol("pruneCache"), ISREUSABLE = Symbol("isReusable"), MAKEFS = Symbol("makeFs"), FILE = Symbol("file"), DIRECTORY = Symbol("directory"), LINK = Symbol("link"), SYMLINK = Symbol("symlink"), HARDLINK = Symbol("hardlink"), UNSUPPORTED = Symbol("unsupported"), CHECKPATH = Symbol("checkPath"), MKDIR = Symbol("mkdir"), ONERROR = Symbol("onError"), PENDING = Symbol("pending"), PEND = Symbol("pend"), UNPEND = Symbol("unpend"), ENDED = Symbol("ended"), MAYBECLOSE = Symbol("maybeClose"), SKIP = Symbol("skip"), DOCHOWN = Symbol("doChown"), UID = Symbol("uid"), GID = Symbol("gid"), CHECKED_CWD = Symbol("checkedCwd"), crypto = require$$3__default.default, getFlag = requireGetWriteFlag(), isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", DEFAULT_MAX_DEPTH = 1024, unlinkFile = (path3, cb) => {
|
26102
26095
|
if (!isWindows)
|
26103
26096
|
return fs2.unlink(path3, cb);
|
26104
26097
|
const name = path3 + ".DELETE." + crypto.randomBytes(16).toString("hex");
|
@@ -26557,7 +26550,7 @@ var extract_1, hasRequiredExtract;
|
|
26557
26550
|
function requireExtract() {
|
26558
26551
|
if (hasRequiredExtract) return extract_1;
|
26559
26552
|
hasRequiredExtract = 1;
|
26560
|
-
const hlo = requireHighLevelOpt(), Unpack = requireUnpack(), fs2 = require$$0__default.default, fsm = requireFsMinipass(), path2 = require$$0__default
|
26553
|
+
const hlo = requireHighLevelOpt(), Unpack = requireUnpack(), fs2 = require$$0__default$1.default, fsm = requireFsMinipass(), path2 = require$$0__default.default, stripSlash = requireStripTrailingSlashes();
|
26561
26554
|
extract_1 = (opt_, files, cb) => {
|
26562
26555
|
typeof opt_ == "function" ? (cb = opt_, files = null, opt_ = {}) : Array.isArray(opt_) && (files = opt_, opt_ = {}), typeof files == "function" && (cb = files, files = null), files ? files = Array.from(files) : files = [];
|
26563
26556
|
const opt = hlo(opt_);
|
@@ -35923,6 +35916,7 @@ function requirePrinter() {
|
|
35923
35916
|
function printGenerically(path3) {
|
35924
35917
|
return (0, comments_1.printComments)(path3, function(path4) {
|
35925
35918
|
return genericPrint(path4, config2, {
|
35919
|
+
includeComments: !0,
|
35926
35920
|
avoidRootParens: !1
|
35927
35921
|
}, printGenerically);
|
35928
35922
|
});
|
@@ -37224,7 +37218,7 @@ var hasRequiredMain$1;
|
|
37224
37218
|
function requireMain$1() {
|
37225
37219
|
return hasRequiredMain$1 || (hasRequiredMain$1 = 1, function(exports2) {
|
37226
37220
|
Object.defineProperty(exports2, "__esModule", { value: !0 }), exports2.run = exports2.prettyPrint = exports2.print = exports2.visit = exports2.types = exports2.parse = void 0;
|
37227
|
-
var tslib_1 = require$$0$3, fs_1 = tslib_1.__importDefault(require$$0__default.default), types2 = tslib_1.__importStar(requireMain$2());
|
37221
|
+
var tslib_1 = require$$0$3, fs_1 = tslib_1.__importDefault(require$$0__default$1.default), types2 = tslib_1.__importStar(requireMain$2());
|
37228
37222
|
exports2.types = types2;
|
37229
37223
|
var parser_1 = requireParser();
|
37230
37224
|
Object.defineProperty(exports2, "parse", { enumerable: !0, get: function() {
|
@@ -42946,28 +42940,28 @@ function requireLib$1() {
|
|
42946
42940
|
}), this.finishNode(node, "TSTupleType");
|
42947
42941
|
}
|
42948
42942
|
tsParseTupleElementType() {
|
42949
|
-
const
|
42943
|
+
const {
|
42950
42944
|
startLoc
|
42951
|
-
} = this.state;
|
42945
|
+
} = this.state, rest = this.eat(21);
|
42952
42946
|
let labeled, label, optional, type2;
|
42953
42947
|
const chAfterWord = tokenIsKeywordOrIdentifier(this.state.type) ? this.lookaheadCharCode() : null;
|
42954
42948
|
if (chAfterWord === 58)
|
42955
42949
|
labeled = !0, optional = !1, label = this.parseIdentifier(!0), this.expect(14), type2 = this.tsParseType();
|
42956
42950
|
else if (chAfterWord === 63) {
|
42957
42951
|
optional = !0;
|
42958
|
-
const wordName = this.state.value, typeOrLabel = this.tsParseNonArrayType();
|
42959
|
-
this.lookaheadCharCode() === 58 ? (labeled = !0, label = this.createIdentifier(this.startNodeAt(
|
42952
|
+
const startLoc2 = this.state.startLoc, wordName = this.state.value, typeOrLabel = this.tsParseNonArrayType();
|
42953
|
+
this.lookaheadCharCode() === 58 ? (labeled = !0, label = this.createIdentifier(this.startNodeAt(startLoc2), wordName), this.expect(17), this.expect(14), type2 = this.tsParseType()) : (labeled = !1, type2 = typeOrLabel, this.expect(17));
|
42960
42954
|
} else
|
42961
42955
|
type2 = this.tsParseType(), optional = this.eat(17), labeled = this.eat(14);
|
42962
42956
|
if (labeled) {
|
42963
42957
|
let labeledNode;
|
42964
|
-
label ? (labeledNode = this.
|
42958
|
+
label ? (labeledNode = this.startNodeAtNode(label), labeledNode.optional = optional, labeledNode.label = label, labeledNode.elementType = type2, this.eat(17) && (labeledNode.optional = !0, this.raise(TSErrors.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (labeledNode = this.startNodeAtNode(type2), labeledNode.optional = optional, this.raise(TSErrors.InvalidTupleMemberLabel, type2), labeledNode.label = type2, labeledNode.elementType = this.tsParseType()), type2 = this.finishNode(labeledNode, "TSNamedTupleMember");
|
42965
42959
|
} else if (optional) {
|
42966
|
-
const optionalTypeNode = this.
|
42960
|
+
const optionalTypeNode = this.startNodeAtNode(type2);
|
42967
42961
|
optionalTypeNode.typeAnnotation = type2, type2 = this.finishNode(optionalTypeNode, "TSOptionalType");
|
42968
42962
|
}
|
42969
42963
|
if (rest) {
|
42970
|
-
const restNode = this.startNodeAt(
|
42964
|
+
const restNode = this.startNodeAt(startLoc);
|
42971
42965
|
restNode.typeAnnotation = type2, type2 = this.finishNode(restNode, "TSRestType");
|
42972
42966
|
}
|
42973
42967
|
return type2;
|
@@ -42996,10 +42990,8 @@ function requireLib$1() {
|
|
42996
42990
|
return this.finishNode(node, "TSLiteralType");
|
42997
42991
|
}
|
42998
42992
|
tsParseTemplateLiteralType() {
|
42999
|
-
|
43000
|
-
|
43001
|
-
return node.literal = super.parseTemplate(!1), this.finishNode(node, "TSLiteralType");
|
43002
|
-
}
|
42993
|
+
const node = this.startNode();
|
42994
|
+
return node.literal = super.parseTemplate(!1), this.finishNode(node, "TSLiteralType");
|
43003
42995
|
}
|
43004
42996
|
parseTemplateSubstitution() {
|
43005
42997
|
return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution();
|
@@ -43054,16 +43046,13 @@ function requireLib$1() {
|
|
43054
43046
|
this.unexpected();
|
43055
43047
|
}
|
43056
43048
|
tsParseArrayTypeOrHigher() {
|
43057
|
-
const {
|
43058
|
-
startLoc
|
43059
|
-
} = this.state;
|
43060
43049
|
let type2 = this.tsParseNonArrayType();
|
43061
43050
|
for (; !this.hasPrecedingLineBreak() && this.eat(0); )
|
43062
43051
|
if (this.match(3)) {
|
43063
|
-
const node = this.
|
43052
|
+
const node = this.startNodeAtNode(type2);
|
43064
43053
|
node.elementType = type2, this.expect(3), type2 = this.finishNode(node, "TSArrayType");
|
43065
43054
|
} else {
|
43066
|
-
const node = this.
|
43055
|
+
const node = this.startNodeAtNode(type2);
|
43067
43056
|
node.objectType = type2, node.indexType = this.tsParseType(), this.expect(3), type2 = this.finishNode(node, "TSIndexedAccessType");
|
43068
43057
|
}
|
43069
43058
|
return type2;
|
@@ -43586,8 +43575,8 @@ function requireLib$1() {
|
|
43586
43575
|
}
|
43587
43576
|
parseExport(node, decorators) {
|
43588
43577
|
if (this.match(83)) {
|
43589
|
-
const nodeImportEquals = node;
|
43590
43578
|
this.next();
|
43579
|
+
const nodeImportEquals = node;
|
43591
43580
|
let maybeDefaultIdentifier = null;
|
43592
43581
|
return this.isContextual(130) && this.isPotentialImportPhase(!1) ? maybeDefaultIdentifier = this.parseMaybeImportPhase(nodeImportEquals, !1) : nodeImportEquals.importKind = "value", this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier, !0);
|
43593
43582
|
} else if (this.eat(29)) {
|
@@ -43702,7 +43691,7 @@ function requireLib$1() {
|
|
43702
43691
|
if (isDeclare && (this.isContextual(125) || !this.shouldParseExportDeclaration()))
|
43703
43692
|
throw this.raise(TSErrors.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
|
43704
43693
|
const declaration = tokenIsIdentifier(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(node);
|
43705
|
-
return declaration ? ((declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) && (node.exportKind = "type"), isDeclare &&
|
43694
|
+
return declaration ? ((declaration.type === "TSInterfaceDeclaration" || declaration.type === "TSTypeAliasDeclaration" || isDeclare) && (node.exportKind = "type"), isDeclare && (this.resetStartLocation(declaration, startLoc), declaration.declare = !0), declaration) : null;
|
43706
43695
|
}
|
43707
43696
|
parseClassId(node, isStatement, optionalId, bindingType) {
|
43708
43697
|
if ((!isStatement || optionalId) && this.isContextual(113))
|
@@ -49405,11 +49394,11 @@ class Minipass extends node_events.EventEmitter {
|
|
49405
49394
|
return isStream;
|
49406
49395
|
}
|
49407
49396
|
}
|
49408
|
-
const realpathSync = require$$0$
|
49409
|
-
lstatSync: require$$0$
|
49410
|
-
readdir: require$$0$
|
49411
|
-
readdirSync: require$$0$
|
49412
|
-
readlinkSync: require$$0$
|
49397
|
+
const realpathSync = require$$0$5.realpathSync.native, defaultFS = {
|
49398
|
+
lstatSync: require$$0$5.lstatSync,
|
49399
|
+
readdir: require$$0$5.readdir,
|
49400
|
+
readdirSync: require$$0$5.readdirSync,
|
49401
|
+
readlinkSync: require$$0$5.readlinkSync,
|
49413
49402
|
realpathSync,
|
49414
49403
|
promises: {
|
49415
49404
|
lstat: fs.lstat,
|
@@ -51503,7 +51492,7 @@ var platform = process.env.__TESTING_RIMRAF_PLATFORM__ || process.platform;
|
|
51503
51492
|
const pathArg = (path2, opt = {}) => {
|
51504
51493
|
const type2 = typeof path2;
|
51505
51494
|
if (type2 !== "string") {
|
51506
|
-
const ctor = path2 && type2 === "object" && path2.constructor, msg = `The "path" argument must be of type string. Received ${ctor && ctor.name ? `an instance of ${ctor.name}` : type2 === "object" ? require$$0$
|
51495
|
+
const ctor = path2 && type2 === "object" && path2.constructor, msg = `The "path" argument must be of type string. Received ${ctor && ctor.name ? `an instance of ${ctor.name}` : type2 === "object" ? require$$0$a.inspect(path2) : `type ${type2} ${path2}`}`;
|
51507
51496
|
throw Object.assign(new TypeError(msg), {
|
51508
51497
|
path: path2,
|
51509
51498
|
code: "ERR_INVALID_ARG_TYPE"
|
@@ -51516,8 +51505,8 @@ const pathArg = (path2, opt = {}) => {
|
|
51516
51505
|
code: "ERR_INVALID_ARG_VALUE"
|
51517
51506
|
});
|
51518
51507
|
}
|
51519
|
-
path2 = require$$0$
|
51520
|
-
const { root: root2 } = require$$0$
|
51508
|
+
path2 = require$$0$4.resolve(path2);
|
51509
|
+
const { root: root2 } = require$$0$4.parse(path2);
|
51521
51510
|
if (path2 === root2 && opt.preserveRoot !== !1) {
|
51522
51511
|
const msg = "refusing to remove root directory without preserveRoot:false";
|
51523
51512
|
throw Object.assign(new Error(msg), {
|
@@ -51526,7 +51515,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51526
51515
|
});
|
51527
51516
|
}
|
51528
51517
|
if (platform === "win32") {
|
51529
|
-
const badWinChars = /[*|"<>?:]/, { root: root3 } = require$$0$
|
51518
|
+
const badWinChars = /[*|"<>?:]/, { root: root3 } = require$$0$4.parse(path2);
|
51530
51519
|
if (badWinChars.test(path2.substring(root3.length)))
|
51531
51520
|
throw Object.assign(new Error("Illegal characters in path."), {
|
51532
51521
|
path: path2,
|
@@ -51534,8 +51523,9 @@ const pathArg = (path2, opt = {}) => {
|
|
51534
51523
|
});
|
51535
51524
|
}
|
51536
51525
|
return path2;
|
51537
|
-
}, readdirSync = (path2) => require$$0$
|
51526
|
+
}, readdirSync = (path2) => require$$0$5.readdirSync(path2, { withFileTypes: !0 }), chmod$2 = (path2, mode2) => new Promise((res, rej) => require$$0__default$1.default.chmod(path2, mode2, (er, ...d) => er ? rej(er) : res(...d))), mkdir = (path2, options2) => new Promise((res, rej) => require$$0__default$1.default.mkdir(path2, options2, (er, made) => er ? rej(er) : res(made))), readdir$1 = (path2) => new Promise((res, rej) => require$$0__default$1.default.readdir(path2, { withFileTypes: !0 }, (er, data) => er ? rej(er) : res(data))), rename$1 = (oldPath, newPath) => new Promise((res, rej) => require$$0__default$1.default.rename(oldPath, newPath, (er, ...d) => er ? rej(er) : res(...d))), rm$1 = (path2, options2) => new Promise((res, rej) => require$$0__default$1.default.rm(path2, options2, (er, ...d) => er ? rej(er) : res(...d))), rmdir$3 = (path2) => new Promise((res, rej) => require$$0__default$1.default.rmdir(path2, (er, ...d) => er ? rej(er) : res(...d))), stat$1 = (path2) => new Promise((res, rej) => require$$0__default$1.default.stat(path2, (er, data) => er ? rej(er) : res(data))), lstat$3 = (path2) => new Promise((res, rej) => require$$0__default$1.default.lstat(path2, (er, data) => er ? rej(er) : res(data))), unlink$3 = (path2) => new Promise((res, rej) => require$$0__default$1.default.unlink(path2, (er, ...d) => er ? rej(er) : res(...d))), promises = {
|
51538
51527
|
chmod: chmod$2,
|
51528
|
+
mkdir,
|
51539
51529
|
readdir: readdir$1,
|
51540
51530
|
rename: rename$1,
|
51541
51531
|
rm: rm$1,
|
@@ -51573,7 +51563,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51573
51563
|
if (opt?.signal?.aborted)
|
51574
51564
|
throw opt.signal.reason;
|
51575
51565
|
try {
|
51576
|
-
return rimrafPosixDirSync(path2, opt, require$$0$
|
51566
|
+
return rimrafPosixDirSync(path2, opt, require$$0$5.lstatSync(path2));
|
51577
51567
|
} catch (er) {
|
51578
51568
|
if (er?.code === "ENOENT")
|
51579
51569
|
return !0;
|
@@ -51592,7 +51582,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51592
51582
|
}
|
51593
51583
|
return opt.filter && !await opt.filter(path2, ent) ? !1 : (await ignoreENOENT(unlink$2(path2)), !0);
|
51594
51584
|
}
|
51595
|
-
return !(await Promise.all(entries.map((ent2) => rimrafPosixDir(require$$0$
|
51585
|
+
return !(await Promise.all(entries.map((ent2) => rimrafPosixDir(require$$0$4.resolve(path2, ent2.name), opt, ent2)))).reduce((a, b) => a && b, !0) || opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || opt.filter && !await opt.filter(path2, ent) ? !1 : (await ignoreENOENT(rmdir$2(path2)), !0);
|
51596
51586
|
}, rimrafPosixDirSync = (path2, opt, ent) => {
|
51597
51587
|
if (opt?.signal?.aborted)
|
51598
51588
|
throw opt.signal.reason;
|
@@ -51604,14 +51594,14 @@ const pathArg = (path2, opt = {}) => {
|
|
51604
51594
|
if (entries.code !== "ENOTDIR")
|
51605
51595
|
throw entries;
|
51606
51596
|
}
|
51607
|
-
return opt.filter && !opt.filter(path2, ent) ? !1 : (ignoreENOENTSync(() => require$$0$
|
51597
|
+
return opt.filter && !opt.filter(path2, ent) ? !1 : (ignoreENOENTSync(() => require$$0$5.unlinkSync(path2)), !0);
|
51608
51598
|
}
|
51609
51599
|
let removedAll = !0;
|
51610
51600
|
for (const ent2 of entries) {
|
51611
|
-
const p = require$$0$
|
51601
|
+
const p = require$$0$4.resolve(path2, ent2.name);
|
51612
51602
|
removedAll = rimrafPosixDirSync(p, opt, ent2) && removedAll;
|
51613
51603
|
}
|
51614
|
-
return opt.preserveRoot === !1 && path2 === require$$0$
|
51604
|
+
return opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || !removedAll || opt.filter && !opt.filter(path2, ent) ? !1 : (ignoreENOENTSync(() => require$$0$5.rmdirSync(path2)), !0);
|
51615
51605
|
}, { chmod: chmod$1 } = promises, fixEPERM = (fn) => async (path2) => {
|
51616
51606
|
try {
|
51617
51607
|
return await fn(path2);
|
@@ -51640,7 +51630,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51640
51630
|
return;
|
51641
51631
|
if (fer?.code === "EPERM") {
|
51642
51632
|
try {
|
51643
|
-
require$$0$
|
51633
|
+
require$$0$5.chmodSync(path2, 438);
|
51644
51634
|
} catch (er2) {
|
51645
51635
|
if (er2?.code === "ENOENT")
|
51646
51636
|
return;
|
@@ -51691,23 +51681,23 @@ const pathArg = (path2, opt = {}) => {
|
|
51691
51681
|
}
|
51692
51682
|
}, { stat } = promises, isDirSync = (path2) => {
|
51693
51683
|
try {
|
51694
|
-
return require$$0$
|
51684
|
+
return require$$0$5.statSync(path2).isDirectory();
|
51695
51685
|
} catch {
|
51696
51686
|
return !1;
|
51697
51687
|
}
|
51698
51688
|
}, isDir = (path2) => stat(path2).then((st) => st.isDirectory(), () => !1), win32DefaultTmp = async (path2) => {
|
51699
|
-
const { root: root2 } = require$$0$
|
51689
|
+
const { root: root2 } = require$$0$4.parse(path2), tmp2 = require$$0$6.tmpdir(), { root: tmpRoot } = require$$0$4.parse(tmp2);
|
51700
51690
|
if (root2.toLowerCase() === tmpRoot.toLowerCase())
|
51701
51691
|
return tmp2;
|
51702
|
-
const driveTmp = require$$0$
|
51692
|
+
const driveTmp = require$$0$4.resolve(root2, "/temp");
|
51703
51693
|
return await isDir(driveTmp) ? driveTmp : root2;
|
51704
51694
|
}, win32DefaultTmpSync = (path2) => {
|
51705
|
-
const { root: root2 } = require$$0$
|
51695
|
+
const { root: root2 } = require$$0$4.parse(path2), tmp2 = require$$0$6.tmpdir(), { root: tmpRoot } = require$$0$4.parse(tmp2);
|
51706
51696
|
if (root2.toLowerCase() === tmpRoot.toLowerCase())
|
51707
51697
|
return tmp2;
|
51708
|
-
const driveTmp = require$$0$
|
51698
|
+
const driveTmp = require$$0$4.resolve(root2, "/temp");
|
51709
51699
|
return isDirSync(driveTmp) ? driveTmp : root2;
|
51710
|
-
}, posixDefaultTmp = async () => require$$0$6.tmpdir(), posixDefaultTmpSync = () => require$$0$6.tmpdir(), defaultTmp = platform === "win32" ? win32DefaultTmp : posixDefaultTmp, defaultTmpSync = platform === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync, { lstat: lstat$1, rename, unlink: unlink$1, rmdir: rmdir$1, chmod } = promises, uniqueFilename = (path2) => `.${require$$0$
|
51700
|
+
}, posixDefaultTmp = async () => require$$0$6.tmpdir(), posixDefaultTmpSync = () => require$$0$6.tmpdir(), defaultTmp = platform === "win32" ? win32DefaultTmp : posixDefaultTmp, defaultTmpSync = platform === "win32" ? win32DefaultTmpSync : posixDefaultTmpSync, { lstat: lstat$1, rename, unlink: unlink$1, rmdir: rmdir$1, chmod } = promises, uniqueFilename = (path2) => `.${require$$0$4.basename(path2)}.${Math.random()}`, unlinkFixEPERM = async (path2) => unlink$1(path2).catch((er) => {
|
51711
51701
|
if (er.code === "EPERM")
|
51712
51702
|
return chmod(path2, 438).then(() => unlink$1(path2), (er2) => {
|
51713
51703
|
if (er2.code !== "ENOENT")
|
@@ -51718,11 +51708,11 @@ const pathArg = (path2, opt = {}) => {
|
|
51718
51708
|
throw er;
|
51719
51709
|
}), unlinkFixEPERMSync = (path2) => {
|
51720
51710
|
try {
|
51721
|
-
require$$0$
|
51711
|
+
require$$0$5.unlinkSync(path2);
|
51722
51712
|
} catch (er) {
|
51723
51713
|
if (er?.code === "EPERM")
|
51724
51714
|
try {
|
51725
|
-
return require$$0$
|
51715
|
+
return require$$0$5.chmodSync(path2, 438);
|
51726
51716
|
} catch (er2) {
|
51727
51717
|
if (er2?.code === "ENOENT")
|
51728
51718
|
return;
|
@@ -51747,7 +51737,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51747
51737
|
throw opt.signal.reason;
|
51748
51738
|
if (!opt.tmp)
|
51749
51739
|
return rimrafMoveRemoveDir(path2, { ...opt, tmp: await defaultTmp(path2) }, ent);
|
51750
|
-
if (path2 === opt.tmp && require$$0$
|
51740
|
+
if (path2 === opt.tmp && require$$0$4.parse(path2).root !== path2)
|
51751
51741
|
throw new Error("cannot delete temp directory used for deletion");
|
51752
51742
|
const entries = ent.isDirectory() ? await readdirOrError(path2) : null;
|
51753
51743
|
if (!Array.isArray(entries)) {
|
@@ -51759,15 +51749,15 @@ const pathArg = (path2, opt = {}) => {
|
|
51759
51749
|
}
|
51760
51750
|
return opt.filter && !await opt.filter(path2, ent) ? !1 : (await ignoreENOENT(tmpUnlink(path2, opt.tmp, unlinkFixEPERM)), !0);
|
51761
51751
|
}
|
51762
|
-
return !(await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(require$$0$
|
51752
|
+
return !(await Promise.all(entries.map((ent2) => rimrafMoveRemoveDir(require$$0$4.resolve(path2, ent2.name), opt, ent2)))).reduce((a, b) => a && b, !0) || opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || opt.filter && !await opt.filter(path2, ent) ? !1 : (await ignoreENOENT(tmpUnlink(path2, opt.tmp, rmdir$1)), !0);
|
51763
51753
|
}, tmpUnlink = async (path2, tmp2, rm2) => {
|
51764
|
-
const tmpFile = require$$0$
|
51754
|
+
const tmpFile = require$$0$4.resolve(tmp2, uniqueFilename(path2));
|
51765
51755
|
return await rename(path2, tmpFile), await rm2(tmpFile);
|
51766
51756
|
}, rimrafMoveRemoveSync = (path2, opt) => {
|
51767
51757
|
if (opt?.signal?.aborted)
|
51768
51758
|
throw opt.signal.reason;
|
51769
51759
|
try {
|
51770
|
-
return rimrafMoveRemoveDirSync(path2, opt, require$$0$
|
51760
|
+
return rimrafMoveRemoveDirSync(path2, opt, require$$0$5.lstatSync(path2));
|
51771
51761
|
} catch (er) {
|
51772
51762
|
if (er?.code === "ENOENT")
|
51773
51763
|
return !0;
|
@@ -51779,7 +51769,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51779
51769
|
if (!opt.tmp)
|
51780
51770
|
return rimrafMoveRemoveDirSync(path2, { ...opt, tmp: defaultTmpSync(path2) }, ent);
|
51781
51771
|
const tmp2 = opt.tmp;
|
51782
|
-
if (path2 === opt.tmp && require$$0$
|
51772
|
+
if (path2 === opt.tmp && require$$0$4.parse(path2).root !== path2)
|
51783
51773
|
throw new Error("cannot delete temp directory used for deletion");
|
51784
51774
|
const entries = ent.isDirectory() ? readdirOrErrorSync(path2) : null;
|
51785
51775
|
if (!Array.isArray(entries)) {
|
@@ -51793,14 +51783,14 @@ const pathArg = (path2, opt = {}) => {
|
|
51793
51783
|
}
|
51794
51784
|
let removedAll = !0;
|
51795
51785
|
for (const ent2 of entries) {
|
51796
|
-
const p = require$$0$
|
51786
|
+
const p = require$$0$4.resolve(path2, ent2.name);
|
51797
51787
|
removedAll = rimrafMoveRemoveDirSync(p, opt, ent2) && removedAll;
|
51798
51788
|
}
|
51799
|
-
return !removedAll || opt.preserveRoot === !1 && path2 === require$$0$
|
51789
|
+
return !removedAll || opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || opt.filter && !opt.filter(path2, ent) ? !1 : (ignoreENOENTSync(() => tmpUnlinkSync(path2, tmp2, require$$0$5.rmdirSync)), !0);
|
51800
51790
|
}, tmpUnlinkSync = (path2, tmp2, rmSync) => {
|
51801
|
-
const tmpFile = require$$0$
|
51802
|
-
return require$$0$
|
51803
|
-
}, { unlink, rmdir, lstat } = promises, rimrafWindowsFile = retryBusy(fixEPERM(unlink)), rimrafWindowsFileSync = retryBusySync(fixEPERMSync(require$$0$
|
51791
|
+
const tmpFile = require$$0$4.resolve(tmp2, uniqueFilename(path2));
|
51792
|
+
return require$$0$5.renameSync(path2, tmpFile), rmSync(tmpFile);
|
51793
|
+
}, { unlink, rmdir, lstat } = promises, rimrafWindowsFile = retryBusy(fixEPERM(unlink)), rimrafWindowsFileSync = retryBusySync(fixEPERMSync(require$$0$5.unlinkSync)), rimrafWindowsDirRetry = retryBusy(fixEPERM(rmdir)), rimrafWindowsDirRetrySync = retryBusySync(fixEPERMSync(require$$0$5.rmdirSync)), rimrafWindowsDirMoveRemoveFallback = async (path2, opt) => {
|
51804
51794
|
if (opt?.signal?.aborted)
|
51805
51795
|
throw opt.signal.reason;
|
51806
51796
|
const { filter: filter2, ...options2 } = opt;
|
@@ -51836,7 +51826,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51836
51826
|
if (opt?.signal?.aborted)
|
51837
51827
|
throw opt.signal.reason;
|
51838
51828
|
try {
|
51839
|
-
return rimrafWindowsDirSync(path2, opt, require$$0$
|
51829
|
+
return rimrafWindowsDirSync(path2, opt, require$$0$5.lstatSync(path2), START);
|
51840
51830
|
} catch (er) {
|
51841
51831
|
if (er?.code === "ENOENT")
|
51842
51832
|
return !0;
|
@@ -51855,11 +51845,11 @@ const pathArg = (path2, opt = {}) => {
|
|
51855
51845
|
}
|
51856
51846
|
return opt.filter && !await opt.filter(path2, ent) ? !1 : (await ignoreENOENT(rimrafWindowsFile(path2, opt)), !0);
|
51857
51847
|
}
|
51858
|
-
const s = state === START ? CHILD : state, removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(require$$0$
|
51848
|
+
const s = state === START ? CHILD : state, removedAll = (await Promise.all(entries.map((ent2) => rimrafWindowsDir(require$$0$4.resolve(path2, ent2.name), opt, ent2, s)))).reduce((a, b) => a && b, !0);
|
51859
51849
|
if (state === START)
|
51860
51850
|
return rimrafWindowsDir(path2, opt, ent, FINISH);
|
51861
51851
|
if (state === FINISH) {
|
51862
|
-
if (opt.preserveRoot === !1 && path2 === require$$0$
|
51852
|
+
if (opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || !removedAll || opt.filter && !await opt.filter(path2, ent))
|
51863
51853
|
return !1;
|
51864
51854
|
await ignoreENOENT(rimrafWindowsDirMoveRemoveFallback(path2, opt));
|
51865
51855
|
}
|
@@ -51877,13 +51867,13 @@ const pathArg = (path2, opt = {}) => {
|
|
51877
51867
|
}
|
51878
51868
|
let removedAll = !0;
|
51879
51869
|
for (const ent2 of entries) {
|
51880
|
-
const s = state === START ? CHILD : state, p = require$$0$
|
51870
|
+
const s = state === START ? CHILD : state, p = require$$0$4.resolve(path2, ent2.name);
|
51881
51871
|
removedAll = rimrafWindowsDirSync(p, opt, ent2, s) && removedAll;
|
51882
51872
|
}
|
51883
51873
|
if (state === START)
|
51884
51874
|
return rimrafWindowsDirSync(path2, opt, ent, FINISH);
|
51885
51875
|
if (state === FINISH) {
|
51886
|
-
if (opt.preserveRoot === !1 && path2 === require$$0$
|
51876
|
+
if (opt.preserveRoot === !1 && path2 === require$$0$4.parse(path2).root || !removedAll || opt.filter && !opt.filter(path2, ent))
|
51887
51877
|
return !1;
|
51888
51878
|
ignoreENOENTSync(() => {
|
51889
51879
|
rimrafWindowsDirMoveRemoveFallbackSync(path2, opt);
|
@@ -51894,7 +51884,7 @@ const pathArg = (path2, opt = {}) => {
|
|
51894
51884
|
...opt,
|
51895
51885
|
force: !0,
|
51896
51886
|
recursive: !0
|
51897
|
-
}), !0), rimrafNativeSync = (path2, opt) => (require$$0$
|
51887
|
+
}), !0), rimrafNativeSync = (path2, opt) => (require$$0$5.rmSync(path2, {
|
51898
51888
|
...opt,
|
51899
51889
|
force: !0,
|
51900
51890
|
recursive: !0
|
@@ -52642,10 +52632,9 @@ ${err.message}`);
|
|
52642
52632
|
const user = await getUserData(apiClient);
|
52643
52633
|
success("You are logged in as %s using %s", user.email, getProviderName(user.provider));
|
52644
52634
|
} else unattended || (trace.log({ step: "login" }), await getOrCreateUser());
|
52645
|
-
const isCoreAppTemplate = cliFlags.template ? determineCoreAppTemplate(cliFlags.template) : !1;
|
52646
52635
|
let introMessage = "Fetching existing projects";
|
52647
|
-
cliFlags.quickstart && (introMessage = "Eject your existing project's Sanity configuration"),
|
52648
|
-
const flags = await prepareFlags(), { projectId, displayName, isFirstProject, datasetName, schemaUrl } = await getProjectDetails(), sluggedName = lodashExports.deburr(displayName.toLowerCase()).replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
|
52636
|
+
cliFlags.quickstart && (introMessage = "Eject your existing project's Sanity configuration"), success(introMessage), print("");
|
52637
|
+
const flags = await prepareFlags(), isCoreAppTemplate = cliFlags.template ? determineCoreAppTemplate(cliFlags.template) : !1, { projectId, displayName, isFirstProject, datasetName, schemaUrl } = await getProjectDetails(), sluggedName = lodashExports.deburr(displayName.toLowerCase()).replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
|
52649
52638
|
if (bareOutput) {
|
52650
52639
|
success("Below are your project details"), print(""), print(`Project ID: ${chalk2.cyan(projectId)}`), print(`Dataset: ${chalk2.cyan(datasetName)}`), print(
|
52651
52640
|
`
|
@@ -52854,7 +52843,9 @@ ${chalk2.green("Success!")} Now, use these commands to continue:
|
|
52854
52843
|
method: "POST"
|
52855
52844
|
}).catch(lodashExports.noop)), trace.complete();
|
52856
52845
|
async function getOrCreateUser() {
|
52857
|
-
warn("No authentication credentials found in your Sanity config"), print("")
|
52846
|
+
warn("No authentication credentials found in your Sanity config"), print("");
|
52847
|
+
const { extOptions, ...otherArgs } = args, loginArgs = { ...otherArgs, extOptions: {} };
|
52848
|
+
await login(loginArgs, { ...context, telemetry: trace.newContext("login") });
|
52858
52849
|
}
|
52859
52850
|
async function getProjectDetails() {
|
52860
52851
|
if (flags.quickstart) {
|
@@ -52880,8 +52871,10 @@ ${chalk2.green("Success!")} Now, use these commands to continue:
|
|
52880
52871
|
loadEnv.debug(`Project with name ${project.displayName} selected`), loadEnv.debug("Prompting user to select or create a dataset");
|
52881
52872
|
const dataset = await getOrCreateDataset({
|
52882
52873
|
projectId: project.projectId,
|
52874
|
+
displayName: project.displayName,
|
52883
52875
|
dataset: flags.dataset,
|
52884
|
-
aclMode: flags.visibility
|
52876
|
+
aclMode: flags.visibility,
|
52877
|
+
defaultConfig: flags["dataset-default"]
|
52885
52878
|
});
|
52886
52879
|
return loadEnv.debug(`Dataset with name ${dataset.datasetName} selected`), trace.log({
|
52887
52880
|
step: "createOrSelectDataset",
|
@@ -53959,7 +53952,23 @@ const process$1 = globalThis.process, {
|
|
53959
53952
|
*
|
53960
53953
|
* Returns a function that may be used to unload signal-exit.
|
53961
53954
|
*/
|
53962
|
-
onExit
|
53955
|
+
onExit,
|
53956
|
+
/**
|
53957
|
+
* Load the listeners. Likely you never need to call this, unless
|
53958
|
+
* doing a rather deep integration with signal-exit functionality.
|
53959
|
+
* Mostly exposed for the benefit of testing.
|
53960
|
+
*
|
53961
|
+
* @internal
|
53962
|
+
*/
|
53963
|
+
load,
|
53964
|
+
/**
|
53965
|
+
* Unload the listeners. Likely you never need to call this, unless
|
53966
|
+
* doing a rather deep integration with signal-exit functionality.
|
53967
|
+
* Mostly exposed for the benefit of testing.
|
53968
|
+
*
|
53969
|
+
* @internal
|
53970
|
+
*/
|
53971
|
+
unload
|
53963
53972
|
} = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback()), terminal = process__default.default.stderr.isTTY ? process__default.default.stderr : process__default.default.stdout.isTTY ? process__default.default.stdout : void 0, restoreCursor$1 = terminal ? onetime$1(() => {
|
53964
53973
|
onExit(() => {
|
53965
53974
|
terminal.write("\x1B[?25h");
|
@@ -61467,7 +61476,7 @@ var choices, hasRequiredChoices;
|
|
61467
61476
|
function requireChoices() {
|
61468
61477
|
if (hasRequiredChoices) return choices;
|
61469
61478
|
hasRequiredChoices = 1;
|
61470
|
-
var assert = require$$0__default$
|
61479
|
+
var assert = require$$0__default$5.default, _ = requireLodash(), Separator = requireSeparator(), Choice = requireChoice();
|
61471
61480
|
return choices = class {
|
61472
61481
|
constructor(choices2, answers) {
|
61473
61482
|
this.choices = choices2.map((val) => val.type === "separator" ? (val instanceof Separator || (val = new Separator(val.line)), val) : new Choice(val, answers)), this.realChoices = this.choices.filter(Separator.exclude).filter((item) => !item.disabled), Object.defineProperty(this, "length", {
|
@@ -61545,7 +61554,7 @@ function requireCliWidth() {
|
|
61545
61554
|
var defaultOpts = {
|
61546
61555
|
defaultWidth: 0,
|
61547
61556
|
output: process.stdout,
|
61548
|
-
tty: require$$0__default$
|
61557
|
+
tty: require$$0__default$c.default
|
61549
61558
|
};
|
61550
61559
|
return options2 ? (Object.keys(defaultOpts).forEach(function(key2) {
|
61551
61560
|
options2[key2] || (options2[key2] = defaultOpts[key2]);
|
@@ -62528,7 +62537,7 @@ function requireUtf8() {
|
|
62528
62537
|
var unicode = { exports: {} }, hasRequiredUnicode;
|
62529
62538
|
function requireUnicode() {
|
62530
62539
|
return hasRequiredUnicode || (hasRequiredUnicode = 1, function(module2) {
|
62531
|
-
var util2 = require$$0__default$
|
62540
|
+
var util2 = require$$0__default$6.default, Match = requireMatch();
|
62532
62541
|
module2.exports.UTF_16BE = function() {
|
62533
62542
|
this.name = function() {
|
62534
62543
|
return "UTF-16BE";
|
@@ -62574,7 +62583,7 @@ function requireUnicode() {
|
|
62574
62583
|
var mbcs = { exports: {} }, hasRequiredMbcs;
|
62575
62584
|
function requireMbcs() {
|
62576
62585
|
return hasRequiredMbcs || (hasRequiredMbcs = 1, function(module2) {
|
62577
|
-
var util2 = require$$0__default$
|
62586
|
+
var util2 = require$$0__default$6.default, Match = requireMatch();
|
62578
62587
|
function binarySearch2(arr, searchValue) {
|
62579
62588
|
function find2(arr2, searchValue2, left, right) {
|
62580
62589
|
if (right < left)
|
@@ -63183,7 +63192,7 @@ function requireMbcs() {
|
|
63183
63192
|
var sbcs = { exports: {} }, hasRequiredSbcs;
|
63184
63193
|
function requireSbcs() {
|
63185
63194
|
return hasRequiredSbcs || (hasRequiredSbcs = 1, function(module2) {
|
63186
|
-
var util2 = require$$0__default$
|
63195
|
+
var util2 = require$$0__default$6.default, Match = requireMatch();
|
63187
63196
|
function NGramParser(theNgramList, theByteMap) {
|
63188
63197
|
var N_GRAM_MASK = 16777215;
|
63189
63198
|
this.byteIndex = 0, this.ngram = 0, this.ngramList = theNgramList, this.byteMap = theByteMap, this.ngramCount = 0, this.hitCount = 0, this.search = function(table, value) {
|
@@ -67411,7 +67420,7 @@ function requireSbcs() {
|
|
67411
67420
|
var iso2022 = { exports: {} }, hasRequiredIso2022;
|
67412
67421
|
function requireIso2022() {
|
67413
67422
|
return hasRequiredIso2022 || (hasRequiredIso2022 = 1, function(module2) {
|
67414
|
-
var util2 = require$$0__default$
|
67423
|
+
var util2 = require$$0__default$6.default, Match = requireMatch();
|
67415
67424
|
function ISO_2022() {
|
67416
67425
|
}
|
67417
67426
|
ISO_2022.prototype.match = function(det) {
|
@@ -67504,7 +67513,7 @@ var hasRequiredChardet;
|
|
67504
67513
|
function requireChardet() {
|
67505
67514
|
if (hasRequiredChardet) return chardet;
|
67506
67515
|
hasRequiredChardet = 1;
|
67507
|
-
var fs2 = require$$0__default.default, utf82 = requireUtf8(), unicode2 = requireUnicode(), mbcs2 = requireMbcs(), sbcs2 = requireSbcs(), iso20222 = requireIso2022(), self2 = chardet, recognisers = [
|
67516
|
+
var fs2 = require$$0__default$1.default, utf82 = requireUtf8(), unicode2 = requireUnicode(), mbcs2 = requireMbcs(), sbcs2 = requireSbcs(), iso20222 = requireIso2022(), self2 = chardet, recognisers = [
|
67508
67517
|
new utf82(),
|
67509
67518
|
new unicode2.UTF_16BE(),
|
67510
67519
|
new unicode2.UTF_16LE(),
|
@@ -67585,7 +67594,7 @@ var lib = { exports: {} }, safer_1, hasRequiredSafer;
|
|
67585
67594
|
function requireSafer() {
|
67586
67595
|
if (hasRequiredSafer) return safer_1;
|
67587
67596
|
hasRequiredSafer = 1;
|
67588
|
-
var buffer2 = require$$0__default$
|
67597
|
+
var buffer2 = require$$0__default$a.default, Buffer2 = buffer2.Buffer, safer = {}, key2;
|
67589
67598
|
for (key2 in buffer2)
|
67590
67599
|
buffer2.hasOwnProperty(key2) && (key2 === "SlowBuffer" || key2 === "Buffer" || (safer[key2] = buffer2[key2]));
|
67591
67600
|
var Safer = safer.Buffer = {};
|
@@ -77194,7 +77203,7 @@ var streams, hasRequiredStreams;
|
|
77194
77203
|
function requireStreams() {
|
77195
77204
|
if (hasRequiredStreams) return streams;
|
77196
77205
|
hasRequiredStreams = 1;
|
77197
|
-
var Buffer2 = require$$0__default$
|
77206
|
+
var Buffer2 = require$$0__default$a.default.Buffer, Transform = require$$0__default$4.default.Transform;
|
77198
77207
|
streams = function(iconv) {
|
77199
77208
|
iconv.encodeStream = function(encoding, options2) {
|
77200
77209
|
return new IconvLiteEncoderStream(iconv.getEncoder(encoding, options2), options2);
|
@@ -77265,7 +77274,7 @@ var extendNode, hasRequiredExtendNode;
|
|
77265
77274
|
function requireExtendNode() {
|
77266
77275
|
if (hasRequiredExtendNode) return extendNode;
|
77267
77276
|
hasRequiredExtendNode = 1;
|
77268
|
-
var Buffer2 = require$$0__default$
|
77277
|
+
var Buffer2 = require$$0__default$a.default.Buffer;
|
77269
77278
|
return extendNode = function(iconv) {
|
77270
77279
|
var original = void 0;
|
77271
77280
|
iconv.supportsNodeEncodingsExtension = !(Buffer2.from || new Buffer2(0) instanceof Uint8Array), iconv.extendNodeEncodings = function() {
|
@@ -77289,7 +77298,7 @@ function requireExtendNode() {
|
|
77289
77298
|
Buffer2.isNativeEncoding = function(enc) {
|
77290
77299
|
return enc && nodeNativeEncodings[enc.toLowerCase()];
|
77291
77300
|
};
|
77292
|
-
var SlowBuffer = require$$0__default$
|
77301
|
+
var SlowBuffer = require$$0__default$a.default.SlowBuffer;
|
77293
77302
|
if (original.SlowBufferToString = SlowBuffer.prototype.toString, SlowBuffer.prototype.toString = function(encoding, start, end) {
|
77294
77303
|
return encoding = String(encoding || "utf8").toLowerCase(), Buffer2.isNativeEncoding(encoding) ? original.SlowBufferToString.call(this, encoding, start, end) : (typeof start > "u" && (start = 0), typeof end > "u" && (end = this.length), iconv.decode(this.slice(start, end), encoding));
|
77295
77304
|
}, original.SlowBufferWrite = SlowBuffer.prototype.write, SlowBuffer.prototype.write = function(string, offset, length, encoding) {
|
@@ -77341,7 +77350,7 @@ function requireExtendNode() {
|
|
77341
77350
|
if (!original)
|
77342
77351
|
throw new Error("require('iconv-lite').undoExtendNodeEncodings(): Nothing to undo; extendNodeEncodings() is not called.");
|
77343
77352
|
delete Buffer2.isNativeEncoding;
|
77344
|
-
var SlowBuffer = require$$0__default$
|
77353
|
+
var SlowBuffer = require$$0__default$a.default.SlowBuffer;
|
77345
77354
|
if (SlowBuffer.prototype.toString = original.SlowBufferToString, SlowBuffer.prototype.write = original.SlowBufferWrite, Buffer2.isEncoding = original.BufferIsEncoding, Buffer2.byteLength = original.BufferByteLength, Buffer2.prototype.toString = original.BufferToString, Buffer2.prototype.write = original.BufferWrite, iconv.supportsStreams) {
|
77346
77355
|
var Readable = require$$0__default$4.default.Readable;
|
77347
77356
|
Readable.prototype.setEncoding = original.ReadableSetEncoding, delete Readable.prototype.collect;
|
@@ -77428,7 +77437,7 @@ var hasRequiredTmp;
|
|
77428
77437
|
function requireTmp() {
|
77429
77438
|
if (hasRequiredTmp) return tmp;
|
77430
77439
|
hasRequiredTmp = 1;
|
77431
|
-
const fs2 = require$$0__default.default, path2 = require$$0__default
|
77440
|
+
const fs2 = require$$0__default$1.default, path2 = require$$0__default.default, crypto = require$$3__default.default, osTmpDir = requireOsTmpdir(), _c = process.binding("constants"), tmpDir = osTmpDir(), RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", TEMPLATE_PATTERN = /XXXXXX/, DEFAULT_TRIES = 3, CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR), EBADF = _c.EBADF || _c.os.errno.EBADF, ENOENT2 = _c.ENOENT || _c.os.errno.ENOENT, DIR_MODE = 448, FILE_MODE = 384, _removeObjects = [];
|
77432
77441
|
var _gracefulCleanup = !1, _uncaughtException = !1;
|
77433
77442
|
function _randomChars(howMany) {
|
77434
77443
|
var value = [], rnd = null;
|
@@ -77618,7 +77627,7 @@ var CreateFileError = {}, hasRequiredCreateFileError;
|
|
77618
77627
|
function requireCreateFileError() {
|
77619
77628
|
if (hasRequiredCreateFileError) return CreateFileError;
|
77620
77629
|
hasRequiredCreateFileError = 1;
|
77621
|
-
var __extends2 = CreateFileError
|
77630
|
+
var __extends2 = CreateFileError.__extends || /* @__PURE__ */ function() {
|
77622
77631
|
var extendStatics2 = function(d, b) {
|
77623
77632
|
return extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
77624
77633
|
d2.__proto__ = b2;
|
@@ -77654,7 +77663,7 @@ var LaunchEditorError = {}, hasRequiredLaunchEditorError;
|
|
77654
77663
|
function requireLaunchEditorError() {
|
77655
77664
|
if (hasRequiredLaunchEditorError) return LaunchEditorError;
|
77656
77665
|
hasRequiredLaunchEditorError = 1;
|
77657
|
-
var __extends2 = LaunchEditorError
|
77666
|
+
var __extends2 = LaunchEditorError.__extends || /* @__PURE__ */ function() {
|
77658
77667
|
var extendStatics2 = function(d, b) {
|
77659
77668
|
return extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
77660
77669
|
d2.__proto__ = b2;
|
@@ -77690,7 +77699,7 @@ var ReadFileError = {}, hasRequiredReadFileError;
|
|
77690
77699
|
function requireReadFileError() {
|
77691
77700
|
if (hasRequiredReadFileError) return ReadFileError;
|
77692
77701
|
hasRequiredReadFileError = 1;
|
77693
|
-
var __extends2 = ReadFileError
|
77702
|
+
var __extends2 = ReadFileError.__extends || /* @__PURE__ */ function() {
|
77694
77703
|
var extendStatics2 = function(d, b) {
|
77695
77704
|
return extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
77696
77705
|
d2.__proto__ = b2;
|
@@ -77726,7 +77735,7 @@ var RemoveFileError = {}, hasRequiredRemoveFileError;
|
|
77726
77735
|
function requireRemoveFileError() {
|
77727
77736
|
if (hasRequiredRemoveFileError) return RemoveFileError;
|
77728
77737
|
hasRequiredRemoveFileError = 1;
|
77729
|
-
var __extends2 = RemoveFileError
|
77738
|
+
var __extends2 = RemoveFileError.__extends || /* @__PURE__ */ function() {
|
77730
77739
|
var extendStatics2 = function(d, b) {
|
77731
77740
|
return extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
77732
77741
|
d2.__proto__ = b2;
|
@@ -77762,7 +77771,7 @@ var hasRequiredMain;
|
|
77762
77771
|
function requireMain() {
|
77763
77772
|
if (hasRequiredMain) return main;
|
77764
77773
|
hasRequiredMain = 1, Object.defineProperty(main, "__esModule", { value: !0 });
|
77765
|
-
var chardet_1 = requireChardet(), child_process_1 = require$$1__default$2.default, fs_1 = require$$0__default.default, iconv_lite_1 = requireLib(), tmp_1 = requireTmp(), CreateFileError_1 = requireCreateFileError();
|
77774
|
+
var chardet_1 = requireChardet(), child_process_1 = require$$1__default$2.default, fs_1 = require$$0__default$1.default, iconv_lite_1 = requireLib(), tmp_1 = requireTmp(), CreateFileError_1 = requireCreateFileError();
|
77766
77775
|
main.CreateFileError = CreateFileError_1.CreateFileError;
|
77767
77776
|
var LaunchEditorError_1 = requireLaunchEditorError();
|
77768
77777
|
main.LaunchEditorError = LaunchEditorError_1.LaunchEditorError;
|
@@ -78077,7 +78086,7 @@ function detectRuntime() {
|
|
78077
78086
|
async function mergeCommands(baseCommands2, corePath, options2) {
|
78078
78087
|
if (!corePath)
|
78079
78088
|
return baseCommands2;
|
78080
|
-
const { cliVersion } = options2, coreImport = getCliConfig.dynamicRequire(corePath);
|
78089
|
+
const { cwd, workDir, cliVersion } = options2, coreImport = getCliConfig.dynamicRequire(corePath);
|
78081
78090
|
semver__default.default.coerce(cliVersion);
|
78082
78091
|
const core2 = "cliProjectCommands" in coreImport ? coreImport.cliProjectCommands : coreImport;
|
78083
78092
|
return baseCommands2.concat(core2.commands).map(addDefaultGroup).reverse().reduce(
|
@@ -78365,7 +78374,7 @@ var termSize, hasRequiredTermSize;
|
|
78365
78374
|
function requireTermSize() {
|
78366
78375
|
if (hasRequiredTermSize) return termSize;
|
78367
78376
|
hasRequiredTermSize = 1;
|
78368
|
-
const { execFileSync } = require$$1__default$2.default, path2 = require$$0__default
|
78377
|
+
const { execFileSync } = require$$1__default$2.default, path2 = require$$0__default.default, exec = (command2, arguments_, shell) => execFileSync(command2, arguments_, { encoding: "utf8", shell }).trim(), create = (columns, rows) => ({
|
78369
78378
|
columns: parseInt(columns, 10),
|
78370
78379
|
rows: parseInt(rows, 10)
|
78371
78380
|
});
|
@@ -78649,14 +78658,14 @@ function installProcessExitHack(finalTask) {
|
|
78649
78658
|
}
|
78650
78659
|
async function runCli(cliRoot, { cliVersion }) {
|
78651
78660
|
installUnhandledRejectionsHandler();
|
78652
|
-
const pkg = { name: "@sanity/cli", version: cliVersion }, args = parseArguments(), isInit = args.groupOrCommand === "init" && args.argsWithoutOptions[0] !== "plugin",
|
78661
|
+
const pkg = { name: "@sanity/cli", version: cliVersion }, args = parseArguments(), isInit = args.groupOrCommand === "init" && args.argsWithoutOptions[0] !== "plugin", cwd = getCurrentWorkingDirectory();
|
78653
78662
|
let workDir;
|
78654
78663
|
try {
|
78655
|
-
workDir = isInit ? process.cwd() : loadEnv.resolveRootDir(cwd
|
78664
|
+
workDir = isInit ? process.cwd() : loadEnv.resolveRootDir(cwd);
|
78656
78665
|
} catch (err) {
|
78657
78666
|
console.error(chalk__default.default.red(err.message)), process.exit(1);
|
78658
78667
|
}
|
78659
|
-
loadAndSetEnvFromDotEnvFiles({ workDir, cmd: args.groupOrCommand
|
78668
|
+
loadAndSetEnvFromDotEnvFiles({ workDir, cmd: args.groupOrCommand }), maybeFixMissingWindowsEnvVar(), await runUpdateCheck({ pkg, cwd, workDir }).notify(), telemetryDisclosure(), loadEnv.debug(`Reading CLI config from "${workDir}"`);
|
78660
78669
|
const cliConfig = await getCliConfig.getCliConfig(workDir, { forked: !0 });
|
78661
78670
|
cliConfig || loadEnv.debug("No CLI config found");
|
78662
78671
|
const { logger: telemetry2, flush: flushTelemetry } = createTelemetryStore({
|
@@ -78682,11 +78691,10 @@ async function runCli(cliRoot, { cliVersion }) {
|
|
78682
78691
|
workDir,
|
78683
78692
|
corePath: await getCoreModulePath(workDir, cliConfig),
|
78684
78693
|
cliConfig,
|
78685
|
-
telemetry: telemetry2
|
78686
|
-
isCoreApp
|
78694
|
+
telemetry: telemetry2
|
78687
78695
|
};
|
78688
78696
|
warnOnNonProductionEnvironment(), warnOnInferredProjectDir(isInit, cwd, workDir);
|
78689
|
-
const core2 = args.coreOptions, commands = await mergeCommands(baseCommands, options2.corePath, { cliVersion });
|
78697
|
+
const core2 = args.coreOptions, commands = await mergeCommands(baseCommands, options2.corePath, { cliVersion, cwd, workDir });
|
78690
78698
|
(core2.v || core2.version) && (console.log(`${pkg.name} version ${pkg.version}`), process.exit()), (core2.h || core2.help) && (args.groupOrCommand && args.argsWithoutOptions.unshift(args.groupOrCommand), args.groupOrCommand = "help"), args.groupOrCommand === "logout" && await flushTelemetry();
|
78691
78699
|
const cliRunner = getCliRunner(commands), cliCommandTrace = telemetry2.trace(CliCommand, {
|
78692
78700
|
groupOrCommand: args.groupOrCommand,
|
@@ -78783,11 +78791,7 @@ function warnOnNonProductionEnvironment() {
|
|
78783
78791
|
)
|
78784
78792
|
);
|
78785
78793
|
}
|
78786
|
-
function loadAndSetEnvFromDotEnvFiles({
|
78787
|
-
workDir,
|
78788
|
-
cmd,
|
78789
|
-
isCoreApp
|
78790
|
-
}) {
|
78794
|
+
function loadAndSetEnvFromDotEnvFiles({ workDir, cmd }) {
|
78791
78795
|
if (fs$1.existsSync(path__default.default.join(workDir, "sanity.json"))) {
|
78792
78796
|
loadEnv.debug("sanity.json exists, assuming v2 project and loading .env files using old behavior");
|
78793
78797
|
const env = process.env.SANITY_ACTIVE_ENV || process.env.NODE_ENV || "development";
|
@@ -78799,7 +78803,7 @@ function loadAndSetEnvFromDotEnvFiles({
|
|
78799
78803
|
let mode2 = process.env.SANITY_ACTIVE_ENV;
|
78800
78804
|
!mode2 && (isProdCmd || process.env.NODE_ENV === "production") ? mode2 = "production" : mode2 || (mode2 = "development"), mode2 === "production" && !isProdCmd && console.warn(chalk__default.default.yellow(`[WARN] Running in ${sanityEnv} environment mode
|
78801
78805
|
`)), loadEnv.debug("Loading environment files using %s mode", mode2);
|
78802
|
-
const studioEnv = loadEnv.loadEnv(mode2, workDir,
|
78806
|
+
const studioEnv = loadEnv.loadEnv(mode2, workDir, ["SANITY_STUDIO_"]);
|
78803
78807
|
process.env = { ...process.env, ...studioEnv };
|
78804
78808
|
}
|
78805
78809
|
function maybeFixMissingWindowsEnvVar() {
|