@storm-software/workspace-tools 1.42.2 → 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 +14 -0
- package/config/nx.json +3 -4
- package/index.js +181 -106
- 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 +181 -106
- 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
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -43529,7 +43529,8 @@ var LogLevel = {
|
|
|
43529
43529
|
WARN: 30,
|
|
43530
43530
|
INFO: 40,
|
|
43531
43531
|
DEBUG: 60,
|
|
43532
|
-
TRACE: 70
|
|
43532
|
+
TRACE: 70,
|
|
43533
|
+
ALL: 100
|
|
43533
43534
|
};
|
|
43534
43535
|
var LogLevelLabel = {
|
|
43535
43536
|
SILENT: "silent",
|
|
@@ -43538,7 +43539,8 @@ var LogLevelLabel = {
|
|
|
43538
43539
|
WARN: "warn",
|
|
43539
43540
|
INFO: "info",
|
|
43540
43541
|
DEBUG: "debug",
|
|
43541
|
-
TRACE: "trace"
|
|
43542
|
+
TRACE: "trace",
|
|
43543
|
+
ALL: "all"
|
|
43542
43544
|
};
|
|
43543
43545
|
|
|
43544
43546
|
// packages/config-tools/src/utilities/find-up.ts
|
|
@@ -43547,15 +43549,15 @@ var import_path = require("path");
|
|
|
43547
43549
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
43548
43550
|
var depth = 0;
|
|
43549
43551
|
function findFolderUp(startPath, endFileNames) {
|
|
43550
|
-
|
|
43551
|
-
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(
|
|
43552
|
-
return
|
|
43553
|
-
}
|
|
43554
|
-
|
|
43552
|
+
const _startPath = startPath ?? process.cwd();
|
|
43553
|
+
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(_startPath, endFileName)))) {
|
|
43554
|
+
return _startPath;
|
|
43555
|
+
}
|
|
43556
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
43557
|
+
const parent = (0, import_path.join)(_startPath, "..");
|
|
43555
43558
|
return findFolderUp(parent, endFileNames);
|
|
43556
|
-
} else {
|
|
43557
|
-
return void 0;
|
|
43558
43559
|
}
|
|
43560
|
+
return void 0;
|
|
43559
43561
|
}
|
|
43560
43562
|
|
|
43561
43563
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
@@ -47212,17 +47214,13 @@ var StormConfigSchema = objectType({
|
|
|
47212
47214
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
47213
47215
|
homepage: stringType().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
47214
47216
|
branch: stringType().trim().default("main").describe("The branch of the workspace"),
|
|
47215
|
-
preMajor: booleanType().default(false).describe(
|
|
47216
|
-
"An indicator specifying if the package is still in it's pre-major version"
|
|
47217
|
-
),
|
|
47217
|
+
preMajor: booleanType().default(false).describe("An indicator specifying if the package is still in it's pre-major version"),
|
|
47218
47218
|
owner: stringType().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
47219
47219
|
worker: stringType().trim().default("stormie-bot").describe(
|
|
47220
47220
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
47221
47221
|
),
|
|
47222
47222
|
env: enumType(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
47223
|
-
ci: booleanType().default(true).describe(
|
|
47224
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
47225
|
-
),
|
|
47223
|
+
ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
47226
47224
|
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
47227
47225
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
47228
47226
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
@@ -47233,7 +47231,7 @@ var StormConfigSchema = objectType({
|
|
|
47233
47231
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
47234
47232
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
47235
47233
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
47236
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
47234
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
47237
47235
|
"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`)."
|
|
47238
47236
|
),
|
|
47239
47237
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -47291,11 +47289,21 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
47291
47289
|
});
|
|
47292
47290
|
if (file) {
|
|
47293
47291
|
const packageJson = JSON.parse(file);
|
|
47294
|
-
|
|
47295
|
-
|
|
47296
|
-
|
|
47297
|
-
|
|
47298
|
-
|
|
47292
|
+
if (packageJson.name) {
|
|
47293
|
+
name = packageJson.name;
|
|
47294
|
+
}
|
|
47295
|
+
if (packageJson.namespace) {
|
|
47296
|
+
namespace = packageJson.namespace;
|
|
47297
|
+
}
|
|
47298
|
+
if (packageJson.repository?.url) {
|
|
47299
|
+
repository = packageJson.repository?.url;
|
|
47300
|
+
}
|
|
47301
|
+
if (packageJson.license) {
|
|
47302
|
+
license = packageJson.license;
|
|
47303
|
+
}
|
|
47304
|
+
if (packageJson.homepage) {
|
|
47305
|
+
homepage = packageJson.homepage;
|
|
47306
|
+
}
|
|
47299
47307
|
}
|
|
47300
47308
|
}
|
|
47301
47309
|
return StormConfigSchema.parse({
|
|
@@ -47338,36 +47346,41 @@ var getLogLevel = (label) => {
|
|
|
47338
47346
|
var getLogLevelLabel = (logLevel) => {
|
|
47339
47347
|
if (logLevel >= LogLevel.TRACE) {
|
|
47340
47348
|
return LogLevelLabel.TRACE;
|
|
47341
|
-
}
|
|
47349
|
+
}
|
|
47350
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
47342
47351
|
return LogLevelLabel.DEBUG;
|
|
47343
|
-
}
|
|
47352
|
+
}
|
|
47353
|
+
if (logLevel >= LogLevel.INFO) {
|
|
47344
47354
|
return LogLevelLabel.INFO;
|
|
47345
|
-
}
|
|
47355
|
+
}
|
|
47356
|
+
if (logLevel >= LogLevel.WARN) {
|
|
47346
47357
|
return LogLevelLabel.WARN;
|
|
47347
|
-
}
|
|
47358
|
+
}
|
|
47359
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
47348
47360
|
return LogLevelLabel.ERROR;
|
|
47349
|
-
}
|
|
47361
|
+
}
|
|
47362
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
47350
47363
|
return LogLevelLabel.FATAL;
|
|
47351
|
-
}
|
|
47364
|
+
}
|
|
47365
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
47352
47366
|
return LogLevelLabel.SILENT;
|
|
47353
|
-
} else {
|
|
47354
|
-
return LogLevelLabel.INFO;
|
|
47355
47367
|
}
|
|
47368
|
+
return LogLevelLabel.INFO;
|
|
47356
47369
|
};
|
|
47357
47370
|
|
|
47358
47371
|
// packages/config-tools/src/env/get-env.ts
|
|
47359
47372
|
var getExtensionEnv = (extensionName) => {
|
|
47360
47373
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
47361
47374
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
47362
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
47363
|
-
|
|
47364
|
-
|
|
47365
|
-
|
|
47375
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
47376
|
+
if (name) {
|
|
47377
|
+
ret[name] = process.env[key];
|
|
47378
|
+
}
|
|
47366
47379
|
return ret;
|
|
47367
47380
|
}, {});
|
|
47368
47381
|
};
|
|
47369
47382
|
var getConfigEnv = () => {
|
|
47370
|
-
const prefix =
|
|
47383
|
+
const prefix = "STORM_";
|
|
47371
47384
|
let config = {
|
|
47372
47385
|
name: process.env[`${prefix}NAME`],
|
|
47373
47386
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
@@ -47386,9 +47399,7 @@ var getConfigEnv = () => {
|
|
|
47386
47399
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
47387
47400
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
47388
47401
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
47389
|
-
ci: Boolean(
|
|
47390
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
47391
|
-
),
|
|
47402
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
47392
47403
|
colors: {
|
|
47393
47404
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
47394
47405
|
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
@@ -47401,9 +47412,7 @@ var getConfigEnv = () => {
|
|
|
47401
47412
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
47402
47413
|
branch: process.env[`${prefix}BRANCH`],
|
|
47403
47414
|
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
47404
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
47405
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
47406
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
47415
|
+
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,
|
|
47407
47416
|
extensions: {}
|
|
47408
47417
|
};
|
|
47409
47418
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
@@ -47418,26 +47427,27 @@ var getConfigEnv = () => {
|
|
|
47418
47427
|
}
|
|
47419
47428
|
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
47420
47429
|
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
47421
|
-
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map(
|
|
47422
|
-
|
|
47423
|
-
|
|
47424
|
-
|
|
47430
|
+
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("");
|
|
47431
|
+
if (extensionName) {
|
|
47432
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
47433
|
+
}
|
|
47425
47434
|
return ret;
|
|
47426
47435
|
}, config);
|
|
47427
47436
|
};
|
|
47428
47437
|
|
|
47429
47438
|
// packages/config-tools/src/env/set-env.ts
|
|
47430
47439
|
var setExtensionEnv = (extensionName, extension) => {
|
|
47431
|
-
Object.keys(extension ?? {})
|
|
47440
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
47432
47441
|
if (extension[key]) {
|
|
47433
|
-
|
|
47442
|
+
const result = key?.replace(
|
|
47434
47443
|
/([A-Z])+/g,
|
|
47435
47444
|
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
47436
47445
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
47437
47446
|
let extensionKey;
|
|
47438
47447
|
if (result.length === 0) {
|
|
47439
47448
|
return;
|
|
47440
|
-
}
|
|
47449
|
+
}
|
|
47450
|
+
if (result.length === 1) {
|
|
47441
47451
|
extensionKey = result[0].toUpperCase();
|
|
47442
47452
|
} else {
|
|
47443
47453
|
extensionKey = result.reduce((ret, part) => {
|
|
@@ -47446,59 +47456,117 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
47446
47456
|
}
|
|
47447
47457
|
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
47448
47458
|
}
|
|
47449
|
-
}
|
|
47459
|
+
}
|
|
47450
47460
|
};
|
|
47451
47461
|
var setConfigEnv = (config) => {
|
|
47452
|
-
const prefix =
|
|
47453
|
-
|
|
47454
|
-
|
|
47455
|
-
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
|
|
47459
|
-
|
|
47460
|
-
|
|
47461
|
-
|
|
47462
|
-
|
|
47463
|
-
|
|
47464
|
-
|
|
47465
|
-
|
|
47466
|
-
|
|
47467
|
-
|
|
47468
|
-
|
|
47469
|
-
|
|
47470
|
-
|
|
47471
|
-
|
|
47472
|
-
|
|
47473
|
-
|
|
47474
|
-
|
|
47475
|
-
|
|
47476
|
-
|
|
47477
|
-
|
|
47478
|
-
|
|
47479
|
-
|
|
47480
|
-
|
|
47481
|
-
|
|
47482
|
-
|
|
47483
|
-
|
|
47484
|
-
|
|
47485
|
-
|
|
47486
|
-
|
|
47487
|
-
|
|
47488
|
-
|
|
47489
|
-
|
|
47490
|
-
|
|
47491
|
-
|
|
47492
|
-
|
|
47493
|
-
|
|
47494
|
-
|
|
47495
|
-
|
|
47496
|
-
)
|
|
47497
|
-
|
|
47498
|
-
|
|
47499
|
-
|
|
47462
|
+
const prefix = "STORM_";
|
|
47463
|
+
if (config.name) {
|
|
47464
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
47465
|
+
}
|
|
47466
|
+
if (config.namespace) {
|
|
47467
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
47468
|
+
}
|
|
47469
|
+
if (config.owner) {
|
|
47470
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
47471
|
+
}
|
|
47472
|
+
if (config.worker) {
|
|
47473
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
47474
|
+
}
|
|
47475
|
+
if (config.organization) {
|
|
47476
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
47477
|
+
}
|
|
47478
|
+
if (config.packageManager) {
|
|
47479
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
47480
|
+
}
|
|
47481
|
+
if (config.license) {
|
|
47482
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
47483
|
+
}
|
|
47484
|
+
if (config.homepage) {
|
|
47485
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
47486
|
+
}
|
|
47487
|
+
if (config.timezone) {
|
|
47488
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
47489
|
+
process.env.TZ = config.timezone;
|
|
47490
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
47491
|
+
}
|
|
47492
|
+
if (config.locale) {
|
|
47493
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
47494
|
+
process.env.LOCALE = config.locale;
|
|
47495
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
47496
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
47497
|
+
}
|
|
47498
|
+
if (config.configFile) {
|
|
47499
|
+
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
47500
|
+
}
|
|
47501
|
+
if (config.workspaceRoot) {
|
|
47502
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
|
|
47503
|
+
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
|
|
47504
|
+
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
|
|
47505
|
+
}
|
|
47506
|
+
if (config.packageDirectory) {
|
|
47507
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
|
|
47508
|
+
}
|
|
47509
|
+
if (config.buildDirectory) {
|
|
47510
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
47511
|
+
}
|
|
47512
|
+
if (config.runtimeVersion) {
|
|
47513
|
+
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
47514
|
+
}
|
|
47515
|
+
if (config.runtimeDirectory) {
|
|
47516
|
+
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
|
|
47517
|
+
}
|
|
47518
|
+
if (config.env) {
|
|
47519
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
47520
|
+
process.env.NODE_ENV = config.env;
|
|
47521
|
+
process.env.ENVIRONMENT = config.env;
|
|
47522
|
+
}
|
|
47523
|
+
if (config.ci) {
|
|
47524
|
+
process.env[`${prefix}CI`] = String(config.ci);
|
|
47525
|
+
process.env.CI = String(config.ci);
|
|
47526
|
+
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
47527
|
+
}
|
|
47528
|
+
if (config.colors.primary) {
|
|
47529
|
+
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
47530
|
+
}
|
|
47531
|
+
if (config.colors.background) {
|
|
47532
|
+
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
|
|
47533
|
+
}
|
|
47534
|
+
if (config.colors.success) {
|
|
47535
|
+
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
47536
|
+
}
|
|
47537
|
+
if (config.colors.info) {
|
|
47538
|
+
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
47539
|
+
}
|
|
47540
|
+
if (config.colors.warning) {
|
|
47541
|
+
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
47542
|
+
}
|
|
47543
|
+
if (config.colors.error) {
|
|
47544
|
+
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
47545
|
+
}
|
|
47546
|
+
if (config.colors.fatal) {
|
|
47547
|
+
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
47548
|
+
}
|
|
47549
|
+
if (config.repository) {
|
|
47550
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
47551
|
+
}
|
|
47552
|
+
if (config.branch) {
|
|
47553
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
47554
|
+
}
|
|
47555
|
+
if (config.preMajor) {
|
|
47556
|
+
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
|
|
47557
|
+
}
|
|
47558
|
+
if (config.logLevel) {
|
|
47559
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
47560
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
47561
|
+
process.env.NX_VERBOSE_LOGGING = String(
|
|
47562
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
47563
|
+
);
|
|
47564
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
47565
|
+
}
|
|
47566
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
47567
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
47500
47568
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
47501
|
-
}
|
|
47569
|
+
}
|
|
47502
47570
|
};
|
|
47503
47571
|
|
|
47504
47572
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
@@ -47616,10 +47684,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
47616
47684
|
};
|
|
47617
47685
|
|
|
47618
47686
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
47619
|
-
var withRunExecutor = (name, executorFn, executorOptions
|
|
47620
|
-
skipReadingConfig: false,
|
|
47621
|
-
hooks: {}
|
|
47622
|
-
}) => async (_options, context) => {
|
|
47687
|
+
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
47623
47688
|
const startTime = Date.now();
|
|
47624
47689
|
let options = _options;
|
|
47625
47690
|
try {
|
|
@@ -47637,15 +47702,24 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
47637
47702
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
47638
47703
|
let config;
|
|
47639
47704
|
if (!executorOptions.skipReadingConfig) {
|
|
47705
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.info(
|
|
47706
|
+
chalk.dim(`Loading the Storm config...
|
|
47707
|
+
- workspaceRoot: ${workspaceRoot}
|
|
47708
|
+
- projectRoot: ${projectRoot}
|
|
47709
|
+
- sourceRoot: ${sourceRoot}
|
|
47710
|
+
- projectName: ${projectName}
|
|
47711
|
+
`)
|
|
47712
|
+
);
|
|
47640
47713
|
config = getDefaultConfig({
|
|
47641
47714
|
...await getConfigFile(),
|
|
47642
47715
|
...getConfigEnv()
|
|
47643
47716
|
});
|
|
47644
47717
|
setConfigEnv(config);
|
|
47645
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.
|
|
47718
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
47646
47719
|
chalk.dim(
|
|
47647
47720
|
`Loaded Storm config into env:
|
|
47648
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
47721
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
47722
|
+
`
|
|
47649
47723
|
)
|
|
47650
47724
|
);
|
|
47651
47725
|
}
|