@storm-software/workspace-tools 1.34.2 → 1.35.1
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 +58 -56
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +58 -56
- package/src/executors/design-tokens/executor.js +58 -56
- package/src/executors/tsup/executor.js +58 -56
- package/src/executors/tsup-browser/executor.js +58 -56
- package/src/executors/tsup-neutral/executor.js +58 -56
- package/src/executors/tsup-node/executor.js +58 -56
- package/src/generators/browser-library/generator.js +58 -56
- package/src/generators/config-schema/generator.js +58 -56
- package/src/generators/neutral-library/generator.js +58 -56
- package/src/generators/node-library/generator.js +58 -56
- package/src/generators/preset/generator.js +58 -56
|
@@ -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().
|
|
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(
|
|
@@ -110103,6 +110103,7 @@ var getConfigEnv = () => {
|
|
|
110103
110103
|
owner: process.env[`${prefix}OWNER`],
|
|
110104
110104
|
worker: process.env[`${prefix}WORKER`],
|
|
110105
110105
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
110106
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
110106
110107
|
license: process.env[`${prefix}LICENSE`],
|
|
110107
110108
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
110108
110109
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -110172,51 +110173,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
110172
110173
|
};
|
|
110173
110174
|
var setConfigEnv = (config) => {
|
|
110174
110175
|
const prefix = `STORM_`;
|
|
110175
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
110176
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
110177
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
110178
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
110179
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
110180
|
-
process.env[`${prefix}
|
|
110181
|
-
process.env[`${prefix}
|
|
110182
|
-
process.env[`${prefix}
|
|
110183
|
-
process.env
|
|
110184
|
-
process.env.
|
|
110185
|
-
process.env
|
|
110186
|
-
process.env
|
|
110187
|
-
process.env.
|
|
110188
|
-
process.env.
|
|
110189
|
-
process.env
|
|
110190
|
-
process.env[`${prefix}
|
|
110191
|
-
process.env
|
|
110192
|
-
process.env.
|
|
110193
|
-
process.env
|
|
110194
|
-
process.env[`${prefix}
|
|
110195
|
-
process.env[`${prefix}
|
|
110196
|
-
process.env[`${prefix}
|
|
110197
|
-
process.env[`${prefix}
|
|
110198
|
-
process.env
|
|
110199
|
-
process.env.
|
|
110200
|
-
process.env
|
|
110201
|
-
process.env
|
|
110202
|
-
process.env.
|
|
110203
|
-
process.env
|
|
110204
|
-
process.env[`${prefix}
|
|
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
|
|
110215
|
-
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(
|
|
110216
110218
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
110217
|
-
);
|
|
110218
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
110219
|
-
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));
|
|
110220
110222
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
110221
110223
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
110222
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().
|
|
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(
|
|
@@ -110103,6 +110103,7 @@ var getConfigEnv = () => {
|
|
|
110103
110103
|
owner: process.env[`${prefix}OWNER`],
|
|
110104
110104
|
worker: process.env[`${prefix}WORKER`],
|
|
110105
110105
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
110106
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
110106
110107
|
license: process.env[`${prefix}LICENSE`],
|
|
110107
110108
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
110108
110109
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -110172,51 +110173,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
110172
110173
|
};
|
|
110173
110174
|
var setConfigEnv = (config) => {
|
|
110174
110175
|
const prefix = `STORM_`;
|
|
110175
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
110176
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
110177
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
110178
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
110179
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
110180
|
-
process.env[`${prefix}
|
|
110181
|
-
process.env[`${prefix}
|
|
110182
|
-
process.env[`${prefix}
|
|
110183
|
-
process.env
|
|
110184
|
-
process.env.
|
|
110185
|
-
process.env
|
|
110186
|
-
process.env
|
|
110187
|
-
process.env.
|
|
110188
|
-
process.env.
|
|
110189
|
-
process.env
|
|
110190
|
-
process.env[`${prefix}
|
|
110191
|
-
process.env
|
|
110192
|
-
process.env.
|
|
110193
|
-
process.env
|
|
110194
|
-
process.env[`${prefix}
|
|
110195
|
-
process.env[`${prefix}
|
|
110196
|
-
process.env[`${prefix}
|
|
110197
|
-
process.env[`${prefix}
|
|
110198
|
-
process.env
|
|
110199
|
-
process.env.
|
|
110200
|
-
process.env
|
|
110201
|
-
process.env
|
|
110202
|
-
process.env.
|
|
110203
|
-
process.env
|
|
110204
|
-
process.env[`${prefix}
|
|
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
|
|
110215
|
-
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(
|
|
110216
110218
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
110217
|
-
);
|
|
110218
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
110219
|
-
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));
|
|
110220
110222
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
110221
110223
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
110222
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().
|
|
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(
|
|
@@ -110103,6 +110103,7 @@ var getConfigEnv = () => {
|
|
|
110103
110103
|
owner: process.env[`${prefix}OWNER`],
|
|
110104
110104
|
worker: process.env[`${prefix}WORKER`],
|
|
110105
110105
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
110106
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
110106
110107
|
license: process.env[`${prefix}LICENSE`],
|
|
110107
110108
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
110108
110109
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -110172,51 +110173,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
110172
110173
|
};
|
|
110173
110174
|
var setConfigEnv = (config) => {
|
|
110174
110175
|
const prefix = `STORM_`;
|
|
110175
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
110176
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
110177
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
110178
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
110179
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
110180
|
-
process.env[`${prefix}
|
|
110181
|
-
process.env[`${prefix}
|
|
110182
|
-
process.env[`${prefix}
|
|
110183
|
-
process.env
|
|
110184
|
-
process.env.
|
|
110185
|
-
process.env
|
|
110186
|
-
process.env
|
|
110187
|
-
process.env.
|
|
110188
|
-
process.env.
|
|
110189
|
-
process.env
|
|
110190
|
-
process.env[`${prefix}
|
|
110191
|
-
process.env
|
|
110192
|
-
process.env.
|
|
110193
|
-
process.env
|
|
110194
|
-
process.env[`${prefix}
|
|
110195
|
-
process.env[`${prefix}
|
|
110196
|
-
process.env[`${prefix}
|
|
110197
|
-
process.env[`${prefix}
|
|
110198
|
-
process.env
|
|
110199
|
-
process.env.
|
|
110200
|
-
process.env
|
|
110201
|
-
process.env
|
|
110202
|
-
process.env.
|
|
110203
|
-
process.env
|
|
110204
|
-
process.env[`${prefix}
|
|
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
|
|
110215
|
-
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(
|
|
110216
110218
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
110217
|
-
);
|
|
110218
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
110219
|
-
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));
|
|
110220
110222
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
110221
110223
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
110222
110224
|
});
|