@storm-software/workspace-tools 1.42.3 → 1.42.4
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 +7 -0
- package/config/nx.json +1 -3
- package/index.js +179 -105
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +177 -103
- package/src/executors/design-tokens/executor.js +177 -103
- package/src/executors/tsup/executor.js +179 -105
- package/src/executors/tsup-browser/executor.js +179 -105
- package/src/executors/tsup-neutral/executor.js +179 -105
- package/src/executors/tsup-node/executor.js +179 -105
- package/src/generators/browser-library/generator.js +165 -97
- package/src/generators/config-schema/generator.js +165 -97
- package/src/generators/neutral-library/generator.js +165 -97
- package/src/generators/node-library/generator.js +165 -97
- package/src/generators/preset/generator.js +165 -97
|
@@ -61445,7 +61445,8 @@ var LogLevel = {
|
|
|
61445
61445
|
WARN: 30,
|
|
61446
61446
|
INFO: 40,
|
|
61447
61447
|
DEBUG: 60,
|
|
61448
|
-
TRACE: 70
|
|
61448
|
+
TRACE: 70,
|
|
61449
|
+
ALL: 100
|
|
61449
61450
|
};
|
|
61450
61451
|
var LogLevelLabel = {
|
|
61451
61452
|
SILENT: "silent",
|
|
@@ -61454,7 +61455,8 @@ var LogLevelLabel = {
|
|
|
61454
61455
|
WARN: "warn",
|
|
61455
61456
|
INFO: "info",
|
|
61456
61457
|
DEBUG: "debug",
|
|
61457
|
-
TRACE: "trace"
|
|
61458
|
+
TRACE: "trace",
|
|
61459
|
+
ALL: "all"
|
|
61458
61460
|
};
|
|
61459
61461
|
|
|
61460
61462
|
// packages/config-tools/src/utilities/find-up.ts
|
|
@@ -61463,15 +61465,15 @@ var import_path = require("path");
|
|
|
61463
61465
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
61464
61466
|
var depth = 0;
|
|
61465
61467
|
function findFolderUp(startPath, endFileNames) {
|
|
61466
|
-
|
|
61467
|
-
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(
|
|
61468
|
-
return
|
|
61469
|
-
}
|
|
61470
|
-
|
|
61468
|
+
const _startPath = startPath ?? process.cwd();
|
|
61469
|
+
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(_startPath, endFileName)))) {
|
|
61470
|
+
return _startPath;
|
|
61471
|
+
}
|
|
61472
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
61473
|
+
const parent = (0, import_path.join)(_startPath, "..");
|
|
61471
61474
|
return findFolderUp(parent, endFileNames);
|
|
61472
|
-
} else {
|
|
61473
|
-
return void 0;
|
|
61474
61475
|
}
|
|
61476
|
+
return void 0;
|
|
61475
61477
|
}
|
|
61476
61478
|
|
|
61477
61479
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
@@ -65128,17 +65130,13 @@ var StormConfigSchema = objectType({
|
|
|
65128
65130
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
65129
65131
|
homepage: stringType().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
65130
65132
|
branch: stringType().trim().default("main").describe("The branch of the workspace"),
|
|
65131
|
-
preMajor: booleanType().default(false).describe(
|
|
65132
|
-
"An indicator specifying if the package is still in it's pre-major version"
|
|
65133
|
-
),
|
|
65133
|
+
preMajor: booleanType().default(false).describe("An indicator specifying if the package is still in it's pre-major version"),
|
|
65134
65134
|
owner: stringType().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
65135
65135
|
worker: stringType().trim().default("stormie-bot").describe(
|
|
65136
65136
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
65137
65137
|
),
|
|
65138
65138
|
env: enumType(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
65139
|
-
ci: booleanType().default(true).describe(
|
|
65140
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
65141
|
-
),
|
|
65139
|
+
ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
65142
65140
|
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
65143
65141
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
65144
65142
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
@@ -65149,7 +65147,7 @@ var StormConfigSchema = objectType({
|
|
|
65149
65147
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
65150
65148
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
65151
65149
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
65152
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
65150
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
65153
65151
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
65154
65152
|
),
|
|
65155
65153
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -65207,11 +65205,21 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
65207
65205
|
});
|
|
65208
65206
|
if (file) {
|
|
65209
65207
|
const packageJson = JSON.parse(file);
|
|
65210
|
-
|
|
65211
|
-
|
|
65212
|
-
|
|
65213
|
-
|
|
65214
|
-
|
|
65208
|
+
if (packageJson.name) {
|
|
65209
|
+
name = packageJson.name;
|
|
65210
|
+
}
|
|
65211
|
+
if (packageJson.namespace) {
|
|
65212
|
+
namespace = packageJson.namespace;
|
|
65213
|
+
}
|
|
65214
|
+
if (packageJson.repository?.url) {
|
|
65215
|
+
repository = packageJson.repository?.url;
|
|
65216
|
+
}
|
|
65217
|
+
if (packageJson.license) {
|
|
65218
|
+
license = packageJson.license;
|
|
65219
|
+
}
|
|
65220
|
+
if (packageJson.homepage) {
|
|
65221
|
+
homepage = packageJson.homepage;
|
|
65222
|
+
}
|
|
65215
65223
|
}
|
|
65216
65224
|
}
|
|
65217
65225
|
return StormConfigSchema.parse({
|
|
@@ -65254,36 +65262,41 @@ var getLogLevel = (label) => {
|
|
|
65254
65262
|
var getLogLevelLabel = (logLevel) => {
|
|
65255
65263
|
if (logLevel >= LogLevel.TRACE) {
|
|
65256
65264
|
return LogLevelLabel.TRACE;
|
|
65257
|
-
}
|
|
65265
|
+
}
|
|
65266
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
65258
65267
|
return LogLevelLabel.DEBUG;
|
|
65259
|
-
}
|
|
65268
|
+
}
|
|
65269
|
+
if (logLevel >= LogLevel.INFO) {
|
|
65260
65270
|
return LogLevelLabel.INFO;
|
|
65261
|
-
}
|
|
65271
|
+
}
|
|
65272
|
+
if (logLevel >= LogLevel.WARN) {
|
|
65262
65273
|
return LogLevelLabel.WARN;
|
|
65263
|
-
}
|
|
65274
|
+
}
|
|
65275
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
65264
65276
|
return LogLevelLabel.ERROR;
|
|
65265
|
-
}
|
|
65277
|
+
}
|
|
65278
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
65266
65279
|
return LogLevelLabel.FATAL;
|
|
65267
|
-
}
|
|
65280
|
+
}
|
|
65281
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
65268
65282
|
return LogLevelLabel.SILENT;
|
|
65269
|
-
} else {
|
|
65270
|
-
return LogLevelLabel.INFO;
|
|
65271
65283
|
}
|
|
65284
|
+
return LogLevelLabel.INFO;
|
|
65272
65285
|
};
|
|
65273
65286
|
|
|
65274
65287
|
// packages/config-tools/src/env/get-env.ts
|
|
65275
65288
|
var getExtensionEnv = (extensionName) => {
|
|
65276
65289
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
65277
65290
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
65278
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
65279
|
-
|
|
65280
|
-
|
|
65281
|
-
|
|
65291
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
65292
|
+
if (name) {
|
|
65293
|
+
ret[name] = process.env[key];
|
|
65294
|
+
}
|
|
65282
65295
|
return ret;
|
|
65283
65296
|
}, {});
|
|
65284
65297
|
};
|
|
65285
65298
|
var getConfigEnv = () => {
|
|
65286
|
-
const prefix =
|
|
65299
|
+
const prefix = "STORM_";
|
|
65287
65300
|
let config = {
|
|
65288
65301
|
name: process.env[`${prefix}NAME`],
|
|
65289
65302
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
@@ -65302,9 +65315,7 @@ var getConfigEnv = () => {
|
|
|
65302
65315
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
65303
65316
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
65304
65317
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
65305
|
-
ci: Boolean(
|
|
65306
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
65307
|
-
),
|
|
65318
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
65308
65319
|
colors: {
|
|
65309
65320
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
65310
65321
|
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
@@ -65317,9 +65328,7 @@ var getConfigEnv = () => {
|
|
|
65317
65328
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
65318
65329
|
branch: process.env[`${prefix}BRANCH`],
|
|
65319
65330
|
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
65320
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
65321
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
65322
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
65331
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
65323
65332
|
extensions: {}
|
|
65324
65333
|
};
|
|
65325
65334
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
@@ -65334,26 +65343,27 @@ var getConfigEnv = () => {
|
|
|
65334
65343
|
}
|
|
65335
65344
|
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
65336
65345
|
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
65337
|
-
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map(
|
|
65338
|
-
|
|
65339
|
-
|
|
65340
|
-
|
|
65346
|
+
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
65347
|
+
if (extensionName) {
|
|
65348
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
65349
|
+
}
|
|
65341
65350
|
return ret;
|
|
65342
65351
|
}, config);
|
|
65343
65352
|
};
|
|
65344
65353
|
|
|
65345
65354
|
// packages/config-tools/src/env/set-env.ts
|
|
65346
65355
|
var setExtensionEnv = (extensionName, extension) => {
|
|
65347
|
-
Object.keys(extension ?? {})
|
|
65356
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
65348
65357
|
if (extension[key]) {
|
|
65349
|
-
|
|
65358
|
+
const result = key?.replace(
|
|
65350
65359
|
/([A-Z])+/g,
|
|
65351
65360
|
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
65352
65361
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
65353
65362
|
let extensionKey;
|
|
65354
65363
|
if (result.length === 0) {
|
|
65355
65364
|
return;
|
|
65356
|
-
}
|
|
65365
|
+
}
|
|
65366
|
+
if (result.length === 1) {
|
|
65357
65367
|
extensionKey = result[0].toUpperCase();
|
|
65358
65368
|
} else {
|
|
65359
65369
|
extensionKey = result.reduce((ret, part) => {
|
|
@@ -65362,59 +65372,117 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
65362
65372
|
}
|
|
65363
65373
|
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
65364
65374
|
}
|
|
65365
|
-
}
|
|
65375
|
+
}
|
|
65366
65376
|
};
|
|
65367
65377
|
var setConfigEnv = (config) => {
|
|
65368
|
-
const prefix =
|
|
65369
|
-
|
|
65370
|
-
|
|
65371
|
-
|
|
65372
|
-
|
|
65373
|
-
|
|
65374
|
-
|
|
65375
|
-
|
|
65376
|
-
|
|
65377
|
-
|
|
65378
|
-
|
|
65379
|
-
|
|
65380
|
-
|
|
65381
|
-
|
|
65382
|
-
|
|
65383
|
-
|
|
65384
|
-
|
|
65385
|
-
|
|
65386
|
-
|
|
65387
|
-
|
|
65388
|
-
|
|
65389
|
-
|
|
65390
|
-
|
|
65391
|
-
|
|
65392
|
-
|
|
65393
|
-
|
|
65394
|
-
|
|
65395
|
-
|
|
65396
|
-
|
|
65397
|
-
|
|
65398
|
-
|
|
65399
|
-
|
|
65400
|
-
|
|
65401
|
-
|
|
65402
|
-
|
|
65403
|
-
|
|
65404
|
-
|
|
65405
|
-
|
|
65406
|
-
|
|
65407
|
-
|
|
65408
|
-
|
|
65409
|
-
|
|
65410
|
-
|
|
65411
|
-
|
|
65412
|
-
)
|
|
65413
|
-
|
|
65414
|
-
|
|
65415
|
-
|
|
65378
|
+
const prefix = "STORM_";
|
|
65379
|
+
if (config.name) {
|
|
65380
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
65381
|
+
}
|
|
65382
|
+
if (config.namespace) {
|
|
65383
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
65384
|
+
}
|
|
65385
|
+
if (config.owner) {
|
|
65386
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
65387
|
+
}
|
|
65388
|
+
if (config.worker) {
|
|
65389
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
65390
|
+
}
|
|
65391
|
+
if (config.organization) {
|
|
65392
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
65393
|
+
}
|
|
65394
|
+
if (config.packageManager) {
|
|
65395
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
65396
|
+
}
|
|
65397
|
+
if (config.license) {
|
|
65398
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
65399
|
+
}
|
|
65400
|
+
if (config.homepage) {
|
|
65401
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
65402
|
+
}
|
|
65403
|
+
if (config.timezone) {
|
|
65404
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
65405
|
+
process.env.TZ = config.timezone;
|
|
65406
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
65407
|
+
}
|
|
65408
|
+
if (config.locale) {
|
|
65409
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
65410
|
+
process.env.LOCALE = config.locale;
|
|
65411
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
65412
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
65413
|
+
}
|
|
65414
|
+
if (config.configFile) {
|
|
65415
|
+
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
65416
|
+
}
|
|
65417
|
+
if (config.workspaceRoot) {
|
|
65418
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
|
|
65419
|
+
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
|
|
65420
|
+
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
|
|
65421
|
+
}
|
|
65422
|
+
if (config.packageDirectory) {
|
|
65423
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
|
|
65424
|
+
}
|
|
65425
|
+
if (config.buildDirectory) {
|
|
65426
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
65427
|
+
}
|
|
65428
|
+
if (config.runtimeVersion) {
|
|
65429
|
+
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
65430
|
+
}
|
|
65431
|
+
if (config.runtimeDirectory) {
|
|
65432
|
+
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
|
|
65433
|
+
}
|
|
65434
|
+
if (config.env) {
|
|
65435
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
65436
|
+
process.env.NODE_ENV = config.env;
|
|
65437
|
+
process.env.ENVIRONMENT = config.env;
|
|
65438
|
+
}
|
|
65439
|
+
if (config.ci) {
|
|
65440
|
+
process.env[`${prefix}CI`] = String(config.ci);
|
|
65441
|
+
process.env.CI = String(config.ci);
|
|
65442
|
+
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
65443
|
+
}
|
|
65444
|
+
if (config.colors.primary) {
|
|
65445
|
+
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
65446
|
+
}
|
|
65447
|
+
if (config.colors.background) {
|
|
65448
|
+
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
|
|
65449
|
+
}
|
|
65450
|
+
if (config.colors.success) {
|
|
65451
|
+
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
65452
|
+
}
|
|
65453
|
+
if (config.colors.info) {
|
|
65454
|
+
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
65455
|
+
}
|
|
65456
|
+
if (config.colors.warning) {
|
|
65457
|
+
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
65458
|
+
}
|
|
65459
|
+
if (config.colors.error) {
|
|
65460
|
+
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
65461
|
+
}
|
|
65462
|
+
if (config.colors.fatal) {
|
|
65463
|
+
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
65464
|
+
}
|
|
65465
|
+
if (config.repository) {
|
|
65466
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
65467
|
+
}
|
|
65468
|
+
if (config.branch) {
|
|
65469
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
65470
|
+
}
|
|
65471
|
+
if (config.preMajor) {
|
|
65472
|
+
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
|
|
65473
|
+
}
|
|
65474
|
+
if (config.logLevel) {
|
|
65475
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
65476
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
65477
|
+
process.env.NX_VERBOSE_LOGGING = String(
|
|
65478
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
65479
|
+
);
|
|
65480
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
65481
|
+
}
|
|
65482
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
65483
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
65416
65484
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
65417
|
-
}
|
|
65485
|
+
}
|
|
65418
65486
|
};
|
|
65419
65487
|
|
|
65420
65488
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
@@ -65506,10 +65574,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
65506
65574
|
};
|
|
65507
65575
|
|
|
65508
65576
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
65509
|
-
var withRunExecutor = (name, executorFn, executorOptions
|
|
65510
|
-
skipReadingConfig: false,
|
|
65511
|
-
hooks: {}
|
|
65512
|
-
}) => async (_options, context) => {
|
|
65577
|
+
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
65513
65578
|
const startTime = Date.now();
|
|
65514
65579
|
let options = _options;
|
|
65515
65580
|
try {
|
|
@@ -65527,15 +65592,24 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
65527
65592
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
65528
65593
|
let config;
|
|
65529
65594
|
if (!executorOptions.skipReadingConfig) {
|
|
65595
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.info(
|
|
65596
|
+
chalk.dim(`Loading the Storm config...
|
|
65597
|
+
- workspaceRoot: ${workspaceRoot}
|
|
65598
|
+
- projectRoot: ${projectRoot}
|
|
65599
|
+
- sourceRoot: ${sourceRoot}
|
|
65600
|
+
- projectName: ${projectName}
|
|
65601
|
+
`)
|
|
65602
|
+
);
|
|
65530
65603
|
config = getDefaultConfig({
|
|
65531
65604
|
...await getConfigFile(),
|
|
65532
65605
|
...getConfigEnv()
|
|
65533
65606
|
});
|
|
65534
65607
|
setConfigEnv(config);
|
|
65535
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.
|
|
65608
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
65536
65609
|
chalk.dim(
|
|
65537
65610
|
`Loaded Storm config into env:
|
|
65538
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
65611
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
65612
|
+
`
|
|
65539
65613
|
)
|
|
65540
65614
|
);
|
|
65541
65615
|
}
|