@storm-software/workspace-tools 1.34.2 → 1.35.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 +7 -0
- package/index.js +58 -56
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +58 -56
- package/src/executors/design-tokens/executor.js +58 -56
- package/src/executors/tsup/executor.js +58 -56
- package/src/executors/tsup-browser/executor.js +58 -56
- package/src/executors/tsup-neutral/executor.js +58 -56
- package/src/executors/tsup-node/executor.js +58 -56
- package/src/generators/browser-library/generator.js +58 -56
- package/src/generators/config-schema/generator.js +58 -56
- package/src/generators/neutral-library/generator.js +58 -56
- package/src/generators/node-library/generator.js +58 -56
- package/src/generators/preset/generator.js +58 -56
|
@@ -43506,22 +43506,22 @@ var import_devkit2 = __toESM(require_devkit());
|
|
|
43506
43506
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
43507
43507
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
43508
43508
|
var _static_cache = void 0;
|
|
43509
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
43510
|
-
var getConfigFile = async () => {
|
|
43509
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43510
|
+
var getConfigFile = async (filePath) => {
|
|
43511
43511
|
if (_static_cache) {
|
|
43512
43512
|
return _static_cache;
|
|
43513
43513
|
}
|
|
43514
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
43514
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
43515
43515
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43516
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
43516
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
43517
43517
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43518
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
43518
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
43519
43519
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43520
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
43520
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
43521
43521
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43522
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
43522
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
43523
43523
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43524
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
43524
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
43525
43525
|
}
|
|
43526
43526
|
}
|
|
43527
43527
|
}
|
|
@@ -47217,8 +47217,8 @@ var ColorConfigSchema = objectType({
|
|
|
47217
47217
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
47218
47218
|
}).describe("Colors used for various workspace elements");
|
|
47219
47219
|
var StormConfigSchema = objectType({
|
|
47220
|
-
name: stringType().trim().toLowerCase().
|
|
47221
|
-
namespace: stringType().trim().toLowerCase().
|
|
47220
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
47221
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
47222
47222
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
47223
47223
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
47224
47224
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -47235,7 +47235,7 @@ var StormConfigSchema = objectType({
|
|
|
47235
47235
|
ci: booleanType().default(true).describe(
|
|
47236
47236
|
"An indicator specifying if the current environment is a CI environment"
|
|
47237
47237
|
),
|
|
47238
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
47238
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
47239
47239
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
47240
47240
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
47241
47241
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -47245,7 +47245,7 @@ var StormConfigSchema = objectType({
|
|
|
47245
47245
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
47246
47246
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
47247
47247
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
47248
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
47248
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
47249
47249
|
"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`)."
|
|
47250
47250
|
),
|
|
47251
47251
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -47384,6 +47384,7 @@ var getConfigEnv = () => {
|
|
|
47384
47384
|
owner: process.env[`${prefix}OWNER`],
|
|
47385
47385
|
worker: process.env[`${prefix}WORKER`],
|
|
47386
47386
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
47387
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
47387
47388
|
license: process.env[`${prefix}LICENSE`],
|
|
47388
47389
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
47389
47390
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -47453,51 +47454,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
47453
47454
|
};
|
|
47454
47455
|
var setConfigEnv = (config) => {
|
|
47455
47456
|
const prefix = `STORM_`;
|
|
47456
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
47457
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
47458
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
47459
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
47460
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
47461
|
-
process.env[`${prefix}
|
|
47462
|
-
process.env[`${prefix}
|
|
47463
|
-
process.env[`${prefix}
|
|
47464
|
-
process.env
|
|
47465
|
-
process.env.
|
|
47466
|
-
process.env
|
|
47467
|
-
process.env
|
|
47468
|
-
process.env.
|
|
47469
|
-
process.env.
|
|
47470
|
-
process.env
|
|
47471
|
-
process.env[`${prefix}
|
|
47472
|
-
process.env
|
|
47473
|
-
process.env.
|
|
47474
|
-
process.env
|
|
47475
|
-
process.env[`${prefix}
|
|
47476
|
-
process.env[`${prefix}
|
|
47477
|
-
process.env[`${prefix}
|
|
47478
|
-
process.env[`${prefix}
|
|
47479
|
-
process.env
|
|
47480
|
-
process.env.
|
|
47481
|
-
process.env
|
|
47482
|
-
process.env
|
|
47483
|
-
process.env.
|
|
47484
|
-
process.env
|
|
47485
|
-
process.env[`${prefix}
|
|
47486
|
-
process.env[`${prefix}
|
|
47487
|
-
process.env[`${prefix}
|
|
47488
|
-
process.env[`${prefix}
|
|
47489
|
-
process.env[`${prefix}
|
|
47490
|
-
process.env[`${prefix}
|
|
47491
|
-
process.env[`${prefix}
|
|
47492
|
-
process.env[`${prefix}
|
|
47493
|
-
process.env[`${prefix}
|
|
47494
|
-
process.env[`${prefix}
|
|
47495
|
-
process.env
|
|
47496
|
-
process.env.
|
|
47457
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
47458
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
47459
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
47460
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
47461
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
47462
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
47463
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
47464
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
47465
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
47466
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
47467
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
47468
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
47469
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
47470
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
47471
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
47472
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
47473
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
47474
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
47475
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
47476
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
47477
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
47478
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
47479
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
47480
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
47481
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
47482
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
47483
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
47484
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
47485
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
47486
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
47487
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
47488
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
47489
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
47490
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
47491
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
47492
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
47493
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
47494
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
47495
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
47496
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
47497
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
47498
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
47497
47499
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
47498
|
-
);
|
|
47499
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
47500
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
47500
|
+
));
|
|
47501
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
47502
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
47501
47503
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
47502
47504
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
47503
47505
|
});
|
|
@@ -26264,22 +26264,22 @@ var import_devkit = __toESM(require_devkit());
|
|
|
26264
26264
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
26265
26265
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
26266
26266
|
var _static_cache = void 0;
|
|
26267
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
26268
|
-
var getConfigFile = async () => {
|
|
26267
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
26268
|
+
var getConfigFile = async (filePath) => {
|
|
26269
26269
|
if (_static_cache) {
|
|
26270
26270
|
return _static_cache;
|
|
26271
26271
|
}
|
|
26272
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
26272
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
26273
26273
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26274
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
26274
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
26275
26275
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26276
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
26276
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
26277
26277
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26278
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
26278
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
26279
26279
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26280
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
26280
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
26281
26281
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26282
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
26282
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
26283
26283
|
}
|
|
26284
26284
|
}
|
|
26285
26285
|
}
|
|
@@ -29975,8 +29975,8 @@ var ColorConfigSchema = objectType({
|
|
|
29975
29975
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
29976
29976
|
}).describe("Colors used for various workspace elements");
|
|
29977
29977
|
var StormConfigSchema = objectType({
|
|
29978
|
-
name: stringType().trim().toLowerCase().
|
|
29979
|
-
namespace: stringType().trim().toLowerCase().
|
|
29978
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
29979
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
29980
29980
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
29981
29981
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
29982
29982
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -29993,7 +29993,7 @@ var StormConfigSchema = objectType({
|
|
|
29993
29993
|
ci: booleanType().default(true).describe(
|
|
29994
29994
|
"An indicator specifying if the current environment is a CI environment"
|
|
29995
29995
|
),
|
|
29996
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
29996
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
29997
29997
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
29998
29998
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
29999
29999
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -30003,7 +30003,7 @@ var StormConfigSchema = objectType({
|
|
|
30003
30003
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
30004
30004
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
30005
30005
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
30006
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
30006
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
30007
30007
|
"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`)."
|
|
30008
30008
|
),
|
|
30009
30009
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -30142,6 +30142,7 @@ var getConfigEnv = () => {
|
|
|
30142
30142
|
owner: process.env[`${prefix}OWNER`],
|
|
30143
30143
|
worker: process.env[`${prefix}WORKER`],
|
|
30144
30144
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
30145
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
30145
30146
|
license: process.env[`${prefix}LICENSE`],
|
|
30146
30147
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
30147
30148
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -30211,51 +30212,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
30211
30212
|
};
|
|
30212
30213
|
var setConfigEnv = (config) => {
|
|
30213
30214
|
const prefix = `STORM_`;
|
|
30214
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
30215
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
30216
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
30217
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
30218
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
30219
|
-
process.env[`${prefix}
|
|
30220
|
-
process.env[`${prefix}
|
|
30221
|
-
process.env[`${prefix}
|
|
30222
|
-
process.env
|
|
30223
|
-
process.env.
|
|
30224
|
-
process.env
|
|
30225
|
-
process.env
|
|
30226
|
-
process.env.
|
|
30227
|
-
process.env.
|
|
30228
|
-
process.env
|
|
30229
|
-
process.env[`${prefix}
|
|
30230
|
-
process.env
|
|
30231
|
-
process.env.
|
|
30232
|
-
process.env
|
|
30233
|
-
process.env[`${prefix}
|
|
30234
|
-
process.env[`${prefix}
|
|
30235
|
-
process.env[`${prefix}
|
|
30236
|
-
process.env[`${prefix}
|
|
30237
|
-
process.env
|
|
30238
|
-
process.env.
|
|
30239
|
-
process.env
|
|
30240
|
-
process.env
|
|
30241
|
-
process.env.
|
|
30242
|
-
process.env
|
|
30243
|
-
process.env[`${prefix}
|
|
30244
|
-
process.env[`${prefix}
|
|
30245
|
-
process.env[`${prefix}
|
|
30246
|
-
process.env[`${prefix}
|
|
30247
|
-
process.env[`${prefix}
|
|
30248
|
-
process.env[`${prefix}
|
|
30249
|
-
process.env[`${prefix}
|
|
30250
|
-
process.env[`${prefix}
|
|
30251
|
-
process.env[`${prefix}
|
|
30252
|
-
process.env[`${prefix}
|
|
30253
|
-
process.env
|
|
30254
|
-
process.env.
|
|
30215
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
30216
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
30217
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
30218
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
30219
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
30220
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
30221
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
30222
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
30223
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
30224
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
30225
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
30226
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
30227
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
30228
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
30229
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
30230
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
30231
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
30232
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
30233
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
30234
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
30235
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
30236
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
30237
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
30238
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
30239
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
30240
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
30241
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
30242
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
30243
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
30244
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
30245
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
30246
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
30247
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
30248
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
30249
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
30250
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
30251
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
30252
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
30253
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
30254
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
30255
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
30256
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
30255
30257
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
30256
|
-
);
|
|
30257
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
30258
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
30258
|
+
));
|
|
30259
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
30260
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
30259
30261
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
30260
30262
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
30261
30263
|
});
|
|
@@ -43506,22 +43506,22 @@ var import_devkit2 = __toESM(require_devkit());
|
|
|
43506
43506
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
43507
43507
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
43508
43508
|
var _static_cache = void 0;
|
|
43509
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
43510
|
-
var getConfigFile = async () => {
|
|
43509
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
43510
|
+
var getConfigFile = async (filePath) => {
|
|
43511
43511
|
if (_static_cache) {
|
|
43512
43512
|
return _static_cache;
|
|
43513
43513
|
}
|
|
43514
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
43514
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
43515
43515
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43516
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
43516
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
43517
43517
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43518
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
43518
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
43519
43519
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43520
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
43520
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
43521
43521
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43522
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
43522
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
43523
43523
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
43524
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
43524
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
43525
43525
|
}
|
|
43526
43526
|
}
|
|
43527
43527
|
}
|
|
@@ -47217,8 +47217,8 @@ var ColorConfigSchema = objectType({
|
|
|
47217
47217
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
47218
47218
|
}).describe("Colors used for various workspace elements");
|
|
47219
47219
|
var StormConfigSchema = objectType({
|
|
47220
|
-
name: stringType().trim().toLowerCase().
|
|
47221
|
-
namespace: stringType().trim().toLowerCase().
|
|
47220
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
47221
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
47222
47222
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
47223
47223
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
47224
47224
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -47235,7 +47235,7 @@ var StormConfigSchema = objectType({
|
|
|
47235
47235
|
ci: booleanType().default(true).describe(
|
|
47236
47236
|
"An indicator specifying if the current environment is a CI environment"
|
|
47237
47237
|
),
|
|
47238
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
47238
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
47239
47239
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
47240
47240
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
47241
47241
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -47245,7 +47245,7 @@ var StormConfigSchema = objectType({
|
|
|
47245
47245
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
47246
47246
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
47247
47247
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
47248
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
47248
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
47249
47249
|
"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`)."
|
|
47250
47250
|
),
|
|
47251
47251
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -47384,6 +47384,7 @@ var getConfigEnv = () => {
|
|
|
47384
47384
|
owner: process.env[`${prefix}OWNER`],
|
|
47385
47385
|
worker: process.env[`${prefix}WORKER`],
|
|
47386
47386
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
47387
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
47387
47388
|
license: process.env[`${prefix}LICENSE`],
|
|
47388
47389
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
47389
47390
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -47453,51 +47454,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
47453
47454
|
};
|
|
47454
47455
|
var setConfigEnv = (config) => {
|
|
47455
47456
|
const prefix = `STORM_`;
|
|
47456
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
47457
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
47458
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
47459
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
47460
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
47461
|
-
process.env[`${prefix}
|
|
47462
|
-
process.env[`${prefix}
|
|
47463
|
-
process.env[`${prefix}
|
|
47464
|
-
process.env
|
|
47465
|
-
process.env.
|
|
47466
|
-
process.env
|
|
47467
|
-
process.env
|
|
47468
|
-
process.env.
|
|
47469
|
-
process.env.
|
|
47470
|
-
process.env
|
|
47471
|
-
process.env[`${prefix}
|
|
47472
|
-
process.env
|
|
47473
|
-
process.env.
|
|
47474
|
-
process.env
|
|
47475
|
-
process.env[`${prefix}
|
|
47476
|
-
process.env[`${prefix}
|
|
47477
|
-
process.env[`${prefix}
|
|
47478
|
-
process.env[`${prefix}
|
|
47479
|
-
process.env
|
|
47480
|
-
process.env.
|
|
47481
|
-
process.env
|
|
47482
|
-
process.env
|
|
47483
|
-
process.env.
|
|
47484
|
-
process.env
|
|
47485
|
-
process.env[`${prefix}
|
|
47486
|
-
process.env[`${prefix}
|
|
47487
|
-
process.env[`${prefix}
|
|
47488
|
-
process.env[`${prefix}
|
|
47489
|
-
process.env[`${prefix}
|
|
47490
|
-
process.env[`${prefix}
|
|
47491
|
-
process.env[`${prefix}
|
|
47492
|
-
process.env[`${prefix}
|
|
47493
|
-
process.env[`${prefix}
|
|
47494
|
-
process.env[`${prefix}
|
|
47495
|
-
process.env
|
|
47496
|
-
process.env.
|
|
47457
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
47458
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
47459
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
47460
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
47461
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
47462
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
47463
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
47464
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
47465
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
47466
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
47467
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
47468
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
47469
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
47470
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
47471
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
47472
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
47473
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
47474
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
47475
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
47476
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
47477
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
47478
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
47479
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
47480
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
47481
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
47482
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
47483
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
47484
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
47485
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
47486
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
47487
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
47488
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
47489
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
47490
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
47491
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
47492
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
47493
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
47494
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
47495
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
47496
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
47497
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
47498
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
47497
47499
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
47498
|
-
);
|
|
47499
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
47500
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
47500
|
+
));
|
|
47501
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
47502
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
47501
47503
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
47502
47504
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
47503
47505
|
});
|