@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
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -8060,22 +8060,22 @@ module.exports = __toCommonJS(base_exports);
|
|
|
8060
8060
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
8061
8061
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
8062
8062
|
var _static_cache = void 0;
|
|
8063
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
8064
|
-
var getConfigFile = async () => {
|
|
8063
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
8064
|
+
var getConfigFile = async (filePath) => {
|
|
8065
8065
|
if (_static_cache) {
|
|
8066
8066
|
return _static_cache;
|
|
8067
8067
|
}
|
|
8068
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
8068
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
8069
8069
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
8070
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
8070
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
8071
8071
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
8072
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
8072
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
8073
8073
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
8074
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
8074
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
8075
8075
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
8076
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
8076
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
8077
8077
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
8078
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
8078
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
8079
8079
|
}
|
|
8080
8080
|
}
|
|
8081
8081
|
}
|
|
@@ -11771,8 +11771,8 @@ var ColorConfigSchema = objectType({
|
|
|
11771
11771
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
11772
11772
|
}).describe("Colors used for various workspace elements");
|
|
11773
11773
|
var StormConfigSchema = objectType({
|
|
11774
|
-
name: stringType().trim().toLowerCase().describe("The name of the package"),
|
|
11775
|
-
namespace: stringType().trim().toLowerCase().
|
|
11774
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
11775
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
11776
11776
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
11777
11777
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
11778
11778
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -11789,7 +11789,7 @@ var StormConfigSchema = objectType({
|
|
|
11789
11789
|
ci: booleanType().default(true).describe(
|
|
11790
11790
|
"An indicator specifying if the current environment is a CI environment"
|
|
11791
11791
|
),
|
|
11792
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
11792
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
11793
11793
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
11794
11794
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
11795
11795
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -11799,7 +11799,7 @@ var StormConfigSchema = objectType({
|
|
|
11799
11799
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
11800
11800
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
11801
11801
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
11802
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
11802
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
11803
11803
|
"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`)."
|
|
11804
11804
|
),
|
|
11805
11805
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -11824,7 +11824,7 @@ var DefaultColorConfig = {
|
|
|
11824
11824
|
fatal: "#7d1a1a"
|
|
11825
11825
|
};
|
|
11826
11826
|
var DefaultStormConfig = {
|
|
11827
|
-
name: "storm
|
|
11827
|
+
name: "storm",
|
|
11828
11828
|
namespace: "storm-software",
|
|
11829
11829
|
license: "Apache License 2.0",
|
|
11830
11830
|
homepage: "https://stormsoftware.org",
|
|
@@ -11864,19 +11864,18 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
11864
11864
|
packageJson.homepage && (homepage = packageJson.homepage);
|
|
11865
11865
|
}
|
|
11866
11866
|
}
|
|
11867
|
-
return StormConfigSchema.parse(
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
);
|
|
11867
|
+
return StormConfigSchema.parse({
|
|
11868
|
+
...config,
|
|
11869
|
+
...DefaultStormConfig,
|
|
11870
|
+
colors: { ...config.colors, ...DefaultColorConfig },
|
|
11871
|
+
workspaceRoot,
|
|
11872
|
+
name,
|
|
11873
|
+
namespace,
|
|
11874
|
+
repository,
|
|
11875
|
+
license: license ?? DefaultStormConfig.license,
|
|
11876
|
+
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
11877
|
+
extensions: {}
|
|
11878
|
+
});
|
|
11880
11879
|
};
|
|
11881
11880
|
|
|
11882
11881
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
@@ -11939,6 +11938,7 @@ var getConfigEnv = () => {
|
|
|
11939
11938
|
owner: process.env[`${prefix}OWNER`],
|
|
11940
11939
|
worker: process.env[`${prefix}WORKER`],
|
|
11941
11940
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
11941
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
11942
11942
|
license: process.env[`${prefix}LICENSE`],
|
|
11943
11943
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
11944
11944
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -12008,51 +12008,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
12008
12008
|
};
|
|
12009
12009
|
var setConfigEnv = (config) => {
|
|
12010
12010
|
const prefix = `STORM_`;
|
|
12011
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
12012
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
12013
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
12014
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
12015
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
12016
|
-
process.env[`${prefix}
|
|
12017
|
-
process.env[`${prefix}
|
|
12018
|
-
process.env[`${prefix}
|
|
12019
|
-
process.env
|
|
12020
|
-
process.env.
|
|
12021
|
-
process.env
|
|
12022
|
-
process.env
|
|
12023
|
-
process.env.
|
|
12024
|
-
process.env.
|
|
12025
|
-
process.env
|
|
12026
|
-
process.env[`${prefix}
|
|
12027
|
-
process.env
|
|
12028
|
-
process.env.
|
|
12029
|
-
process.env
|
|
12030
|
-
process.env[`${prefix}
|
|
12031
|
-
process.env[`${prefix}
|
|
12032
|
-
process.env[`${prefix}
|
|
12033
|
-
process.env[`${prefix}
|
|
12034
|
-
process.env
|
|
12035
|
-
process.env.
|
|
12036
|
-
process.env
|
|
12037
|
-
process.env
|
|
12038
|
-
process.env.
|
|
12039
|
-
process.env
|
|
12040
|
-
process.env[`${prefix}
|
|
12041
|
-
process.env[`${prefix}
|
|
12042
|
-
process.env[`${prefix}
|
|
12043
|
-
process.env[`${prefix}
|
|
12044
|
-
process.env[`${prefix}
|
|
12045
|
-
process.env[`${prefix}
|
|
12046
|
-
process.env[`${prefix}
|
|
12047
|
-
process.env[`${prefix}
|
|
12048
|
-
process.env[`${prefix}
|
|
12049
|
-
process.env[`${prefix}
|
|
12050
|
-
process.env
|
|
12051
|
-
process.env.
|
|
12011
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
12012
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
12013
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
12014
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
12015
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
12016
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
12017
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
12018
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
12019
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
12020
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
12021
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
12022
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
12023
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
12024
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
12025
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
12026
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
12027
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
12028
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
12029
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
12030
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
12031
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
12032
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
12033
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
12034
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
12035
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
12036
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
12037
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
12038
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
12039
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
12040
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
12041
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
12042
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
12043
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
12044
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
12045
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
12046
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
12047
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
12048
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
12049
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
12050
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
12051
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
12052
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
12052
12053
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
12053
|
-
);
|
|
12054
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
12055
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
12054
|
+
));
|
|
12055
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
12056
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
12056
12057
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
12057
12058
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
12058
12059
|
});
|
|
@@ -61429,22 +61429,22 @@ var createTailwindConfig = ({ inputPath }) => {
|
|
|
61429
61429
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
61430
61430
|
var import_cosmiconfig = __toESM(require_dist17(), 1);
|
|
61431
61431
|
var _static_cache = void 0;
|
|
61432
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
61433
|
-
var getConfigFile = async () => {
|
|
61432
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
61433
|
+
var getConfigFile = async (filePath) => {
|
|
61434
61434
|
if (_static_cache) {
|
|
61435
61435
|
return _static_cache;
|
|
61436
61436
|
}
|
|
61437
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
61437
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
61438
61438
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
61439
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
61439
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
61440
61440
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
61441
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
61441
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
61442
61442
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
61443
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
61443
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
61444
61444
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
61445
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
61445
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
61446
61446
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
61447
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
61447
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
61448
61448
|
}
|
|
61449
61449
|
}
|
|
61450
61450
|
}
|
|
@@ -65140,8 +65140,8 @@ var ColorConfigSchema = objectType({
|
|
|
65140
65140
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
65141
65141
|
}).describe("Colors used for various workspace elements");
|
|
65142
65142
|
var StormConfigSchema = objectType({
|
|
65143
|
-
name: stringType().trim().toLowerCase().describe("The name of the package"),
|
|
65144
|
-
namespace: stringType().trim().toLowerCase().
|
|
65143
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
65144
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
65145
65145
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
65146
65146
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
65147
65147
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -65158,7 +65158,7 @@ var StormConfigSchema = objectType({
|
|
|
65158
65158
|
ci: booleanType().default(true).describe(
|
|
65159
65159
|
"An indicator specifying if the current environment is a CI environment"
|
|
65160
65160
|
),
|
|
65161
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
65161
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
65162
65162
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
65163
65163
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
65164
65164
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -65168,7 +65168,7 @@ var StormConfigSchema = objectType({
|
|
|
65168
65168
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
65169
65169
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
65170
65170
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
65171
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
65171
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
65172
65172
|
"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`)."
|
|
65173
65173
|
),
|
|
65174
65174
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -65193,7 +65193,7 @@ var DefaultColorConfig = {
|
|
|
65193
65193
|
fatal: "#7d1a1a"
|
|
65194
65194
|
};
|
|
65195
65195
|
var DefaultStormConfig = {
|
|
65196
|
-
name: "storm
|
|
65196
|
+
name: "storm",
|
|
65197
65197
|
namespace: "storm-software",
|
|
65198
65198
|
license: "Apache License 2.0",
|
|
65199
65199
|
homepage: "https://stormsoftware.org",
|
|
@@ -65233,19 +65233,18 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
65233
65233
|
packageJson.homepage && (homepage = packageJson.homepage);
|
|
65234
65234
|
}
|
|
65235
65235
|
}
|
|
65236
|
-
return StormConfigSchema.parse(
|
|
65237
|
-
|
|
65238
|
-
|
|
65239
|
-
|
|
65240
|
-
|
|
65241
|
-
|
|
65242
|
-
|
|
65243
|
-
|
|
65244
|
-
|
|
65245
|
-
|
|
65246
|
-
|
|
65247
|
-
|
|
65248
|
-
);
|
|
65236
|
+
return StormConfigSchema.parse({
|
|
65237
|
+
...config,
|
|
65238
|
+
...DefaultStormConfig,
|
|
65239
|
+
colors: { ...config.colors, ...DefaultColorConfig },
|
|
65240
|
+
workspaceRoot,
|
|
65241
|
+
name,
|
|
65242
|
+
namespace,
|
|
65243
|
+
repository,
|
|
65244
|
+
license: license ?? DefaultStormConfig.license,
|
|
65245
|
+
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
65246
|
+
extensions: {}
|
|
65247
|
+
});
|
|
65249
65248
|
};
|
|
65250
65249
|
|
|
65251
65250
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
@@ -65308,6 +65307,7 @@ var getConfigEnv = () => {
|
|
|
65308
65307
|
owner: process.env[`${prefix}OWNER`],
|
|
65309
65308
|
worker: process.env[`${prefix}WORKER`],
|
|
65310
65309
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
65310
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
65311
65311
|
license: process.env[`${prefix}LICENSE`],
|
|
65312
65312
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
65313
65313
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -65377,51 +65377,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
65377
65377
|
};
|
|
65378
65378
|
var setConfigEnv = (config) => {
|
|
65379
65379
|
const prefix = `STORM_`;
|
|
65380
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
65381
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
65382
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
65383
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
65384
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
65385
|
-
process.env[`${prefix}
|
|
65386
|
-
process.env[`${prefix}
|
|
65387
|
-
process.env[`${prefix}
|
|
65388
|
-
process.env
|
|
65389
|
-
process.env.
|
|
65390
|
-
process.env
|
|
65391
|
-
process.env
|
|
65392
|
-
process.env.
|
|
65393
|
-
process.env.
|
|
65394
|
-
process.env
|
|
65395
|
-
process.env[`${prefix}
|
|
65396
|
-
process.env
|
|
65397
|
-
process.env.
|
|
65398
|
-
process.env
|
|
65399
|
-
process.env[`${prefix}
|
|
65400
|
-
process.env[`${prefix}
|
|
65401
|
-
process.env[`${prefix}
|
|
65402
|
-
process.env[`${prefix}
|
|
65403
|
-
process.env
|
|
65404
|
-
process.env.
|
|
65405
|
-
process.env
|
|
65406
|
-
process.env
|
|
65407
|
-
process.env.
|
|
65408
|
-
process.env
|
|
65409
|
-
process.env[`${prefix}
|
|
65410
|
-
process.env[`${prefix}
|
|
65411
|
-
process.env[`${prefix}
|
|
65412
|
-
process.env[`${prefix}
|
|
65413
|
-
process.env[`${prefix}
|
|
65414
|
-
process.env[`${prefix}
|
|
65415
|
-
process.env[`${prefix}
|
|
65416
|
-
process.env[`${prefix}
|
|
65417
|
-
process.env[`${prefix}
|
|
65418
|
-
process.env[`${prefix}
|
|
65419
|
-
process.env
|
|
65420
|
-
process.env.
|
|
65380
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
65381
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
65382
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
65383
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
65384
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
65385
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
65386
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
65387
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
65388
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
65389
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
65390
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
65391
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
65392
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
65393
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
65394
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
65395
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
65396
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
65397
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
65398
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
65399
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
65400
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
65401
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
65402
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
65403
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
65404
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
65405
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
65406
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
65407
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
65408
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
65409
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
65410
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
65411
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
65412
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
65413
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
65414
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
65415
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
65416
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
65417
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
65418
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
65419
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
65420
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
65421
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
65421
65422
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
65422
|
-
);
|
|
65423
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
65424
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
65423
|
+
));
|
|
65424
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
65425
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
65425
65426
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
65426
65427
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
65427
65428
|
});
|