@storm-software/workspace-tools 1.46.1 → 1.48.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 +14 -0
- package/index.js +222 -216
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +195 -200
- package/src/executors/design-tokens/executor.js +192 -199
- package/src/executors/tsup/executor.js +210 -212
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +27 -6
- package/src/executors/tsup-browser/executor.js +216 -214
- package/src/executors/tsup-neutral/executor.js +213 -213
- package/src/executors/tsup-node/executor.js +213 -213
- package/src/executors/typia/executor.js +192 -199
- package/src/generators/browser-library/generator.js +192 -199
- package/src/generators/config-schema/generator.js +192 -199
- package/src/generators/neutral-library/generator.js +192 -199
- package/src/generators/node-library/generator.js +192 -199
- package/src/generators/preset/generator.js +192 -199
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -44219,216 +44219,23 @@ module.exports = __toCommonJS(base_exports);
|
|
|
44219
44219
|
|
|
44220
44220
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
44221
44221
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
44222
|
-
|
|
44223
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
44224
|
-
var chalk = __toESM(require_source(), 1);
|
|
44225
|
-
|
|
44226
|
-
// packages/config-tools/src/types.ts
|
|
44227
|
-
var LogLevel = {
|
|
44228
|
-
SILENT: 0,
|
|
44229
|
-
FATAL: 10,
|
|
44230
|
-
ERROR: 20,
|
|
44231
|
-
WARN: 30,
|
|
44232
|
-
INFO: 40,
|
|
44233
|
-
SUCCESS: 45,
|
|
44234
|
-
DEBUG: 60,
|
|
44235
|
-
TRACE: 70,
|
|
44236
|
-
ALL: 100
|
|
44237
|
-
};
|
|
44238
|
-
var LogLevelLabel = {
|
|
44239
|
-
SILENT: "silent",
|
|
44240
|
-
FATAL: "fatal",
|
|
44241
|
-
ERROR: "error",
|
|
44242
|
-
WARN: "warn",
|
|
44243
|
-
INFO: "info",
|
|
44244
|
-
DEBUG: "debug",
|
|
44245
|
-
TRACE: "trace",
|
|
44246
|
-
ALL: "all"
|
|
44247
|
-
};
|
|
44248
|
-
|
|
44249
|
-
// packages/config-tools/src/utilities/get-log-level.ts
|
|
44250
|
-
var getLogLevel = (label) => {
|
|
44251
|
-
switch (label) {
|
|
44252
|
-
case "all":
|
|
44253
|
-
return LogLevel.ALL;
|
|
44254
|
-
case "trace":
|
|
44255
|
-
return LogLevel.TRACE;
|
|
44256
|
-
case "debug":
|
|
44257
|
-
return LogLevel.DEBUG;
|
|
44258
|
-
case "info":
|
|
44259
|
-
return LogLevel.INFO;
|
|
44260
|
-
case "warn":
|
|
44261
|
-
return LogLevel.WARN;
|
|
44262
|
-
case "error":
|
|
44263
|
-
return LogLevel.ERROR;
|
|
44264
|
-
case "fatal":
|
|
44265
|
-
return LogLevel.FATAL;
|
|
44266
|
-
case "silent":
|
|
44267
|
-
return LogLevel.SILENT;
|
|
44268
|
-
default:
|
|
44269
|
-
return LogLevel.INFO;
|
|
44270
|
-
}
|
|
44271
|
-
};
|
|
44272
|
-
var getLogLevelLabel = (logLevel) => {
|
|
44273
|
-
if (logLevel >= LogLevel.ALL) {
|
|
44274
|
-
return LogLevelLabel.ALL;
|
|
44275
|
-
}
|
|
44276
|
-
if (logLevel >= LogLevel.TRACE) {
|
|
44277
|
-
return LogLevelLabel.TRACE;
|
|
44278
|
-
}
|
|
44279
|
-
if (logLevel >= LogLevel.DEBUG) {
|
|
44280
|
-
return LogLevelLabel.DEBUG;
|
|
44281
|
-
}
|
|
44282
|
-
if (logLevel >= LogLevel.INFO) {
|
|
44283
|
-
return LogLevelLabel.INFO;
|
|
44284
|
-
}
|
|
44285
|
-
if (logLevel >= LogLevel.WARN) {
|
|
44286
|
-
return LogLevelLabel.WARN;
|
|
44287
|
-
}
|
|
44288
|
-
if (logLevel >= LogLevel.ERROR) {
|
|
44289
|
-
return LogLevelLabel.ERROR;
|
|
44290
|
-
}
|
|
44291
|
-
if (logLevel >= LogLevel.FATAL) {
|
|
44292
|
-
return LogLevelLabel.FATAL;
|
|
44293
|
-
}
|
|
44294
|
-
if (logLevel <= LogLevel.SILENT) {
|
|
44295
|
-
return LogLevelLabel.SILENT;
|
|
44296
|
-
}
|
|
44297
|
-
return LogLevelLabel.INFO;
|
|
44298
|
-
};
|
|
44299
|
-
|
|
44300
|
-
// packages/config-tools/src/utilities/logger.ts
|
|
44301
|
-
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
44302
|
-
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
44303
|
-
return (_) => {
|
|
44304
|
-
};
|
|
44305
|
-
}
|
|
44306
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
44307
|
-
return (message) => {
|
|
44308
|
-
console.error(
|
|
44309
|
-
`
|
|
44310
|
-
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
44311
|
-
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
44312
|
-
)(message)}
|
|
44313
|
-
|
|
44314
|
-
`
|
|
44315
|
-
);
|
|
44316
|
-
};
|
|
44317
|
-
}
|
|
44318
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
44319
|
-
return (message) => {
|
|
44320
|
-
console.error(
|
|
44321
|
-
`
|
|
44322
|
-
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u2718 Error ")} ${chalk.hex(
|
|
44323
|
-
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
44324
|
-
)(message)}
|
|
44325
|
-
`
|
|
44326
|
-
);
|
|
44327
|
-
};
|
|
44328
|
-
}
|
|
44329
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
44330
|
-
return (message) => {
|
|
44331
|
-
console.warn(
|
|
44332
|
-
`
|
|
44333
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" ! Warn ")} ${chalk.hex(
|
|
44334
|
-
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
44335
|
-
)(message)}
|
|
44336
|
-
`
|
|
44337
|
-
);
|
|
44338
|
-
};
|
|
44339
|
-
}
|
|
44340
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
44341
|
-
return (message) => {
|
|
44342
|
-
console.info(
|
|
44343
|
-
`
|
|
44344
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
44345
|
-
message
|
|
44346
|
-
)}
|
|
44347
|
-
`
|
|
44348
|
-
);
|
|
44349
|
-
};
|
|
44350
|
-
}
|
|
44351
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
44352
|
-
return (message) => {
|
|
44353
|
-
console.info(
|
|
44354
|
-
`
|
|
44355
|
-
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u221A Success ")} ${chalk.hex(
|
|
44356
|
-
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
44357
|
-
)(message)}
|
|
44358
|
-
`
|
|
44359
|
-
);
|
|
44360
|
-
};
|
|
44361
|
-
}
|
|
44362
|
-
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
44363
|
-
return (message) => {
|
|
44364
|
-
console.debug(
|
|
44365
|
-
`
|
|
44366
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
44367
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
44368
|
-
)(message)}
|
|
44369
|
-
`
|
|
44370
|
-
);
|
|
44371
|
-
};
|
|
44372
|
-
}
|
|
44373
|
-
return (message) => {
|
|
44374
|
-
console.log(
|
|
44375
|
-
`
|
|
44376
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
44377
|
-
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
44378
|
-
)(message)}
|
|
44379
|
-
`
|
|
44380
|
-
);
|
|
44381
|
-
};
|
|
44382
|
-
};
|
|
44383
|
-
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
44384
|
-
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
44385
|
-
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
44386
|
-
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
44387
|
-
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
44388
|
-
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
44389
|
-
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
44390
|
-
var getStopwatch = (name) => {
|
|
44391
|
-
const start = process.hrtime();
|
|
44392
|
-
return () => {
|
|
44393
|
-
const end = process.hrtime(start);
|
|
44394
|
-
console.info(
|
|
44395
|
-
chalk.dim(
|
|
44396
|
-
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
44397
|
-
end[0] * 1e3 + end[1] / 1e6
|
|
44398
|
-
)}ms to complete`
|
|
44399
|
-
)
|
|
44400
|
-
);
|
|
44401
|
-
};
|
|
44402
|
-
};
|
|
44403
|
-
|
|
44404
|
-
// packages/config-tools/src/config-file/get-config-file.ts
|
|
44405
44222
|
var _static_cache = void 0;
|
|
44406
|
-
var
|
|
44223
|
+
var getConfigFileByName = async (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
44407
44224
|
var getConfigFile = async (filePath) => {
|
|
44408
44225
|
if (_static_cache) {
|
|
44409
44226
|
return _static_cache;
|
|
44410
44227
|
}
|
|
44411
|
-
let cosmiconfigResult = await
|
|
44228
|
+
let cosmiconfigResult = await getConfigFileByName("storm", filePath);
|
|
44412
44229
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
44413
|
-
cosmiconfigResult = await
|
|
44230
|
+
cosmiconfigResult = await getConfigFileByName("storm-software", filePath);
|
|
44414
44231
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
44415
|
-
cosmiconfigResult = await
|
|
44232
|
+
cosmiconfigResult = await getConfigFileByName("storm-stack", filePath);
|
|
44416
44233
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
44417
|
-
cosmiconfigResult = await
|
|
44418
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
44419
|
-
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
44420
|
-
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
44421
|
-
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
44422
|
-
}
|
|
44423
|
-
}
|
|
44234
|
+
cosmiconfigResult = await getConfigFileByName("storm-cloud", filePath);
|
|
44424
44235
|
}
|
|
44425
44236
|
}
|
|
44426
44237
|
}
|
|
44427
44238
|
if (!cosmiconfigResult || Object.keys(cosmiconfigResult).length === 0 || cosmiconfigResult.isEmpty || !cosmiconfigResult.filepath) {
|
|
44428
|
-
writeWarning(
|
|
44429
|
-
{ logLevel: "all" },
|
|
44430
|
-
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n"
|
|
44431
|
-
);
|
|
44432
44239
|
return void 0;
|
|
44433
44240
|
}
|
|
44434
44241
|
const config = cosmiconfigResult.config ?? {};
|
|
@@ -48219,6 +48026,185 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
48219
48026
|
});
|
|
48220
48027
|
};
|
|
48221
48028
|
|
|
48029
|
+
// packages/config-tools/src/types.ts
|
|
48030
|
+
var LogLevel = {
|
|
48031
|
+
SILENT: 0,
|
|
48032
|
+
FATAL: 10,
|
|
48033
|
+
ERROR: 20,
|
|
48034
|
+
WARN: 30,
|
|
48035
|
+
INFO: 40,
|
|
48036
|
+
SUCCESS: 45,
|
|
48037
|
+
DEBUG: 60,
|
|
48038
|
+
TRACE: 70,
|
|
48039
|
+
ALL: 100
|
|
48040
|
+
};
|
|
48041
|
+
var LogLevelLabel = {
|
|
48042
|
+
SILENT: "silent",
|
|
48043
|
+
FATAL: "fatal",
|
|
48044
|
+
ERROR: "error",
|
|
48045
|
+
WARN: "warn",
|
|
48046
|
+
INFO: "info",
|
|
48047
|
+
DEBUG: "debug",
|
|
48048
|
+
TRACE: "trace",
|
|
48049
|
+
ALL: "all"
|
|
48050
|
+
};
|
|
48051
|
+
|
|
48052
|
+
// packages/config-tools/src/utilities/get-log-level.ts
|
|
48053
|
+
var getLogLevel = (label) => {
|
|
48054
|
+
switch (label) {
|
|
48055
|
+
case "all":
|
|
48056
|
+
return LogLevel.ALL;
|
|
48057
|
+
case "trace":
|
|
48058
|
+
return LogLevel.TRACE;
|
|
48059
|
+
case "debug":
|
|
48060
|
+
return LogLevel.DEBUG;
|
|
48061
|
+
case "info":
|
|
48062
|
+
return LogLevel.INFO;
|
|
48063
|
+
case "warn":
|
|
48064
|
+
return LogLevel.WARN;
|
|
48065
|
+
case "error":
|
|
48066
|
+
return LogLevel.ERROR;
|
|
48067
|
+
case "fatal":
|
|
48068
|
+
return LogLevel.FATAL;
|
|
48069
|
+
case "silent":
|
|
48070
|
+
return LogLevel.SILENT;
|
|
48071
|
+
default:
|
|
48072
|
+
return LogLevel.INFO;
|
|
48073
|
+
}
|
|
48074
|
+
};
|
|
48075
|
+
var getLogLevelLabel = (logLevel) => {
|
|
48076
|
+
if (logLevel >= LogLevel.ALL) {
|
|
48077
|
+
return LogLevelLabel.ALL;
|
|
48078
|
+
}
|
|
48079
|
+
if (logLevel >= LogLevel.TRACE) {
|
|
48080
|
+
return LogLevelLabel.TRACE;
|
|
48081
|
+
}
|
|
48082
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
48083
|
+
return LogLevelLabel.DEBUG;
|
|
48084
|
+
}
|
|
48085
|
+
if (logLevel >= LogLevel.INFO) {
|
|
48086
|
+
return LogLevelLabel.INFO;
|
|
48087
|
+
}
|
|
48088
|
+
if (logLevel >= LogLevel.WARN) {
|
|
48089
|
+
return LogLevelLabel.WARN;
|
|
48090
|
+
}
|
|
48091
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
48092
|
+
return LogLevelLabel.ERROR;
|
|
48093
|
+
}
|
|
48094
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
48095
|
+
return LogLevelLabel.FATAL;
|
|
48096
|
+
}
|
|
48097
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
48098
|
+
return LogLevelLabel.SILENT;
|
|
48099
|
+
}
|
|
48100
|
+
return LogLevelLabel.INFO;
|
|
48101
|
+
};
|
|
48102
|
+
|
|
48103
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
48104
|
+
var chalk = __toESM(require_source(), 1);
|
|
48105
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
48106
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
48107
|
+
return (_) => {
|
|
48108
|
+
};
|
|
48109
|
+
}
|
|
48110
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
48111
|
+
return (message) => {
|
|
48112
|
+
console.error(
|
|
48113
|
+
`
|
|
48114
|
+
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
48115
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
48116
|
+
)(message)}
|
|
48117
|
+
|
|
48118
|
+
`
|
|
48119
|
+
);
|
|
48120
|
+
};
|
|
48121
|
+
}
|
|
48122
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
48123
|
+
return (message) => {
|
|
48124
|
+
console.error(
|
|
48125
|
+
`
|
|
48126
|
+
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u2718 Error ")} ${chalk.hex(
|
|
48127
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
48128
|
+
)(message)}
|
|
48129
|
+
`
|
|
48130
|
+
);
|
|
48131
|
+
};
|
|
48132
|
+
}
|
|
48133
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
48134
|
+
return (message) => {
|
|
48135
|
+
console.warn(
|
|
48136
|
+
`
|
|
48137
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" \u26A0 Warn ")} ${chalk.hex(
|
|
48138
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
48139
|
+
)(message)}
|
|
48140
|
+
`
|
|
48141
|
+
);
|
|
48142
|
+
};
|
|
48143
|
+
}
|
|
48144
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
48145
|
+
return (message) => {
|
|
48146
|
+
console.info(
|
|
48147
|
+
`
|
|
48148
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
48149
|
+
message
|
|
48150
|
+
)}
|
|
48151
|
+
`
|
|
48152
|
+
);
|
|
48153
|
+
};
|
|
48154
|
+
}
|
|
48155
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
48156
|
+
return (message) => {
|
|
48157
|
+
console.info(
|
|
48158
|
+
`
|
|
48159
|
+
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u221A Success ")} ${chalk.hex(
|
|
48160
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
48161
|
+
)(message)}
|
|
48162
|
+
`
|
|
48163
|
+
);
|
|
48164
|
+
};
|
|
48165
|
+
}
|
|
48166
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
48167
|
+
return (message) => {
|
|
48168
|
+
console.debug(
|
|
48169
|
+
`
|
|
48170
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" ! Debug ")} ${chalk.hex(
|
|
48171
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
48172
|
+
)(message)}
|
|
48173
|
+
`
|
|
48174
|
+
);
|
|
48175
|
+
};
|
|
48176
|
+
}
|
|
48177
|
+
return (message) => {
|
|
48178
|
+
console.log(
|
|
48179
|
+
`
|
|
48180
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" ! System ")} ${chalk.hex(
|
|
48181
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
48182
|
+
)(message)}
|
|
48183
|
+
`
|
|
48184
|
+
);
|
|
48185
|
+
};
|
|
48186
|
+
};
|
|
48187
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
48188
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
48189
|
+
var writeWarning = (config, message) => getLogFn(config, LogLevel.WARN)(message);
|
|
48190
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
48191
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
48192
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
48193
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
48194
|
+
var getStopwatch = (name) => {
|
|
48195
|
+
const start = process.hrtime();
|
|
48196
|
+
return () => {
|
|
48197
|
+
const end = process.hrtime(start);
|
|
48198
|
+
console.info(
|
|
48199
|
+
chalk.dim(
|
|
48200
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
48201
|
+
end[0] * 1e3 + end[1] / 1e6
|
|
48202
|
+
)}ms to complete`
|
|
48203
|
+
)
|
|
48204
|
+
);
|
|
48205
|
+
};
|
|
48206
|
+
};
|
|
48207
|
+
|
|
48222
48208
|
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
48223
48209
|
var import_node_buffer2 = require("node:buffer");
|
|
48224
48210
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
@@ -49987,10 +49973,17 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
49987
49973
|
if (!_workspaceRoot) {
|
|
49988
49974
|
_workspaceRoot = findWorkspaceRoot();
|
|
49989
49975
|
}
|
|
49976
|
+
const configFile = await getConfigFile(_workspaceRoot);
|
|
49977
|
+
if (!configFile) {
|
|
49978
|
+
writeWarning(
|
|
49979
|
+
{ logLevel: "all" },
|
|
49980
|
+
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not.\n"
|
|
49981
|
+
);
|
|
49982
|
+
}
|
|
49990
49983
|
config = StormConfigSchema.parse(
|
|
49991
49984
|
await getDefaultConfig(
|
|
49992
49985
|
{
|
|
49993
|
-
...
|
|
49986
|
+
...configFile,
|
|
49994
49987
|
...getConfigEnv()
|
|
49995
49988
|
},
|
|
49996
49989
|
_workspaceRoot
|
|
@@ -50297,7 +50290,8 @@ function defaultConfig({
|
|
|
50297
50290
|
apiReport = true,
|
|
50298
50291
|
docModel = true,
|
|
50299
50292
|
tsdocMetadata = true,
|
|
50300
|
-
metafile =
|
|
50293
|
+
metafile = true,
|
|
50294
|
+
skipNativeModulesPlugin = false,
|
|
50301
50295
|
define,
|
|
50302
50296
|
env,
|
|
50303
50297
|
plugins,
|
|
@@ -50345,6 +50339,7 @@ function defaultConfig({
|
|
|
50345
50339
|
tsdocMetadata,
|
|
50346
50340
|
sourcemap: debug,
|
|
50347
50341
|
clean: false,
|
|
50342
|
+
skipNativeModulesPlugin,
|
|
50348
50343
|
tsconfigDecoratorMetadata: true,
|
|
50349
50344
|
plugins,
|
|
50350
50345
|
getTransform,
|