@storm-software/workspace-tools 1.34.1 → 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 +14 -0
- package/index.js +71 -70
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +71 -70
- package/src/executors/design-tokens/executor.js +71 -70
- package/src/executors/tsup/executor.js +71 -70
- package/src/executors/tsup-browser/executor.js +71 -70
- package/src/executors/tsup-neutral/executor.js +71 -70
- package/src/executors/tsup-node/executor.js +71 -70
- package/src/generators/browser-library/generator.js +71 -70
- package/src/generators/config-schema/generator.js +71 -70
- package/src/generators/neutral-library/generator.js +71 -70
- package/src/generators/node-library/generator.js +71 -70
- package/src/generators/preset/generator.js +71 -70
|
@@ -112459,22 +112459,22 @@ var ts = __toESM(require("typescript"));
|
|
|
112459
112459
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
112460
112460
|
var import_cosmiconfig = __toESM(require_dist6(), 1);
|
|
112461
112461
|
var _static_cache = void 0;
|
|
112462
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
112463
|
-
var getConfigFile = async () => {
|
|
112462
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
112463
|
+
var getConfigFile = async (filePath) => {
|
|
112464
112464
|
if (_static_cache) {
|
|
112465
112465
|
return _static_cache;
|
|
112466
112466
|
}
|
|
112467
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
112467
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
112468
112468
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112469
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
112469
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
112470
112470
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112471
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
112471
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
112472
112472
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112473
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
112473
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
112474
112474
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112475
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
112475
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
112476
112476
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112477
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
112477
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
112478
112478
|
}
|
|
112479
112479
|
}
|
|
112480
112480
|
}
|
|
@@ -116170,8 +116170,8 @@ var ColorConfigSchema = objectType({
|
|
|
116170
116170
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
116171
116171
|
}).describe("Colors used for various workspace elements");
|
|
116172
116172
|
var StormConfigSchema = objectType({
|
|
116173
|
-
name: stringType().trim().toLowerCase().describe("The name of the package"),
|
|
116174
|
-
namespace: stringType().trim().toLowerCase().
|
|
116173
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
116174
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
116175
116175
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
116176
116176
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
116177
116177
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -116188,7 +116188,7 @@ var StormConfigSchema = objectType({
|
|
|
116188
116188
|
ci: booleanType().default(true).describe(
|
|
116189
116189
|
"An indicator specifying if the current environment is a CI environment"
|
|
116190
116190
|
),
|
|
116191
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
116191
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
116192
116192
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
116193
116193
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
116194
116194
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -116198,7 +116198,7 @@ var StormConfigSchema = objectType({
|
|
|
116198
116198
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
116199
116199
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
116200
116200
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
116201
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
116201
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
116202
116202
|
"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`)."
|
|
116203
116203
|
),
|
|
116204
116204
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -116223,7 +116223,7 @@ var DefaultColorConfig = {
|
|
|
116223
116223
|
fatal: "#7d1a1a"
|
|
116224
116224
|
};
|
|
116225
116225
|
var DefaultStormConfig = {
|
|
116226
|
-
name: "storm
|
|
116226
|
+
name: "storm",
|
|
116227
116227
|
namespace: "storm-software",
|
|
116228
116228
|
license: "Apache License 2.0",
|
|
116229
116229
|
homepage: "https://stormsoftware.org",
|
|
@@ -116263,19 +116263,18 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
116263
116263
|
packageJson.homepage && (homepage = packageJson.homepage);
|
|
116264
116264
|
}
|
|
116265
116265
|
}
|
|
116266
|
-
return StormConfigSchema.parse(
|
|
116267
|
-
|
|
116268
|
-
|
|
116269
|
-
|
|
116270
|
-
|
|
116271
|
-
|
|
116272
|
-
|
|
116273
|
-
|
|
116274
|
-
|
|
116275
|
-
|
|
116276
|
-
|
|
116277
|
-
|
|
116278
|
-
);
|
|
116266
|
+
return StormConfigSchema.parse({
|
|
116267
|
+
...config,
|
|
116268
|
+
...DefaultStormConfig,
|
|
116269
|
+
colors: { ...config.colors, ...DefaultColorConfig },
|
|
116270
|
+
workspaceRoot,
|
|
116271
|
+
name,
|
|
116272
|
+
namespace,
|
|
116273
|
+
repository,
|
|
116274
|
+
license: license ?? DefaultStormConfig.license,
|
|
116275
|
+
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
116276
|
+
extensions: {}
|
|
116277
|
+
});
|
|
116279
116278
|
};
|
|
116280
116279
|
|
|
116281
116280
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
@@ -116338,6 +116337,7 @@ var getConfigEnv = () => {
|
|
|
116338
116337
|
owner: process.env[`${prefix}OWNER`],
|
|
116339
116338
|
worker: process.env[`${prefix}WORKER`],
|
|
116340
116339
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
116340
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
116341
116341
|
license: process.env[`${prefix}LICENSE`],
|
|
116342
116342
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
116343
116343
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -116407,51 +116407,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
116407
116407
|
};
|
|
116408
116408
|
var setConfigEnv = (config) => {
|
|
116409
116409
|
const prefix = `STORM_`;
|
|
116410
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
116411
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
116412
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
116413
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
116414
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
116415
|
-
process.env[`${prefix}
|
|
116416
|
-
process.env[`${prefix}
|
|
116417
|
-
process.env[`${prefix}
|
|
116418
|
-
process.env
|
|
116419
|
-
process.env.
|
|
116420
|
-
process.env
|
|
116421
|
-
process.env
|
|
116422
|
-
process.env.
|
|
116423
|
-
process.env.
|
|
116424
|
-
process.env
|
|
116425
|
-
process.env[`${prefix}
|
|
116426
|
-
process.env
|
|
116427
|
-
process.env.
|
|
116428
|
-
process.env
|
|
116429
|
-
process.env[`${prefix}
|
|
116430
|
-
process.env[`${prefix}
|
|
116431
|
-
process.env[`${prefix}
|
|
116432
|
-
process.env[`${prefix}
|
|
116433
|
-
process.env
|
|
116434
|
-
process.env.
|
|
116435
|
-
process.env
|
|
116436
|
-
process.env
|
|
116437
|
-
process.env.
|
|
116438
|
-
process.env
|
|
116439
|
-
process.env[`${prefix}
|
|
116440
|
-
process.env[`${prefix}
|
|
116441
|
-
process.env[`${prefix}
|
|
116442
|
-
process.env[`${prefix}
|
|
116443
|
-
process.env[`${prefix}
|
|
116444
|
-
process.env[`${prefix}
|
|
116445
|
-
process.env[`${prefix}
|
|
116446
|
-
process.env[`${prefix}
|
|
116447
|
-
process.env[`${prefix}
|
|
116448
|
-
process.env[`${prefix}
|
|
116449
|
-
process.env
|
|
116450
|
-
process.env.
|
|
116410
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
116411
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
116412
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
116413
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
116414
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
116415
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
116416
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
116417
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
116418
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
116419
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
116420
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
116421
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
116422
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
116423
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
116424
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
116425
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
116426
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
116427
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
116428
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
116429
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
116430
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
116431
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
116432
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
116433
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
116434
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
116435
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
116436
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
116437
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
116438
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
116439
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
116440
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
116441
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
116442
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
116443
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
116444
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
116445
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
116446
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
116447
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
116448
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
116449
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
116450
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
116451
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
116451
116452
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
116452
|
-
);
|
|
116453
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
116454
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
116453
|
+
));
|
|
116454
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
116455
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
116455
116456
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
116456
116457
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
116457
116458
|
});
|
|
@@ -106225,22 +106225,22 @@ module.exports = __toCommonJS(executor_exports);
|
|
|
106225
106225
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
106226
106226
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
106227
106227
|
var _static_cache = void 0;
|
|
106228
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
106229
|
-
var getConfigFile = async () => {
|
|
106228
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
106229
|
+
var getConfigFile = async (filePath) => {
|
|
106230
106230
|
if (_static_cache) {
|
|
106231
106231
|
return _static_cache;
|
|
106232
106232
|
}
|
|
106233
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
106233
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
106234
106234
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
106235
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
106235
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
106236
106236
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
106237
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
106237
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
106238
106238
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
106239
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
106239
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
106240
106240
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
106241
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
106241
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
106242
106242
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
106243
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
106243
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
106244
106244
|
}
|
|
106245
106245
|
}
|
|
106246
106246
|
}
|
|
@@ -109936,8 +109936,8 @@ var ColorConfigSchema = objectType({
|
|
|
109936
109936
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
109937
109937
|
}).describe("Colors used for various workspace elements");
|
|
109938
109938
|
var StormConfigSchema = objectType({
|
|
109939
|
-
name: stringType().trim().toLowerCase().describe("The name of the package"),
|
|
109940
|
-
namespace: stringType().trim().toLowerCase().
|
|
109939
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
109940
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
109941
109941
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
109942
109942
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
109943
109943
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -109954,7 +109954,7 @@ var StormConfigSchema = objectType({
|
|
|
109954
109954
|
ci: booleanType().default(true).describe(
|
|
109955
109955
|
"An indicator specifying if the current environment is a CI environment"
|
|
109956
109956
|
),
|
|
109957
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
109957
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
109958
109958
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
109959
109959
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
109960
109960
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -109964,7 +109964,7 @@ var StormConfigSchema = objectType({
|
|
|
109964
109964
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
109965
109965
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
109966
109966
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
109967
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
109967
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
109968
109968
|
"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`)."
|
|
109969
109969
|
),
|
|
109970
109970
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -109989,7 +109989,7 @@ var DefaultColorConfig = {
|
|
|
109989
109989
|
fatal: "#7d1a1a"
|
|
109990
109990
|
};
|
|
109991
109991
|
var DefaultStormConfig = {
|
|
109992
|
-
name: "storm
|
|
109992
|
+
name: "storm",
|
|
109993
109993
|
namespace: "storm-software",
|
|
109994
109994
|
license: "Apache License 2.0",
|
|
109995
109995
|
homepage: "https://stormsoftware.org",
|
|
@@ -110029,19 +110029,18 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
110029
110029
|
packageJson.homepage && (homepage = packageJson.homepage);
|
|
110030
110030
|
}
|
|
110031
110031
|
}
|
|
110032
|
-
return StormConfigSchema.parse(
|
|
110033
|
-
|
|
110034
|
-
|
|
110035
|
-
|
|
110036
|
-
|
|
110037
|
-
|
|
110038
|
-
|
|
110039
|
-
|
|
110040
|
-
|
|
110041
|
-
|
|
110042
|
-
|
|
110043
|
-
|
|
110044
|
-
);
|
|
110032
|
+
return StormConfigSchema.parse({
|
|
110033
|
+
...config,
|
|
110034
|
+
...DefaultStormConfig,
|
|
110035
|
+
colors: { ...config.colors, ...DefaultColorConfig },
|
|
110036
|
+
workspaceRoot,
|
|
110037
|
+
name,
|
|
110038
|
+
namespace,
|
|
110039
|
+
repository,
|
|
110040
|
+
license: license ?? DefaultStormConfig.license,
|
|
110041
|
+
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
110042
|
+
extensions: {}
|
|
110043
|
+
});
|
|
110045
110044
|
};
|
|
110046
110045
|
|
|
110047
110046
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
@@ -110104,6 +110103,7 @@ var getConfigEnv = () => {
|
|
|
110104
110103
|
owner: process.env[`${prefix}OWNER`],
|
|
110105
110104
|
worker: process.env[`${prefix}WORKER`],
|
|
110106
110105
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
110106
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
110107
110107
|
license: process.env[`${prefix}LICENSE`],
|
|
110108
110108
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
110109
110109
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -110173,51 +110173,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
110173
110173
|
};
|
|
110174
110174
|
var setConfigEnv = (config) => {
|
|
110175
110175
|
const prefix = `STORM_`;
|
|
110176
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
110177
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
110178
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
110179
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
110180
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
110181
|
-
process.env[`${prefix}
|
|
110182
|
-
process.env[`${prefix}
|
|
110183
|
-
process.env[`${prefix}
|
|
110184
|
-
process.env
|
|
110185
|
-
process.env.
|
|
110186
|
-
process.env
|
|
110187
|
-
process.env
|
|
110188
|
-
process.env.
|
|
110189
|
-
process.env.
|
|
110190
|
-
process.env
|
|
110191
|
-
process.env[`${prefix}
|
|
110192
|
-
process.env
|
|
110193
|
-
process.env.
|
|
110194
|
-
process.env
|
|
110195
|
-
process.env[`${prefix}
|
|
110196
|
-
process.env[`${prefix}
|
|
110197
|
-
process.env[`${prefix}
|
|
110198
|
-
process.env[`${prefix}
|
|
110199
|
-
process.env
|
|
110200
|
-
process.env.
|
|
110201
|
-
process.env
|
|
110202
|
-
process.env
|
|
110203
|
-
process.env.
|
|
110204
|
-
process.env
|
|
110205
|
-
process.env[`${prefix}
|
|
110206
|
-
process.env[`${prefix}
|
|
110207
|
-
process.env[`${prefix}
|
|
110208
|
-
process.env[`${prefix}
|
|
110209
|
-
process.env[`${prefix}
|
|
110210
|
-
process.env[`${prefix}
|
|
110211
|
-
process.env[`${prefix}
|
|
110212
|
-
process.env[`${prefix}
|
|
110213
|
-
process.env[`${prefix}
|
|
110214
|
-
process.env[`${prefix}
|
|
110215
|
-
process.env
|
|
110216
|
-
process.env.
|
|
110176
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
110177
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
110178
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
110179
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
110180
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
110181
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
110182
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
110183
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
110184
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
110185
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
110186
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
110187
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
110188
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
110189
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
110190
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
110191
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
110192
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
110193
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
110194
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
110195
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
110196
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
110197
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
110198
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
110199
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
110200
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
110201
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
110202
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
110203
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
110204
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
110205
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
110206
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
110207
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
110208
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
110209
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
110210
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
110211
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
110212
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
110213
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
110214
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
110215
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
110216
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
110217
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
110217
110218
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
110218
|
-
);
|
|
110219
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
110220
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
110219
|
+
));
|
|
110220
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
110221
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
110221
110222
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
110222
110223
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
110223
110224
|
});
|