@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
|
});
|
|
@@ -26265,22 +26265,22 @@ var path = __toESM(require("path"));
|
|
|
26265
26265
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
26266
26266
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
26267
26267
|
var _static_cache = void 0;
|
|
26268
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
26269
|
-
var getConfigFile = async () => {
|
|
26268
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
26269
|
+
var getConfigFile = async (filePath) => {
|
|
26270
26270
|
if (_static_cache) {
|
|
26271
26271
|
return _static_cache;
|
|
26272
26272
|
}
|
|
26273
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
26273
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
26274
26274
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26275
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
26275
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
26276
26276
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26277
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
26277
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
26278
26278
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26279
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
26279
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
26280
26280
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26281
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
26281
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
26282
26282
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
26283
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
26283
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
26284
26284
|
}
|
|
26285
26285
|
}
|
|
26286
26286
|
}
|
|
@@ -29976,8 +29976,8 @@ var ColorConfigSchema = objectType({
|
|
|
29976
29976
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
29977
29977
|
}).describe("Colors used for various workspace elements");
|
|
29978
29978
|
var StormConfigSchema = objectType({
|
|
29979
|
-
name: stringType().trim().toLowerCase().
|
|
29980
|
-
namespace: stringType().trim().toLowerCase().
|
|
29979
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
29980
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
29981
29981
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
29982
29982
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
29983
29983
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -29994,7 +29994,7 @@ var StormConfigSchema = objectType({
|
|
|
29994
29994
|
ci: booleanType().default(true).describe(
|
|
29995
29995
|
"An indicator specifying if the current environment is a CI environment"
|
|
29996
29996
|
),
|
|
29997
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
29997
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
29998
29998
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
29999
29999
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
30000
30000
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -30004,7 +30004,7 @@ var StormConfigSchema = objectType({
|
|
|
30004
30004
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
30005
30005
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
30006
30006
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
30007
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
30007
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
30008
30008
|
"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`)."
|
|
30009
30009
|
),
|
|
30010
30010
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -30143,6 +30143,7 @@ var getConfigEnv = () => {
|
|
|
30143
30143
|
owner: process.env[`${prefix}OWNER`],
|
|
30144
30144
|
worker: process.env[`${prefix}WORKER`],
|
|
30145
30145
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
30146
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
30146
30147
|
license: process.env[`${prefix}LICENSE`],
|
|
30147
30148
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
30148
30149
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -30212,51 +30213,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
30212
30213
|
};
|
|
30213
30214
|
var setConfigEnv = (config) => {
|
|
30214
30215
|
const prefix = `STORM_`;
|
|
30215
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
30216
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
30217
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
30218
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
30219
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
30220
|
-
process.env[`${prefix}
|
|
30221
|
-
process.env[`${prefix}
|
|
30222
|
-
process.env[`${prefix}
|
|
30223
|
-
process.env
|
|
30224
|
-
process.env.
|
|
30225
|
-
process.env
|
|
30226
|
-
process.env
|
|
30227
|
-
process.env.
|
|
30228
|
-
process.env.
|
|
30229
|
-
process.env
|
|
30230
|
-
process.env[`${prefix}
|
|
30231
|
-
process.env
|
|
30232
|
-
process.env.
|
|
30233
|
-
process.env
|
|
30234
|
-
process.env[`${prefix}
|
|
30235
|
-
process.env[`${prefix}
|
|
30236
|
-
process.env[`${prefix}
|
|
30237
|
-
process.env[`${prefix}
|
|
30238
|
-
process.env
|
|
30239
|
-
process.env.
|
|
30240
|
-
process.env
|
|
30241
|
-
process.env
|
|
30242
|
-
process.env.
|
|
30243
|
-
process.env
|
|
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[`${prefix}
|
|
30254
|
-
process.env
|
|
30255
|
-
process.env.
|
|
30216
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
30217
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
30218
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
30219
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
30220
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
30221
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
30222
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
30223
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
30224
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
30225
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
30226
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
30227
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
30228
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
30229
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
30230
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
30231
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
30232
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
30233
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
30234
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
30235
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
30236
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
30237
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
30238
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
30239
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
30240
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
30241
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
30242
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
30243
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
30244
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
30245
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
30246
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
30247
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
30248
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
30249
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
30250
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
30251
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
30252
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
30253
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
30254
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
30255
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
30256
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
30257
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
30256
30258
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
30257
|
-
);
|
|
30258
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
30259
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
30259
|
+
));
|
|
30260
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
30261
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
30260
30262
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
30261
30263
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
30262
30264
|
});
|