@storm-software/workspace-tools 1.73.2 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/index.js +97391 -1184
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +97016 -823
- package/src/executors/rolldown/executor.js +139 -152
- package/src/executors/tsup/executor.js +139 -152
- package/src/executors/tsup-browser/executor.js +139 -152
- package/src/executors/tsup-browser/schema.json +1 -1
- package/src/executors/tsup-neutral/executor.js +139 -152
- package/src/executors/tsup-node/executor.js +139 -152
- package/src/executors/typia/executor.js +141 -154
- package/src/executors/unbuild/executor.js +139 -152
- package/src/generators/browser-library/generator.js +97016 -823
- package/src/generators/config-schema/generator.js +170 -169
- package/src/generators/config-schema/schema.json +1 -1
- package/src/generators/neutral-library/generator.js +97016 -823
- package/src/generators/node-library/generator.js +97016 -823
- package/src/generators/preset/generator.js +139 -152
- package/src/generators/release-version/generator.js +156 -169
- package/src/utils/index.js +141 -154
|
@@ -4370,7 +4370,7 @@ var require_jiti = __commonJS({
|
|
|
4370
4370
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
4371
4371
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
4372
4372
|
});
|
|
4373
|
-
const
|
|
4373
|
+
const packageJsonReader = { read: function(jsonPath) {
|
|
4374
4374
|
try {
|
|
4375
4375
|
return { string: external_node_fs_namespaceObject.readFileSync(external_node_path_namespaceObject.toNamespacedPath(external_node_path_namespaceObject.join(external_node_path_namespaceObject.dirname(jsonPath), "package.json")), "utf8") };
|
|
4376
4376
|
} catch (error) {
|
|
@@ -4385,7 +4385,7 @@ var require_jiti = __commonJS({
|
|
|
4385
4385
|
const existing = packageJsonCache.get(path5);
|
|
4386
4386
|
if (void 0 !== existing)
|
|
4387
4387
|
return existing;
|
|
4388
|
-
const source =
|
|
4388
|
+
const source = packageJsonReader.read(path5).string;
|
|
4389
4389
|
if (void 0 === source) {
|
|
4390
4390
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
4391
4391
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -4448,7 +4448,7 @@ var require_jiti = __commonJS({
|
|
|
4448
4448
|
}, "http:": getHttpProtocolModuleFormat2, "https:": getHttpProtocolModuleFormat2, "node:": () => "builtin" };
|
|
4449
4449
|
function getHttpProtocolModuleFormat2() {
|
|
4450
4450
|
}
|
|
4451
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
4451
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
4452
4452
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
4453
4453
|
const pjsonPath = (0, external_node_url_namespaceObject.fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
4454
4454
|
external_node_process_namespaceObject.emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, external_node_url_namespaceObject.fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -4735,7 +4735,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
4735
4735
|
else
|
|
4736
4736
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
4737
4737
|
return external_node_assert_namespaceObject(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
4738
|
-
if (null !==
|
|
4738
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
4739
4739
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, external_node_url_namespaceObject.fileURLToPath)(base2));
|
|
4740
4740
|
const filePath = (0, external_node_url_namespaceObject.fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
4741
4741
|
if (stats.isDirectory()) {
|
|
@@ -10341,7 +10341,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10341
10341
|
const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable2();
|
|
10342
10342
|
return stackTraceLimitIsWritable && (userStackTraceLimit2 = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(error), stackTraceLimitIsWritable && (Error.stackTraceLimit = userStackTraceLimit2), error;
|
|
10343
10343
|
});
|
|
10344
|
-
var
|
|
10344
|
+
var packageJsonReader = { read: function(jsonPath) {
|
|
10345
10345
|
try {
|
|
10346
10346
|
return { string: _fs().default.readFileSync(_path().toNamespacedPath(_path().join(_path().dirname(jsonPath), "package.json")), "utf8") };
|
|
10347
10347
|
} catch (error) {
|
|
@@ -10356,7 +10356,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10356
10356
|
const existing = packageJsonCache.get(path5);
|
|
10357
10357
|
if (void 0 !== existing)
|
|
10358
10358
|
return existing;
|
|
10359
|
-
const source =
|
|
10359
|
+
const source = packageJsonReader.read(path5).string;
|
|
10360
10360
|
if (void 0 === source) {
|
|
10361
10361
|
const packageConfig2 = { pjsonPath: path5, exists: false, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
|
|
10362
10362
|
return packageJsonCache.set(path5, packageConfig2), packageConfig2;
|
|
@@ -10423,7 +10423,7 @@ Add ${syntaxPluginInfo} to the 'plugins' section of your Babel config to enable
|
|
|
10423
10423
|
return hasOwnProperty3.call(protocolHandlers2, url.protocol) && protocolHandlers2[url.protocol](url, context, true) || null;
|
|
10424
10424
|
}
|
|
10425
10425
|
const { ERR_INVALID_ARG_VALUE } = codes2, DEFAULT_CONDITIONS = Object.freeze(["node", "import"]), DEFAULT_CONDITIONS_SET2 = new Set(DEFAULT_CONDITIONS);
|
|
10426
|
-
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g,
|
|
10426
|
+
const RegExpPrototypeSymbolReplace2 = RegExp.prototype[Symbol.replace], experimentalNetworkImports = false, { ERR_NETWORK_IMPORT_DISALLOWED: ERR_NETWORK_IMPORT_DISALLOWED2, ERR_INVALID_MODULE_SPECIFIER: ERR_INVALID_MODULE_SPECIFIER2, ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET: ERR_INVALID_PACKAGE_TARGET2, ERR_MODULE_NOT_FOUND: ERR_MODULE_NOT_FOUND2, ERR_PACKAGE_IMPORT_NOT_DEFINED: ERR_PACKAGE_IMPORT_NOT_DEFINED2, ERR_PACKAGE_PATH_NOT_EXPORTED: ERR_PACKAGE_PATH_NOT_EXPORTED2, ERR_UNSUPPORTED_DIR_IMPORT: ERR_UNSUPPORTED_DIR_IMPORT2, ERR_UNSUPPORTED_ESM_URL_SCHEME } = codes2, own2 = {}.hasOwnProperty, invalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, deprecatedInvalidSegmentRegEx2 = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, invalidPackageNameRegEx2 = /^\.|%|\\/, patternRegEx2 = /\*/g, encodedSepRegEx = /%2f|%5c/i, emittedPackageWarnings2 = /* @__PURE__ */ new Set(), doubleSlashRegEx2 = /[/\\]{2}/;
|
|
10427
10427
|
function emitInvalidSegmentDeprecation2(target, request, match, packageJsonUrl, internal, base, isTarget) {
|
|
10428
10428
|
const pjsonPath = (0, _url().fileURLToPath)(packageJsonUrl), double = null !== doubleSlashRegEx2.exec(isTarget ? target : request);
|
|
10429
10429
|
_process().emitWarning(`Use of deprecated ${double ? "double slash" : "leading or trailing slash matching"} resolving "${target}" for module request "${request}" ${request === match ? "" : `matched to "${match}" `}in the "${internal ? "imports" : "exports"}" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${(0, _url().fileURLToPath)(base)}` : ""}.`, "DeprecationWarning", "DEP0166");
|
|
@@ -10708,7 +10708,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
10708
10708
|
else
|
|
10709
10709
|
resolved = packageImportsResolve2(specifier, base, conditions);
|
|
10710
10710
|
return _assert()(void 0 !== resolved, "expected to be defined"), "file:" !== resolved.protocol ? resolved : function(resolved2, base2, preserveSymlinks2) {
|
|
10711
|
-
if (null !==
|
|
10711
|
+
if (null !== encodedSepRegEx.exec(resolved2.pathname))
|
|
10712
10712
|
throw new ERR_INVALID_MODULE_SPECIFIER2(resolved2.pathname, 'must not include encoded "/" or "\\" characters', (0, _url().fileURLToPath)(base2));
|
|
10713
10713
|
const filePath = (0, _url().fileURLToPath)(resolved2), stats = tryStatSync2(filePath.endsWith("/") ? filePath.slice(-1) : filePath);
|
|
10714
10714
|
if (stats.isDirectory()) {
|
|
@@ -40019,27 +40019,27 @@ var init_dist5 = __esm({
|
|
|
40019
40019
|
}
|
|
40020
40020
|
});
|
|
40021
40021
|
|
|
40022
|
-
// node_modules/.pnpm/mlly@1.
|
|
40022
|
+
// node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs
|
|
40023
40023
|
function normalizeSlash(path5) {
|
|
40024
40024
|
return path5.replace(/\\/g, "/");
|
|
40025
40025
|
}
|
|
40026
40026
|
function formatList(array, type = "and") {
|
|
40027
40027
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
40028
40028
|
}
|
|
40029
|
-
function createError(sym, value2,
|
|
40029
|
+
function createError(sym, value2, constructor) {
|
|
40030
40030
|
messages.set(sym, value2);
|
|
40031
|
-
return makeNodeErrorWithCode(
|
|
40031
|
+
return makeNodeErrorWithCode(constructor, sym);
|
|
40032
40032
|
}
|
|
40033
40033
|
function makeNodeErrorWithCode(Base, key) {
|
|
40034
40034
|
return NodeError;
|
|
40035
|
-
function NodeError(...
|
|
40035
|
+
function NodeError(...parameters) {
|
|
40036
40036
|
const limit = Error.stackTraceLimit;
|
|
40037
40037
|
if (isErrorStackTraceLimitWritable())
|
|
40038
40038
|
Error.stackTraceLimit = 0;
|
|
40039
40039
|
const error = new Base();
|
|
40040
40040
|
if (isErrorStackTraceLimitWritable())
|
|
40041
40041
|
Error.stackTraceLimit = limit;
|
|
40042
|
-
const message = getMessage(key,
|
|
40042
|
+
const message = getMessage(key, parameters, error);
|
|
40043
40043
|
Object.defineProperties(error, {
|
|
40044
40044
|
// Note: no need to implement `kIsNodeError` symbol, would be hard,
|
|
40045
40045
|
// probably.
|
|
@@ -40077,34 +40077,34 @@ function isErrorStackTraceLimitWritable() {
|
|
|
40077
40077
|
}
|
|
40078
40078
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
40079
40079
|
}
|
|
40080
|
-
function hideStackFrames(
|
|
40081
|
-
const hidden = nodeInternalPrefix +
|
|
40082
|
-
Object.defineProperty(
|
|
40083
|
-
return
|
|
40080
|
+
function hideStackFrames(wrappedFunction) {
|
|
40081
|
+
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
40082
|
+
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
40083
|
+
return wrappedFunction;
|
|
40084
40084
|
}
|
|
40085
|
-
function getMessage(key,
|
|
40085
|
+
function getMessage(key, parameters, self2) {
|
|
40086
40086
|
const message = messages.get(key);
|
|
40087
40087
|
(0, import_node_assert.default)(message !== void 0, "expected `message` to be found");
|
|
40088
40088
|
if (typeof message === "function") {
|
|
40089
40089
|
(0, import_node_assert.default)(
|
|
40090
|
-
message.length <=
|
|
40090
|
+
message.length <= parameters.length,
|
|
40091
40091
|
// Default options do not count.
|
|
40092
|
-
`Code: ${key}; The provided arguments length (${
|
|
40092
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${message.length}).`
|
|
40093
40093
|
);
|
|
40094
|
-
return Reflect.apply(message, self2,
|
|
40094
|
+
return Reflect.apply(message, self2, parameters);
|
|
40095
40095
|
}
|
|
40096
40096
|
const regex = /%[dfijoOs]/g;
|
|
40097
40097
|
let expectedLength = 0;
|
|
40098
40098
|
while (regex.exec(message) !== null)
|
|
40099
40099
|
expectedLength++;
|
|
40100
40100
|
(0, import_node_assert.default)(
|
|
40101
|
-
expectedLength ===
|
|
40102
|
-
`Code: ${key}; The provided arguments length (${
|
|
40101
|
+
expectedLength === parameters.length,
|
|
40102
|
+
`Code: ${key}; The provided arguments length (${parameters.length}) does not match the required ones (${expectedLength}).`
|
|
40103
40103
|
);
|
|
40104
|
-
if (
|
|
40104
|
+
if (parameters.length === 0)
|
|
40105
40105
|
return message;
|
|
40106
|
-
|
|
40107
|
-
return Reflect.apply(import_node_util.format, null,
|
|
40106
|
+
parameters.unshift(message);
|
|
40107
|
+
return Reflect.apply(import_node_util.format, null, parameters);
|
|
40108
40108
|
}
|
|
40109
40109
|
function determineSpecificType(value2) {
|
|
40110
40110
|
if (value2 === null || value2 === void 0) {
|
|
@@ -40190,21 +40190,20 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
40190
40190
|
return result;
|
|
40191
40191
|
}
|
|
40192
40192
|
function getPackageScopeConfig(resolved) {
|
|
40193
|
-
let packageJSONUrl = new
|
|
40193
|
+
let packageJSONUrl = new URL("package.json", resolved);
|
|
40194
40194
|
while (true) {
|
|
40195
40195
|
const packageJSONPath2 = packageJSONUrl.pathname;
|
|
40196
40196
|
if (packageJSONPath2.endsWith("node_modules/package.json")) {
|
|
40197
40197
|
break;
|
|
40198
40198
|
}
|
|
40199
|
-
const packageConfig =
|
|
40200
|
-
|
|
40201
|
-
|
|
40202
|
-
);
|
|
40199
|
+
const packageConfig = read2((0, import_node_url.fileURLToPath)(packageJSONUrl), {
|
|
40200
|
+
specifier: resolved
|
|
40201
|
+
});
|
|
40203
40202
|
if (packageConfig.exists) {
|
|
40204
40203
|
return packageConfig;
|
|
40205
40204
|
}
|
|
40206
40205
|
const lastPackageJSONUrl = packageJSONUrl;
|
|
40207
|
-
packageJSONUrl = new
|
|
40206
|
+
packageJSONUrl = new URL("../package.json", packageJSONUrl);
|
|
40208
40207
|
if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
|
|
40209
40208
|
break;
|
|
40210
40209
|
}
|
|
@@ -40213,16 +40212,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
40213
40212
|
return {
|
|
40214
40213
|
pjsonPath: packageJSONPath,
|
|
40215
40214
|
exists: false,
|
|
40216
|
-
|
|
40217
|
-
name: void 0,
|
|
40218
|
-
type: "none",
|
|
40219
|
-
exports: void 0,
|
|
40220
|
-
imports: void 0
|
|
40215
|
+
type: "none"
|
|
40221
40216
|
};
|
|
40222
40217
|
}
|
|
40223
40218
|
function getPackageType(url) {
|
|
40224
|
-
|
|
40225
|
-
return packageConfig.type;
|
|
40219
|
+
return getPackageScopeConfig(url).type;
|
|
40226
40220
|
}
|
|
40227
40221
|
function mimeToFormat(mime) {
|
|
40228
40222
|
if (mime && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime))
|
|
@@ -40252,29 +40246,29 @@ function extname2(url) {
|
|
|
40252
40246
|
return "";
|
|
40253
40247
|
}
|
|
40254
40248
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
40255
|
-
const
|
|
40256
|
-
if (
|
|
40249
|
+
const value2 = extname2(url);
|
|
40250
|
+
if (value2 === ".js") {
|
|
40257
40251
|
const packageType = getPackageType(url);
|
|
40258
40252
|
if (packageType !== "none") {
|
|
40259
40253
|
return packageType;
|
|
40260
40254
|
}
|
|
40261
40255
|
return "commonjs";
|
|
40262
40256
|
}
|
|
40263
|
-
if (
|
|
40257
|
+
if (value2 === "") {
|
|
40264
40258
|
const packageType = getPackageType(url);
|
|
40265
40259
|
if (packageType === "none" || packageType === "commonjs") {
|
|
40266
40260
|
return "commonjs";
|
|
40267
40261
|
}
|
|
40268
40262
|
return "module";
|
|
40269
40263
|
}
|
|
40270
|
-
const format3 = extensionFormatMap[
|
|
40264
|
+
const format3 = extensionFormatMap[value2];
|
|
40271
40265
|
if (format3)
|
|
40272
40266
|
return format3;
|
|
40273
40267
|
if (ignoreErrors) {
|
|
40274
40268
|
return void 0;
|
|
40275
40269
|
}
|
|
40276
40270
|
const filepath = (0, import_node_url.fileURLToPath)(url);
|
|
40277
|
-
throw new ERR_UNKNOWN_FILE_EXTENSION(
|
|
40271
|
+
throw new ERR_UNKNOWN_FILE_EXTENSION(value2, filepath);
|
|
40278
40272
|
}
|
|
40279
40273
|
function getHttpProtocolModuleFormat() {
|
|
40280
40274
|
}
|
|
@@ -40305,21 +40299,21 @@ function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
|
40305
40299
|
if (format3 !== "module")
|
|
40306
40300
|
return;
|
|
40307
40301
|
const urlPath = (0, import_node_url.fileURLToPath)(url.href);
|
|
40308
|
-
const
|
|
40302
|
+
const packagePath = (0, import_node_url.fileURLToPath)(new import_node_url.URL(".", packageJsonUrl));
|
|
40309
40303
|
const basePath = (0, import_node_url.fileURLToPath)(base);
|
|
40310
40304
|
if (!main) {
|
|
40311
40305
|
import_node_process.default.emitWarning(
|
|
40312
|
-
`No "main" or "exports" field defined in the package.json for ${
|
|
40313
|
-
|
|
40306
|
+
`No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
|
|
40307
|
+
packagePath.length
|
|
40314
40308
|
)}", imported from ${basePath}.
|
|
40315
40309
|
Default "index" lookups for the main are deprecated for ES modules.`,
|
|
40316
40310
|
"DeprecationWarning",
|
|
40317
40311
|
"DEP0151"
|
|
40318
40312
|
);
|
|
40319
|
-
} else if (import_node_path3.default.resolve(
|
|
40313
|
+
} else if (import_node_path3.default.resolve(packagePath, main) !== urlPath) {
|
|
40320
40314
|
import_node_process.default.emitWarning(
|
|
40321
|
-
`Package ${
|
|
40322
|
-
|
|
40315
|
+
`Package ${packagePath} has a "main" field set to "${main}", excluding the full filename and extension to the resolved file at "${urlPath.slice(
|
|
40316
|
+
packagePath.length
|
|
40323
40317
|
)}", imported from ${basePath}.
|
|
40324
40318
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,
|
|
40325
40319
|
"DeprecationWarning",
|
|
@@ -40331,7 +40325,6 @@ function tryStatSync(path5) {
|
|
|
40331
40325
|
try {
|
|
40332
40326
|
return (0, import_node_fs3.statSync)(path5);
|
|
40333
40327
|
} catch {
|
|
40334
|
-
return new import_node_fs3.Stats();
|
|
40335
40328
|
}
|
|
40336
40329
|
}
|
|
40337
40330
|
function fileExists(url) {
|
|
@@ -40388,7 +40381,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
40388
40381
|
);
|
|
40389
40382
|
}
|
|
40390
40383
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
40391
|
-
if (
|
|
40384
|
+
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
40392
40385
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
40393
40386
|
resolved.pathname,
|
|
40394
40387
|
'must not include encoded "/" or "\\" characters',
|
|
@@ -40410,12 +40403,12 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
40410
40403
|
const stats = tryStatSync(
|
|
40411
40404
|
filePath.endsWith("/") ? filePath.slice(-1) : filePath
|
|
40412
40405
|
);
|
|
40413
|
-
if (stats.isDirectory()) {
|
|
40406
|
+
if (stats && stats.isDirectory()) {
|
|
40414
40407
|
const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, (0, import_node_url.fileURLToPath)(base));
|
|
40415
40408
|
error.url = String(resolved);
|
|
40416
40409
|
throw error;
|
|
40417
40410
|
}
|
|
40418
|
-
if (!stats.isFile()) {
|
|
40411
|
+
if (!stats || !stats.isFile()) {
|
|
40419
40412
|
const error = new ERR_MODULE_NOT_FOUND(
|
|
40420
40413
|
filePath || resolved.pathname,
|
|
40421
40414
|
base && (0, import_node_url.fileURLToPath)(base),
|
|
@@ -40673,13 +40666,13 @@ function isConditionalExportsMainSugar(exports2, packageJsonUrl, base) {
|
|
|
40673
40666
|
const keys = Object.getOwnPropertyNames(exports2);
|
|
40674
40667
|
let isConditionalSugar = false;
|
|
40675
40668
|
let i2 = 0;
|
|
40676
|
-
let
|
|
40677
|
-
while (++
|
|
40678
|
-
const key = keys[
|
|
40679
|
-
const
|
|
40669
|
+
let keyIndex = -1;
|
|
40670
|
+
while (++keyIndex < keys.length) {
|
|
40671
|
+
const key = keys[keyIndex];
|
|
40672
|
+
const currentIsConditionalSugar = key === "" || key[0] !== ".";
|
|
40680
40673
|
if (i2++ === 0) {
|
|
40681
|
-
isConditionalSugar =
|
|
40682
|
-
} else if (isConditionalSugar !==
|
|
40674
|
+
isConditionalSugar = currentIsConditionalSugar;
|
|
40675
|
+
} else if (isConditionalSugar !== currentIsConditionalSugar) {
|
|
40683
40676
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
40684
40677
|
(0, import_node_url.fileURLToPath)(packageJsonUrl),
|
|
40685
40678
|
base,
|
|
@@ -40915,7 +40908,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
40915
40908
|
let lastPath;
|
|
40916
40909
|
do {
|
|
40917
40910
|
const stat = tryStatSync(packageJsonPath.slice(0, -13));
|
|
40918
|
-
if (!stat.isDirectory()) {
|
|
40911
|
+
if (!stat || !stat.isDirectory()) {
|
|
40919
40912
|
lastPath = packageJsonPath;
|
|
40920
40913
|
packageJsonUrl = new import_node_url.URL(
|
|
40921
40914
|
(isScoped ? "../../../../node_modules/" : "../../../node_modules/") + packageName + "/package.json",
|
|
@@ -40924,10 +40917,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
40924
40917
|
packageJsonPath = (0, import_node_url.fileURLToPath)(packageJsonUrl);
|
|
40925
40918
|
continue;
|
|
40926
40919
|
}
|
|
40927
|
-
const packageConfig2 =
|
|
40928
|
-
base,
|
|
40929
|
-
specifier
|
|
40930
|
-
});
|
|
40920
|
+
const packageConfig2 = read2(packageJsonPath, { base, specifier });
|
|
40931
40921
|
if (packageConfig2.exports !== void 0 && packageConfig2.exports !== null) {
|
|
40932
40922
|
return packageExportsResolve(
|
|
40933
40923
|
packageJsonUrl,
|
|
@@ -40963,19 +40953,29 @@ function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
|
40963
40953
|
}
|
|
40964
40954
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
40965
40955
|
const protocol = base.protocol;
|
|
40966
|
-
const
|
|
40956
|
+
const isData = protocol === "data:";
|
|
40957
|
+
const isRemote = isData || protocol === "http:" || protocol === "https:";
|
|
40967
40958
|
let resolved;
|
|
40968
40959
|
if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
|
|
40969
|
-
|
|
40970
|
-
|
|
40960
|
+
try {
|
|
40961
|
+
resolved = new import_node_url.URL(specifier, base);
|
|
40962
|
+
} catch (error_) {
|
|
40963
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
40964
|
+
error.cause = error_;
|
|
40965
|
+
throw error;
|
|
40966
|
+
}
|
|
40967
|
+
} else if (protocol === "file:" && specifier[0] === "#") {
|
|
40971
40968
|
resolved = packageImportsResolve(specifier, base, conditions);
|
|
40972
40969
|
} else {
|
|
40973
40970
|
try {
|
|
40974
40971
|
resolved = new import_node_url.URL(specifier);
|
|
40975
|
-
} catch {
|
|
40976
|
-
if (!
|
|
40977
|
-
|
|
40972
|
+
} catch (error_) {
|
|
40973
|
+
if (isRemote && !import_node_module.builtinModules.includes(specifier)) {
|
|
40974
|
+
const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
|
|
40975
|
+
error.cause = error_;
|
|
40976
|
+
throw error;
|
|
40978
40977
|
}
|
|
40978
|
+
resolved = packageResolve(specifier, base, conditions);
|
|
40979
40979
|
}
|
|
40980
40980
|
}
|
|
40981
40981
|
(0, import_node_assert.default)(resolved !== void 0, "expected to be defined");
|
|
@@ -41107,9 +41107,9 @@ function resolvePath(id, options) {
|
|
|
41107
41107
|
return Promise.reject(error);
|
|
41108
41108
|
}
|
|
41109
41109
|
}
|
|
41110
|
-
var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache,
|
|
41110
|
+
var import_node_module, import_node_fs3, import_node_url, import_node_assert, import_node_process, import_node_path3, import_node_v8, import_node_util, BUILTIN_MODULES, own$1, classRegExp, kTypes, codes, messages, nodeInternalPrefix, userStackTraceLimit, captureLargerStackTrace, hasOwnProperty$1, ERR_INVALID_PACKAGE_CONFIG$1, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty2, extensionFormatMap, protocolHandlers, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, DEFAULT_CONDITIONS_SET, DEFAULT_EXTENSIONS, NOT_FOUND_ERRORS;
|
|
41111
41111
|
var init_dist6 = __esm({
|
|
41112
|
-
"node_modules/.pnpm/mlly@1.
|
|
41112
|
+
"node_modules/.pnpm/mlly@1.7.0/node_modules/mlly/dist/index.mjs"() {
|
|
41113
41113
|
init_acorn();
|
|
41114
41114
|
import_node_module = require("node:module");
|
|
41115
41115
|
import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
@@ -41240,21 +41240,21 @@ var init_dist6 = __esm({
|
|
|
41240
41240
|
codes.ERR_INVALID_PACKAGE_TARGET = createError(
|
|
41241
41241
|
"ERR_INVALID_PACKAGE_TARGET",
|
|
41242
41242
|
/**
|
|
41243
|
-
* @param {string}
|
|
41243
|
+
* @param {string} packagePath
|
|
41244
41244
|
* @param {string} key
|
|
41245
41245
|
* @param {unknown} target
|
|
41246
41246
|
* @param {boolean} [isImport=false]
|
|
41247
41247
|
* @param {string} [base]
|
|
41248
41248
|
*/
|
|
41249
|
-
(
|
|
41250
|
-
const
|
|
41249
|
+
(packagePath, key, target, isImport = false, base = void 0) => {
|
|
41250
|
+
const relatedError = typeof target === "string" && !isImport && target.length > 0 && !target.startsWith("./");
|
|
41251
41251
|
if (key === ".") {
|
|
41252
41252
|
(0, import_node_assert.default)(isImport === false);
|
|
41253
|
-
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${
|
|
41253
|
+
return `Invalid "exports" main target ${JSON.stringify(target)} defined in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
41254
41254
|
}
|
|
41255
41255
|
return `Invalid "${isImport ? "imports" : "exports"}" target ${JSON.stringify(
|
|
41256
41256
|
target
|
|
41257
|
-
)} defined for '${key}' in the package config ${
|
|
41257
|
+
)} defined for '${key}' in the package config ${packagePath}package.json${base ? ` imported from ${base}` : ""}${relatedError ? '; targets must start with "./"' : ""}`;
|
|
41258
41258
|
},
|
|
41259
41259
|
Error
|
|
41260
41260
|
);
|
|
@@ -41290,14 +41290,14 @@ var init_dist6 = __esm({
|
|
|
41290
41290
|
codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
|
|
41291
41291
|
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
|
41292
41292
|
/**
|
|
41293
|
-
* @param {string}
|
|
41293
|
+
* @param {string} packagePath
|
|
41294
41294
|
* @param {string} subpath
|
|
41295
41295
|
* @param {string} [base]
|
|
41296
41296
|
*/
|
|
41297
|
-
(
|
|
41297
|
+
(packagePath, subpath, base = void 0) => {
|
|
41298
41298
|
if (subpath === ".")
|
|
41299
|
-
return `No "exports" main defined in ${
|
|
41300
|
-
return `Package subpath '${subpath}' is not defined by "exports" in ${
|
|
41299
|
+
return `No "exports" main defined in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
41300
|
+
return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${base ? ` imported from ${base}` : ""}`;
|
|
41301
41301
|
},
|
|
41302
41302
|
Error
|
|
41303
41303
|
);
|
|
@@ -41306,14 +41306,19 @@ var init_dist6 = __esm({
|
|
|
41306
41306
|
"Directory import '%s' is not supported resolving ES modules imported from %s",
|
|
41307
41307
|
Error
|
|
41308
41308
|
);
|
|
41309
|
+
codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
|
|
41310
|
+
"ERR_UNSUPPORTED_RESOLVE_REQUEST",
|
|
41311
|
+
'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
|
|
41312
|
+
TypeError
|
|
41313
|
+
);
|
|
41309
41314
|
codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
41310
41315
|
"ERR_UNKNOWN_FILE_EXTENSION",
|
|
41311
41316
|
/**
|
|
41312
|
-
* @param {string}
|
|
41317
|
+
* @param {string} extension
|
|
41313
41318
|
* @param {string} path
|
|
41314
41319
|
*/
|
|
41315
|
-
(
|
|
41316
|
-
return `Unknown file extension "${
|
|
41320
|
+
(extension, path5) => {
|
|
41321
|
+
return `Unknown file extension "${extension}" for ${path5}`;
|
|
41317
41322
|
},
|
|
41318
41323
|
TypeError
|
|
41319
41324
|
);
|
|
@@ -41357,8 +41362,6 @@ var init_dist6 = __esm({
|
|
|
41357
41362
|
hasOwnProperty$1 = {}.hasOwnProperty;
|
|
41358
41363
|
({ ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes);
|
|
41359
41364
|
cache = /* @__PURE__ */ new Map();
|
|
41360
|
-
reader = { read: read2 };
|
|
41361
|
-
packageJsonReader = reader;
|
|
41362
41365
|
({ ERR_UNKNOWN_FILE_EXTENSION } = codes);
|
|
41363
41366
|
hasOwnProperty2 = {}.hasOwnProperty;
|
|
41364
41367
|
extensionFormatMap = {
|
|
@@ -41389,14 +41392,15 @@ var init_dist6 = __esm({
|
|
|
41389
41392
|
ERR_MODULE_NOT_FOUND,
|
|
41390
41393
|
ERR_PACKAGE_IMPORT_NOT_DEFINED,
|
|
41391
41394
|
ERR_PACKAGE_PATH_NOT_EXPORTED,
|
|
41392
|
-
ERR_UNSUPPORTED_DIR_IMPORT
|
|
41395
|
+
ERR_UNSUPPORTED_DIR_IMPORT,
|
|
41396
|
+
ERR_UNSUPPORTED_RESOLVE_REQUEST
|
|
41393
41397
|
} = codes);
|
|
41394
41398
|
own = {}.hasOwnProperty;
|
|
41395
41399
|
invalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;
|
|
41396
41400
|
deprecatedInvalidSegmentRegEx = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;
|
|
41397
41401
|
invalidPackageNameRegEx = /^\.|%|\\/;
|
|
41398
41402
|
patternRegEx = /\*/g;
|
|
41399
|
-
|
|
41403
|
+
encodedSeparatorRegEx = /%2f|%5c/i;
|
|
41400
41404
|
emittedPackageWarnings = /* @__PURE__ */ new Set();
|
|
41401
41405
|
doubleSlashRegEx = /[/\\]{2}/;
|
|
41402
41406
|
DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
@@ -70741,27 +70745,23 @@ var init_lib = __esm({
|
|
|
70741
70745
|
});
|
|
70742
70746
|
|
|
70743
70747
|
// packages/config/src/schema.ts
|
|
70744
|
-
var DarkColorSchema, LightColorSchema,
|
|
70748
|
+
var DarkColorSchema, LightColorSchema, BrandColorSchema, AccentColorSchema, SuccessColorSchema, InfoColorSchema, WarningColorSchema, ErrorColorSchema, FatalColorSchema, DarkThemeColorConfigSchema, LightThemeColorConfigSchema, MultiThemeColorConfigSchema, SingleThemeColorConfigSchema, ColorConfigSchema, ColorConfigMapSchema, StormConfigSchema;
|
|
70745
70749
|
var init_schema = __esm({
|
|
70746
70750
|
"packages/config/src/schema.ts"() {
|
|
70747
70751
|
init_lib();
|
|
70748
|
-
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
70752
|
+
DarkColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#22272E").describe("The dark background color of the workspace");
|
|
70749
70753
|
LightColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
70750
|
-
|
|
70751
|
-
|
|
70752
|
-
TertiaryColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ec5990").describe("The tertiary color of the workspace");
|
|
70753
|
-
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#6366f1").describe("The accent color of the workspace");
|
|
70754
|
+
BrandColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The first brand specific color of the workspace");
|
|
70755
|
+
AccentColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
|
|
70754
70756
|
SuccessColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#087f5b").describe("The success color of the workspace");
|
|
70755
|
-
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
70757
|
+
InfoColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#316DCA").describe("The informational color of the workspace");
|
|
70756
70758
|
WarningColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
|
|
70757
|
-
ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#
|
|
70758
|
-
FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).
|
|
70759
|
+
ErrorColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#a40e26").describe("The error color of the workspace");
|
|
70760
|
+
FatalColorSchema = z2.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
|
|
70759
70761
|
DarkThemeColorConfigSchema = z2.object({
|
|
70760
70762
|
foreground: LightColorSchema,
|
|
70761
70763
|
background: DarkColorSchema,
|
|
70762
|
-
|
|
70763
|
-
secondary: SecondaryColorSchema,
|
|
70764
|
-
tertiary: TertiaryColorSchema,
|
|
70764
|
+
brand: BrandColorSchema,
|
|
70765
70765
|
accent: AccentColorSchema,
|
|
70766
70766
|
success: SuccessColorSchema,
|
|
70767
70767
|
info: InfoColorSchema,
|
|
@@ -70772,9 +70772,7 @@ var init_schema = __esm({
|
|
|
70772
70772
|
LightThemeColorConfigSchema = z2.object({
|
|
70773
70773
|
foreground: DarkColorSchema,
|
|
70774
70774
|
background: LightColorSchema,
|
|
70775
|
-
|
|
70776
|
-
secondary: SecondaryColorSchema,
|
|
70777
|
-
tertiary: TertiaryColorSchema,
|
|
70775
|
+
brand: BrandColorSchema,
|
|
70778
70776
|
accent: AccentColorSchema,
|
|
70779
70777
|
success: SuccessColorSchema,
|
|
70780
70778
|
info: InfoColorSchema,
|
|
@@ -70789,9 +70787,7 @@ var init_schema = __esm({
|
|
|
70789
70787
|
SingleThemeColorConfigSchema = z2.object({
|
|
70790
70788
|
dark: DarkColorSchema,
|
|
70791
70789
|
light: LightColorSchema,
|
|
70792
|
-
|
|
70793
|
-
secondary: SecondaryColorSchema,
|
|
70794
|
-
tertiary: TertiaryColorSchema,
|
|
70790
|
+
brand: BrandColorSchema,
|
|
70795
70791
|
accent: AccentColorSchema,
|
|
70796
70792
|
success: SuccessColorSchema,
|
|
70797
70793
|
info: InfoColorSchema,
|
|
@@ -70838,7 +70834,7 @@ var init_schema = __esm({
|
|
|
70838
70834
|
runtimeVersion: z2.string().trim().regex(
|
|
70839
70835
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
|
70840
70836
|
).default("1.0.0").describe("The global version of the Storm runtime"),
|
|
70841
|
-
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("
|
|
70837
|
+
packageManager: z2.enum(["npm", "yarn", "pnpm", "bun"]).default("pnpm").describe("The package manager used by the repository"),
|
|
70842
70838
|
timezone: z2.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
70843
70839
|
locale: z2.string().trim().default("en-US").describe("The default locale of the workspace"),
|
|
70844
70840
|
logLevel: z2.enum([
|
|
@@ -70873,9 +70869,7 @@ var init_types = __esm({
|
|
|
70873
70869
|
COLOR_KEYS = [
|
|
70874
70870
|
"dark",
|
|
70875
70871
|
"light",
|
|
70876
|
-
"
|
|
70877
|
-
"secondary",
|
|
70878
|
-
"tertiary",
|
|
70872
|
+
"brand",
|
|
70879
70873
|
"accent",
|
|
70880
70874
|
"success",
|
|
70881
70875
|
"info",
|
|
@@ -70910,17 +70904,26 @@ var init_get_default_config = __esm({
|
|
|
70910
70904
|
init_src();
|
|
70911
70905
|
init_find_workspace_root();
|
|
70912
70906
|
DEFAULT_COLOR_CONFIG = {
|
|
70913
|
-
|
|
70914
|
-
|
|
70915
|
-
|
|
70916
|
-
|
|
70917
|
-
|
|
70918
|
-
|
|
70919
|
-
|
|
70920
|
-
|
|
70921
|
-
|
|
70922
|
-
|
|
70923
|
-
|
|
70907
|
+
light: {
|
|
70908
|
+
background: "#f4f4f5",
|
|
70909
|
+
foreground: "#1d232a",
|
|
70910
|
+
brand: "#1fb2a6",
|
|
70911
|
+
accent: "#8250df",
|
|
70912
|
+
success: "#087f5b",
|
|
70913
|
+
info: "#0550ae",
|
|
70914
|
+
warning: "#e3b341",
|
|
70915
|
+
error: "#a40e26"
|
|
70916
|
+
},
|
|
70917
|
+
dark: {
|
|
70918
|
+
background: "#22272E",
|
|
70919
|
+
foreground: "#fcfcf5",
|
|
70920
|
+
brand: "#1fb2a6",
|
|
70921
|
+
accent: "#8256D0",
|
|
70922
|
+
success: "#087f5b",
|
|
70923
|
+
info: "#316DCA",
|
|
70924
|
+
warning: "#F3D371",
|
|
70925
|
+
error: "#d1242f"
|
|
70926
|
+
}
|
|
70924
70927
|
};
|
|
70925
70928
|
DEFAULT_STORM_CONFIG = {
|
|
70926
70929
|
name: "storm",
|
|
@@ -72680,7 +72683,7 @@ var init_logger = __esm({
|
|
|
72680
72683
|
return (message) => {
|
|
72681
72684
|
console.error(
|
|
72682
72685
|
`
|
|
72683
|
-
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#
|
|
72686
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
72684
72687
|
" \u{1F480} Fatal "
|
|
72685
72688
|
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
72686
72689
|
`
|
|
@@ -72735,9 +72738,9 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
72735
72738
|
return (message) => {
|
|
72736
72739
|
console.debug(
|
|
72737
72740
|
`
|
|
72738
|
-
${_chalk.bold.hex(colors.
|
|
72741
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
72739
72742
|
" \u{1F6E0} Debug "
|
|
72740
|
-
)} ${_chalk.hex(colors.
|
|
72743
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72741
72744
|
`
|
|
72742
72745
|
);
|
|
72743
72746
|
};
|
|
@@ -72745,9 +72748,9 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
72745
72748
|
return (message) => {
|
|
72746
72749
|
console.log(
|
|
72747
72750
|
`
|
|
72748
|
-
${_chalk.bold.hex(colors.
|
|
72751
|
+
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
72749
72752
|
" \u2709 System "
|
|
72750
|
-
)} ${_chalk.hex(colors.
|
|
72753
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72751
72754
|
`
|
|
72752
72755
|
);
|
|
72753
72756
|
};
|
|
@@ -72775,7 +72778,7 @@ ${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
72775
72778
|
};
|
|
72776
72779
|
};
|
|
72777
72780
|
formatLogMessage = (message, prefix = "-") => {
|
|
72778
|
-
return typeof message === "string" ? message : typeof message === "object" ? `
|
|
72781
|
+
return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : typeof message === "object" ? `
|
|
72779
72782
|
${Object.keys(message).map(
|
|
72780
72783
|
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], `${prefix}-`) : message[key]}`
|
|
72781
72784
|
).join("\n")}` : message;
|
|
@@ -73132,15 +73135,13 @@ var init_get_env = __esm({
|
|
|
73132
73135
|
};
|
|
73133
73136
|
getThemeColorConfigEnv = (prefix, theme) => {
|
|
73134
73137
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
73135
|
-
return process.env[`${prefix}${themeName}
|
|
73138
|
+
return process.env[`${prefix}${themeName}LIGHT_BRAND`] || process.env[`${prefix}${themeName}DARK_BRAND`] ? getMultiThemeColorConfigEnv(prefix + themeName) : getSingleThemeColorConfigEnv(prefix + themeName);
|
|
73136
73139
|
};
|
|
73137
73140
|
getSingleThemeColorConfigEnv = (prefix) => {
|
|
73138
73141
|
return {
|
|
73139
73142
|
dark: process.env[`${prefix}DARK`],
|
|
73140
73143
|
light: process.env[`${prefix}LIGHT`],
|
|
73141
|
-
|
|
73142
|
-
secondary: process.env[`${prefix}SECONDARY`],
|
|
73143
|
-
tertiary: process.env[`${prefix}TERTIARY`],
|
|
73144
|
+
brand: process.env[`${prefix}BRAND`],
|
|
73144
73145
|
accent: process.env[`${prefix}ACCENT`],
|
|
73145
73146
|
success: process.env[`${prefix}SUCCESS`],
|
|
73146
73147
|
info: process.env[`${prefix}INFO`],
|
|
@@ -73161,9 +73162,7 @@ var init_get_env = __esm({
|
|
|
73161
73162
|
return {
|
|
73162
73163
|
foreground: process.env[`${prefix}FOREGROUND`],
|
|
73163
73164
|
background: process.env[`${prefix}BACKGROUND`],
|
|
73164
|
-
|
|
73165
|
-
secondary: process.env[`${prefix}SECONDARY`],
|
|
73166
|
-
tertiary: process.env[`${prefix}TERTIARY`],
|
|
73165
|
+
brand: process.env[`${prefix}BRAND`],
|
|
73167
73166
|
accent: process.env[`${prefix}ACCENT`],
|
|
73168
73167
|
success: process.env[`${prefix}SUCCESS`],
|
|
73169
73168
|
info: process.env[`${prefix}INFO`],
|
|
@@ -73330,7 +73329,7 @@ var init_set_env = __esm({
|
|
|
73330
73329
|
}
|
|
73331
73330
|
};
|
|
73332
73331
|
setThemeColorConfigEnv = (prefix, config) => {
|
|
73333
|
-
return config?.light?.
|
|
73332
|
+
return config?.light?.brand || config?.dark?.brand ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
73334
73333
|
};
|
|
73335
73334
|
setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
73336
73335
|
if (config.dark) {
|
|
@@ -73339,14 +73338,8 @@ var init_set_env = __esm({
|
|
|
73339
73338
|
if (config.light) {
|
|
73340
73339
|
process.env[`${prefix}LIGHT`] = config.light;
|
|
73341
73340
|
}
|
|
73342
|
-
if (config.
|
|
73343
|
-
process.env[`${prefix}
|
|
73344
|
-
}
|
|
73345
|
-
if (config.secondary) {
|
|
73346
|
-
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
73347
|
-
}
|
|
73348
|
-
if (config.tertiary) {
|
|
73349
|
-
process.env[`${prefix}TERTIARY`] = config.tertiary;
|
|
73341
|
+
if (config.brand) {
|
|
73342
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
73350
73343
|
}
|
|
73351
73344
|
if (config.accent) {
|
|
73352
73345
|
process.env[`${prefix}ACCENT`] = config.accent;
|
|
@@ -73380,14 +73373,8 @@ var init_set_env = __esm({
|
|
|
73380
73373
|
if (config.background) {
|
|
73381
73374
|
process.env[`${prefix}BACKGROUND`] = config.background;
|
|
73382
73375
|
}
|
|
73383
|
-
if (config.
|
|
73384
|
-
process.env[`${prefix}
|
|
73385
|
-
}
|
|
73386
|
-
if (config.secondary) {
|
|
73387
|
-
process.env[`${prefix}SECONDARY`] = config.secondary;
|
|
73388
|
-
}
|
|
73389
|
-
if (config.tertiary) {
|
|
73390
|
-
process.env[`${prefix}TERTIARY`] = config.tertiary;
|
|
73376
|
+
if (config.brand) {
|
|
73377
|
+
process.env[`${prefix}BRAND`] = config.brand;
|
|
73391
73378
|
}
|
|
73392
73379
|
if (config.accent) {
|
|
73393
73380
|
process.env[`${prefix}ACCENT`] = config.accent;
|