@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
|
@@ -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
|
});
|
|
@@ -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
|
});
|
|
@@ -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().describe("The name of the package"),
|
|
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(
|
|
@@ -47270,7 +47270,7 @@ var DefaultColorConfig = {
|
|
|
47270
47270
|
fatal: "#7d1a1a"
|
|
47271
47271
|
};
|
|
47272
47272
|
var DefaultStormConfig = {
|
|
47273
|
-
name: "storm
|
|
47273
|
+
name: "storm",
|
|
47274
47274
|
namespace: "storm-software",
|
|
47275
47275
|
license: "Apache License 2.0",
|
|
47276
47276
|
homepage: "https://stormsoftware.org",
|
|
@@ -47310,19 +47310,18 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
47310
47310
|
packageJson.homepage && (homepage = packageJson.homepage);
|
|
47311
47311
|
}
|
|
47312
47312
|
}
|
|
47313
|
-
return StormConfigSchema.parse(
|
|
47314
|
-
|
|
47315
|
-
|
|
47316
|
-
|
|
47317
|
-
|
|
47318
|
-
|
|
47319
|
-
|
|
47320
|
-
|
|
47321
|
-
|
|
47322
|
-
|
|
47323
|
-
|
|
47324
|
-
|
|
47325
|
-
);
|
|
47313
|
+
return StormConfigSchema.parse({
|
|
47314
|
+
...config,
|
|
47315
|
+
...DefaultStormConfig,
|
|
47316
|
+
colors: { ...config.colors, ...DefaultColorConfig },
|
|
47317
|
+
workspaceRoot,
|
|
47318
|
+
name,
|
|
47319
|
+
namespace,
|
|
47320
|
+
repository,
|
|
47321
|
+
license: license ?? DefaultStormConfig.license,
|
|
47322
|
+
homepage: homepage ?? DefaultStormConfig.homepage,
|
|
47323
|
+
extensions: {}
|
|
47324
|
+
});
|
|
47326
47325
|
};
|
|
47327
47326
|
|
|
47328
47327
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
@@ -47385,6 +47384,7 @@ var getConfigEnv = () => {
|
|
|
47385
47384
|
owner: process.env[`${prefix}OWNER`],
|
|
47386
47385
|
worker: process.env[`${prefix}WORKER`],
|
|
47387
47386
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
47387
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
47388
47388
|
license: process.env[`${prefix}LICENSE`],
|
|
47389
47389
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
47390
47390
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -47454,51 +47454,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
47454
47454
|
};
|
|
47455
47455
|
var setConfigEnv = (config) => {
|
|
47456
47456
|
const prefix = `STORM_`;
|
|
47457
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
47458
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
47459
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
47460
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
47461
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
47462
|
-
process.env[`${prefix}
|
|
47463
|
-
process.env[`${prefix}
|
|
47464
|
-
process.env[`${prefix}
|
|
47465
|
-
process.env
|
|
47466
|
-
process.env.
|
|
47467
|
-
process.env
|
|
47468
|
-
process.env
|
|
47469
|
-
process.env.
|
|
47470
|
-
process.env.
|
|
47471
|
-
process.env
|
|
47472
|
-
process.env[`${prefix}
|
|
47473
|
-
process.env
|
|
47474
|
-
process.env.
|
|
47475
|
-
process.env
|
|
47476
|
-
process.env[`${prefix}
|
|
47477
|
-
process.env[`${prefix}
|
|
47478
|
-
process.env[`${prefix}
|
|
47479
|
-
process.env[`${prefix}
|
|
47480
|
-
process.env
|
|
47481
|
-
process.env.
|
|
47482
|
-
process.env
|
|
47483
|
-
process.env
|
|
47484
|
-
process.env.
|
|
47485
|
-
process.env
|
|
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[`${prefix}
|
|
47496
|
-
process.env
|
|
47497
|
-
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(
|
|
47498
47499
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
47499
|
-
);
|
|
47500
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
47501
|
-
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));
|
|
47502
47503
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
47503
47504
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
47504
47505
|
});
|