@storm-software/workspace-tools 1.68.9 → 1.68.11
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/README.md +1 -1
- package/index.js +229 -145
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +35 -14
- package/src/executors/rolldown/executor.js +26 -12
- package/src/executors/tsup/executor.js +26 -12
- package/src/executors/tsup-browser/executor.js +26 -12
- package/src/executors/tsup-neutral/executor.js +26 -12
- package/src/executors/tsup-node/executor.js +26 -12
- package/src/executors/typia/executor.js +26 -12
- package/src/generators/browser-library/generator.js +35 -14
- package/src/generators/config-schema/generator.js +26 -12
- package/src/generators/neutral-library/generator.js +35 -14
- package/src/generators/node-library/generator.js +35 -14
- package/src/generators/preset/generator.js +26 -12
- package/src/generators/release-version/generator.js +78 -23
- package/src/utils/index.js +129 -93
|
@@ -7145,7 +7145,7 @@ var require_lib3 = __commonJS({
|
|
|
7145
7145
|
return _chalk.default.level > 0 || options.forceColor;
|
|
7146
7146
|
}
|
|
7147
7147
|
var chalkWithForcedColor = void 0;
|
|
7148
|
-
function
|
|
7148
|
+
function getChalk2(forceColor) {
|
|
7149
7149
|
if (forceColor) {
|
|
7150
7150
|
var _chalkWithForcedColor;
|
|
7151
7151
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -7157,11 +7157,11 @@ var require_lib3 = __commonJS({
|
|
|
7157
7157
|
return _chalk.default;
|
|
7158
7158
|
}
|
|
7159
7159
|
{
|
|
7160
|
-
exports2.getChalk = (options) =>
|
|
7160
|
+
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
7161
7161
|
}
|
|
7162
7162
|
function highlight(code, options = {}) {
|
|
7163
7163
|
if (code !== "" && shouldHighlight(options)) {
|
|
7164
|
-
const defs = getDefs(
|
|
7164
|
+
const defs = getDefs(getChalk2(options.forceColor));
|
|
7165
7165
|
return highlightTokens(defs, code);
|
|
7166
7166
|
} else {
|
|
7167
7167
|
return code;
|
|
@@ -7206,7 +7206,7 @@ var require_lib4 = __commonJS({
|
|
|
7206
7206
|
return n.default = e, t && t.set(e, n), n;
|
|
7207
7207
|
}
|
|
7208
7208
|
var chalkWithForcedColor = void 0;
|
|
7209
|
-
function
|
|
7209
|
+
function getChalk2(forceColor) {
|
|
7210
7210
|
if (forceColor) {
|
|
7211
7211
|
var _chalkWithForcedColor;
|
|
7212
7212
|
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new _chalk.default.constructor({
|
|
@@ -7284,7 +7284,7 @@ var require_lib4 = __commonJS({
|
|
|
7284
7284
|
}
|
|
7285
7285
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
7286
7286
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
7287
|
-
const chalk2 =
|
|
7287
|
+
const chalk2 = getChalk2(opts.forceColor);
|
|
7288
7288
|
const defs = getDefs(chalk2);
|
|
7289
7289
|
const maybeHighlight = (chalkFn, string) => {
|
|
7290
7290
|
return highlighted ? chalkFn(string) : string;
|
|
@@ -220587,12 +220587,10 @@ var init_get_log_level = __esm({
|
|
|
220587
220587
|
}
|
|
220588
220588
|
});
|
|
220589
220589
|
|
|
220590
|
-
// packages/config-tools/src/utilities/
|
|
220591
|
-
var import_chalk, chalkDefault,
|
|
220592
|
-
var
|
|
220593
|
-
"packages/config-tools/src/utilities/
|
|
220594
|
-
init_types2();
|
|
220595
|
-
init_get_log_level();
|
|
220590
|
+
// packages/config-tools/src/utilities/chalk.ts
|
|
220591
|
+
var import_chalk, chalkDefault, getChalk;
|
|
220592
|
+
var init_chalk = __esm({
|
|
220593
|
+
"packages/config-tools/src/utilities/chalk.ts"() {
|
|
220596
220594
|
import_chalk = __toESM(require_source());
|
|
220597
220595
|
chalkDefault = {
|
|
220598
220596
|
hex: (_) => (message) => message,
|
|
@@ -220608,11 +220606,25 @@ var init_logger = __esm({
|
|
|
220608
220606
|
whiteBright: (message) => message
|
|
220609
220607
|
}
|
|
220610
220608
|
};
|
|
220611
|
-
|
|
220609
|
+
getChalk = () => {
|
|
220612
220610
|
let _chalk = import_chalk.default;
|
|
220613
220611
|
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
220614
220612
|
_chalk = chalkDefault;
|
|
220615
220613
|
}
|
|
220614
|
+
return _chalk;
|
|
220615
|
+
};
|
|
220616
|
+
}
|
|
220617
|
+
});
|
|
220618
|
+
|
|
220619
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
220620
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
220621
|
+
var init_logger = __esm({
|
|
220622
|
+
"packages/config-tools/src/utilities/logger.ts"() {
|
|
220623
|
+
init_types2();
|
|
220624
|
+
init_get_log_level();
|
|
220625
|
+
init_chalk();
|
|
220626
|
+
getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
220627
|
+
let _chalk = getChalk();
|
|
220616
220628
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
220617
220629
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
220618
220630
|
return (_) => {
|
|
@@ -220886,6 +220898,7 @@ var init_utilities = __esm({
|
|
|
220886
220898
|
init_correct_paths();
|
|
220887
220899
|
init_file_path_utils();
|
|
220888
220900
|
init_apply_workspace_tokens();
|
|
220901
|
+
init_chalk();
|
|
220889
220902
|
}
|
|
220890
220903
|
});
|
|
220891
220904
|
|
|
@@ -221232,6 +221245,7 @@ __export(src_exports, {
|
|
|
221232
221245
|
findFileName: () => findFileName,
|
|
221233
221246
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
221234
221247
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
221248
|
+
getChalk: () => getChalk,
|
|
221235
221249
|
getConfigEnv: () => getConfigEnv,
|
|
221236
221250
|
getConfigFile: () => getConfigFile,
|
|
221237
221251
|
getConfigFileByName: () => getConfigFileByName,
|
|
@@ -221308,9 +221322,9 @@ var require_package = __commonJS({
|
|
|
221308
221322
|
}
|
|
221309
221323
|
});
|
|
221310
221324
|
|
|
221311
|
-
// node_modules/.pnpm/lru-cache@10.0
|
|
221312
|
-
var
|
|
221313
|
-
"node_modules/.pnpm/lru-cache@10.0
|
|
221325
|
+
// node_modules/.pnpm/lru-cache@10.2.0/node_modules/lru-cache/dist/commonjs/index.js
|
|
221326
|
+
var require_commonjs = __commonJS({
|
|
221327
|
+
"node_modules/.pnpm/lru-cache@10.2.0/node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
|
|
221314
221328
|
"use strict";
|
|
221315
221329
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
221316
221330
|
exports2.LRUCache = void 0;
|
|
@@ -221682,6 +221696,8 @@ var require_cjs = __commonJS({
|
|
|
221682
221696
|
if (ttls[index]) {
|
|
221683
221697
|
const ttl = ttls[index];
|
|
221684
221698
|
const start = starts[index];
|
|
221699
|
+
if (!ttl || !start)
|
|
221700
|
+
return;
|
|
221685
221701
|
status.ttl = ttl;
|
|
221686
221702
|
status.start = start;
|
|
221687
221703
|
status.now = cachedNow || getNow();
|
|
@@ -221708,14 +221724,16 @@ var require_cjs = __commonJS({
|
|
|
221708
221724
|
}
|
|
221709
221725
|
const ttl = ttls[index];
|
|
221710
221726
|
const start = starts[index];
|
|
221711
|
-
if (ttl
|
|
221727
|
+
if (!ttl || !start) {
|
|
221712
221728
|
return Infinity;
|
|
221713
221729
|
}
|
|
221714
221730
|
const age = (cachedNow || getNow()) - start;
|
|
221715
221731
|
return ttl - age;
|
|
221716
221732
|
};
|
|
221717
221733
|
this.#isStale = (index) => {
|
|
221718
|
-
|
|
221734
|
+
const s = starts[index];
|
|
221735
|
+
const t = ttls[index];
|
|
221736
|
+
return !!t && !!s && (cachedNow || getNow()) - s > t;
|
|
221719
221737
|
};
|
|
221720
221738
|
}
|
|
221721
221739
|
// conditionally set private methods related to TTL
|
|
@@ -221899,6 +221917,11 @@ var require_cjs = __commonJS({
|
|
|
221899
221917
|
[Symbol.iterator]() {
|
|
221900
221918
|
return this.entries();
|
|
221901
221919
|
}
|
|
221920
|
+
/**
|
|
221921
|
+
* A String value that is used in the creation of the default string description of an object.
|
|
221922
|
+
* Called by the built-in method Object.prototype.toString.
|
|
221923
|
+
*/
|
|
221924
|
+
[Symbol.toStringTag] = "LRUCache";
|
|
221902
221925
|
/**
|
|
221903
221926
|
* Find a value for which the supplied fn method returns a truthy value,
|
|
221904
221927
|
* similar to Array.find(). fn is called as fn(value, key, cache).
|
|
@@ -221956,6 +221979,35 @@ var require_cjs = __commonJS({
|
|
|
221956
221979
|
}
|
|
221957
221980
|
return deleted;
|
|
221958
221981
|
}
|
|
221982
|
+
/**
|
|
221983
|
+
* Get the extended info about a given entry, to get its value, size, and
|
|
221984
|
+
* TTL info simultaneously. Like {@link LRUCache#dump}, but just for a
|
|
221985
|
+
* single key. Always returns stale values, if their info is found in the
|
|
221986
|
+
* cache, so be sure to check for expired TTLs if relevant.
|
|
221987
|
+
*/
|
|
221988
|
+
info(key) {
|
|
221989
|
+
const i = this.#keyMap.get(key);
|
|
221990
|
+
if (i === void 0)
|
|
221991
|
+
return void 0;
|
|
221992
|
+
const v = this.#valList[i];
|
|
221993
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
221994
|
+
if (value === void 0)
|
|
221995
|
+
return void 0;
|
|
221996
|
+
const entry = { value };
|
|
221997
|
+
if (this.#ttls && this.#starts) {
|
|
221998
|
+
const ttl = this.#ttls[i];
|
|
221999
|
+
const start = this.#starts[i];
|
|
222000
|
+
if (ttl && start) {
|
|
222001
|
+
const remain = ttl - (perf.now() - start);
|
|
222002
|
+
entry.ttl = remain;
|
|
222003
|
+
entry.start = Date.now();
|
|
222004
|
+
}
|
|
222005
|
+
}
|
|
222006
|
+
if (this.#sizes) {
|
|
222007
|
+
entry.size = this.#sizes[i];
|
|
222008
|
+
}
|
|
222009
|
+
return entry;
|
|
222010
|
+
}
|
|
221959
222011
|
/**
|
|
221960
222012
|
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
221961
222013
|
* passed to cache.load()
|
|
@@ -222188,10 +222240,11 @@ var require_cjs = __commonJS({
|
|
|
222188
222240
|
peek(k, peekOptions = {}) {
|
|
222189
222241
|
const { allowStale = this.allowStale } = peekOptions;
|
|
222190
222242
|
const index = this.#keyMap.get(k);
|
|
222191
|
-
if (index
|
|
222192
|
-
|
|
222193
|
-
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
222243
|
+
if (index === void 0 || !allowStale && this.#isStale(index)) {
|
|
222244
|
+
return;
|
|
222194
222245
|
}
|
|
222246
|
+
const v = this.#valList[index];
|
|
222247
|
+
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
222195
222248
|
}
|
|
222196
222249
|
#backgroundFetch(k, index, options, context) {
|
|
222197
222250
|
const v = index === void 0 ? void 0 : this.#valList[index];
|
|
@@ -222488,8 +222541,10 @@ var require_cjs = __commonJS({
|
|
|
222488
222541
|
} else if (index === this.#head) {
|
|
222489
222542
|
this.#head = this.#next[index];
|
|
222490
222543
|
} else {
|
|
222491
|
-
|
|
222492
|
-
this.#
|
|
222544
|
+
const pi = this.#prev[index];
|
|
222545
|
+
this.#next[pi] = this.#next[index];
|
|
222546
|
+
const ni = this.#next[index];
|
|
222547
|
+
this.#prev[ni] = this.#prev[index];
|
|
222493
222548
|
}
|
|
222494
222549
|
this.#size--;
|
|
222495
222550
|
this.#free.push(index);
|
|
@@ -222868,7 +222923,7 @@ var require_from_url = __commonJS({
|
|
|
222868
222923
|
var require_lib5 = __commonJS({
|
|
222869
222924
|
"node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/index.js"(exports2, module2) {
|
|
222870
222925
|
"use strict";
|
|
222871
|
-
var { LRUCache } =
|
|
222926
|
+
var { LRUCache } = require_commonjs();
|
|
222872
222927
|
var hosts = require_hosts();
|
|
222873
222928
|
var fromUrl = require_from_url();
|
|
222874
222929
|
var parseUrl = require_parse_url();
|