@storm-software/workspace-tools 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/index.js +58 -56
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +58 -56
- package/src/executors/design-tokens/executor.js +58 -56
- package/src/executors/tsup/executor.js +58 -56
- package/src/executors/tsup-browser/executor.js +58 -56
- package/src/executors/tsup-neutral/executor.js +58 -56
- package/src/executors/tsup-node/executor.js +58 -56
- package/src/generators/browser-library/generator.js +58 -56
- package/src/generators/config-schema/generator.js +58 -56
- package/src/generators/neutral-library/generator.js +58 -56
- package/src/generators/node-library/generator.js +58 -56
- package/src/generators/preset/generator.js +58 -56
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().
|
|
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(
|
|
@@ -11938,6 +11938,7 @@ var getConfigEnv = () => {
|
|
|
11938
11938
|
owner: process.env[`${prefix}OWNER`],
|
|
11939
11939
|
worker: process.env[`${prefix}WORKER`],
|
|
11940
11940
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
11941
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
11941
11942
|
license: process.env[`${prefix}LICENSE`],
|
|
11942
11943
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
11943
11944
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -12007,51 +12008,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
12007
12008
|
};
|
|
12008
12009
|
var setConfigEnv = (config) => {
|
|
12009
12010
|
const prefix = `STORM_`;
|
|
12010
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
12011
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
12012
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
12013
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
12014
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
12015
|
-
process.env[`${prefix}
|
|
12016
|
-
process.env[`${prefix}
|
|
12017
|
-
process.env[`${prefix}
|
|
12018
|
-
process.env
|
|
12019
|
-
process.env.
|
|
12020
|
-
process.env
|
|
12021
|
-
process.env
|
|
12022
|
-
process.env.
|
|
12023
|
-
process.env.
|
|
12024
|
-
process.env
|
|
12025
|
-
process.env[`${prefix}
|
|
12026
|
-
process.env
|
|
12027
|
-
process.env.
|
|
12028
|
-
process.env
|
|
12029
|
-
process.env[`${prefix}
|
|
12030
|
-
process.env[`${prefix}
|
|
12031
|
-
process.env[`${prefix}
|
|
12032
|
-
process.env[`${prefix}
|
|
12033
|
-
process.env
|
|
12034
|
-
process.env.
|
|
12035
|
-
process.env
|
|
12036
|
-
process.env
|
|
12037
|
-
process.env.
|
|
12038
|
-
process.env
|
|
12039
|
-
process.env[`${prefix}
|
|
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
|
|
12050
|
-
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(
|
|
12051
12053
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
12052
|
-
);
|
|
12053
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
12054
|
-
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));
|
|
12055
12057
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
12056
12058
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
12057
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().
|
|
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(
|
|
@@ -65307,6 +65307,7 @@ var getConfigEnv = () => {
|
|
|
65307
65307
|
owner: process.env[`${prefix}OWNER`],
|
|
65308
65308
|
worker: process.env[`${prefix}WORKER`],
|
|
65309
65309
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
65310
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
65310
65311
|
license: process.env[`${prefix}LICENSE`],
|
|
65311
65312
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
65312
65313
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -65376,51 +65377,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
65376
65377
|
};
|
|
65377
65378
|
var setConfigEnv = (config) => {
|
|
65378
65379
|
const prefix = `STORM_`;
|
|
65379
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
65380
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
65381
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
65382
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
65383
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
65384
|
-
process.env[`${prefix}
|
|
65385
|
-
process.env[`${prefix}
|
|
65386
|
-
process.env[`${prefix}
|
|
65387
|
-
process.env
|
|
65388
|
-
process.env.
|
|
65389
|
-
process.env
|
|
65390
|
-
process.env
|
|
65391
|
-
process.env.
|
|
65392
|
-
process.env.
|
|
65393
|
-
process.env
|
|
65394
|
-
process.env[`${prefix}
|
|
65395
|
-
process.env
|
|
65396
|
-
process.env.
|
|
65397
|
-
process.env
|
|
65398
|
-
process.env[`${prefix}
|
|
65399
|
-
process.env[`${prefix}
|
|
65400
|
-
process.env[`${prefix}
|
|
65401
|
-
process.env[`${prefix}
|
|
65402
|
-
process.env
|
|
65403
|
-
process.env.
|
|
65404
|
-
process.env
|
|
65405
|
-
process.env
|
|
65406
|
-
process.env.
|
|
65407
|
-
process.env
|
|
65408
|
-
process.env[`${prefix}
|
|
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
|
|
65419
|
-
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(
|
|
65420
65422
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
65421
|
-
);
|
|
65422
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
65423
|
-
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));
|
|
65424
65426
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
65425
65427
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
65426
65428
|
});
|
|
@@ -112459,22 +112459,22 @@ var ts = __toESM(require("typescript"));
|
|
|
112459
112459
|
// packages/config-tools/src/config-file/get-config-file.ts
|
|
112460
112460
|
var import_cosmiconfig = __toESM(require_dist6(), 1);
|
|
112461
112461
|
var _static_cache = void 0;
|
|
112462
|
-
var getConfigFileName = (fileName) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search();
|
|
112463
|
-
var getConfigFile = async () => {
|
|
112462
|
+
var getConfigFileName = (fileName, filePath) => (0, import_cosmiconfig.cosmiconfig)(fileName, { cache: true }).search(filePath);
|
|
112463
|
+
var getConfigFile = async (filePath) => {
|
|
112464
112464
|
if (_static_cache) {
|
|
112465
112465
|
return _static_cache;
|
|
112466
112466
|
}
|
|
112467
|
-
let cosmiconfigResult = await getConfigFileName("storm");
|
|
112467
|
+
let cosmiconfigResult = await getConfigFileName("storm", filePath);
|
|
112468
112468
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112469
|
-
cosmiconfigResult = await getConfigFileName("storm-software");
|
|
112469
|
+
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
|
|
112470
112470
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112471
|
-
cosmiconfigResult = await getConfigFileName("storm-stack");
|
|
112471
|
+
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
|
|
112472
112472
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112473
|
-
cosmiconfigResult = await getConfigFileName("storm-cloud");
|
|
112473
|
+
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
|
|
112474
112474
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112475
|
-
cosmiconfigResult = await getConfigFileName("acidic");
|
|
112475
|
+
cosmiconfigResult = await getConfigFileName("acidic", filePath);
|
|
112476
112476
|
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
|
|
112477
|
-
cosmiconfigResult = await getConfigFileName("acid");
|
|
112477
|
+
cosmiconfigResult = await getConfigFileName("acid", filePath);
|
|
112478
112478
|
}
|
|
112479
112479
|
}
|
|
112480
112480
|
}
|
|
@@ -116170,8 +116170,8 @@ var ColorConfigSchema = objectType({
|
|
|
116170
116170
|
fatal: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#7d1a1a").describe("The fatal color of the workspace")
|
|
116171
116171
|
}).describe("Colors used for various workspace elements");
|
|
116172
116172
|
var StormConfigSchema = objectType({
|
|
116173
|
-
name: stringType().trim().toLowerCase().
|
|
116174
|
-
namespace: stringType().trim().toLowerCase().
|
|
116173
|
+
name: stringType().trim().toLowerCase().optional().describe("The name of the package"),
|
|
116174
|
+
namespace: stringType().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
116175
116175
|
organization: stringType().trim().default("storm-software").describe("The organization of the workspace"),
|
|
116176
116176
|
repository: stringType().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
116177
116177
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
@@ -116188,7 +116188,7 @@ var StormConfigSchema = objectType({
|
|
|
116188
116188
|
ci: booleanType().default(true).describe(
|
|
116189
116189
|
"An indicator specifying if the current environment is a CI environment"
|
|
116190
116190
|
),
|
|
116191
|
-
workspaceRoot: stringType().trim().describe("The root directory of the workspace"),
|
|
116191
|
+
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
116192
116192
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
116193
116193
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
116194
116194
|
runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
|
|
@@ -116198,7 +116198,7 @@ var StormConfigSchema = objectType({
|
|
|
116198
116198
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
116199
116199
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
116200
116200
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
116201
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).
|
|
116201
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
116202
116202
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
116203
116203
|
),
|
|
116204
116204
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -116337,6 +116337,7 @@ var getConfigEnv = () => {
|
|
|
116337
116337
|
owner: process.env[`${prefix}OWNER`],
|
|
116338
116338
|
worker: process.env[`${prefix}WORKER`],
|
|
116339
116339
|
organization: process.env[`${prefix}ORGANIZATION`],
|
|
116340
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
116340
116341
|
license: process.env[`${prefix}LICENSE`],
|
|
116341
116342
|
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
116342
116343
|
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
@@ -116406,51 +116407,52 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
116406
116407
|
};
|
|
116407
116408
|
var setConfigEnv = (config) => {
|
|
116408
116409
|
const prefix = `STORM_`;
|
|
116409
|
-
process.env[`${prefix}NAME`] = config.name;
|
|
116410
|
-
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
116411
|
-
process.env[`${prefix}OWNER`] = config.owner;
|
|
116412
|
-
process.env[`${prefix}WORKER`] = config.worker;
|
|
116413
|
-
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
116414
|
-
process.env[`${prefix}
|
|
116415
|
-
process.env[`${prefix}
|
|
116416
|
-
process.env[`${prefix}
|
|
116417
|
-
process.env
|
|
116418
|
-
process.env.
|
|
116419
|
-
process.env
|
|
116420
|
-
process.env
|
|
116421
|
-
process.env.
|
|
116422
|
-
process.env.
|
|
116423
|
-
process.env
|
|
116424
|
-
process.env[`${prefix}
|
|
116425
|
-
process.env
|
|
116426
|
-
process.env.
|
|
116427
|
-
process.env
|
|
116428
|
-
process.env[`${prefix}
|
|
116429
|
-
process.env[`${prefix}
|
|
116430
|
-
process.env[`${prefix}
|
|
116431
|
-
process.env[`${prefix}
|
|
116432
|
-
process.env
|
|
116433
|
-
process.env.
|
|
116434
|
-
process.env
|
|
116435
|
-
process.env
|
|
116436
|
-
process.env.
|
|
116437
|
-
process.env
|
|
116438
|
-
process.env[`${prefix}
|
|
116439
|
-
process.env[`${prefix}
|
|
116440
|
-
process.env[`${prefix}
|
|
116441
|
-
process.env[`${prefix}
|
|
116442
|
-
process.env[`${prefix}
|
|
116443
|
-
process.env[`${prefix}
|
|
116444
|
-
process.env[`${prefix}
|
|
116445
|
-
process.env[`${prefix}
|
|
116446
|
-
process.env[`${prefix}
|
|
116447
|
-
process.env[`${prefix}
|
|
116448
|
-
process.env
|
|
116449
|
-
process.env.
|
|
116410
|
+
config.name && (process.env[`${prefix}NAME`] = config.name);
|
|
116411
|
+
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
|
|
116412
|
+
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
|
|
116413
|
+
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
|
|
116414
|
+
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
|
|
116415
|
+
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
|
|
116416
|
+
config.license && (process.env[`${prefix}LICENSE`] = config.license);
|
|
116417
|
+
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
|
|
116418
|
+
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
|
|
116419
|
+
config.timezone && (process.env.TZ = config.timezone);
|
|
116420
|
+
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
|
|
116421
|
+
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
|
|
116422
|
+
config.locale && (process.env.LOCALE = config.locale);
|
|
116423
|
+
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
|
|
116424
|
+
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
|
|
116425
|
+
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
|
|
116426
|
+
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
|
|
116427
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
|
|
116428
|
+
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
|
|
116429
|
+
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
|
|
116430
|
+
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
|
|
116431
|
+
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
|
|
116432
|
+
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
|
|
116433
|
+
config.env && (process.env[`${prefix}ENV`] = config.env);
|
|
116434
|
+
config.env && (process.env.NODE_ENV = config.env);
|
|
116435
|
+
config.env && (process.env.ENVIRONMENT = config.env);
|
|
116436
|
+
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
|
|
116437
|
+
config.ci && (process.env.CI = String(config.ci));
|
|
116438
|
+
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
|
|
116439
|
+
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
|
|
116440
|
+
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
|
|
116441
|
+
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
|
|
116442
|
+
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
|
|
116443
|
+
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
|
|
116444
|
+
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
|
|
116445
|
+
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
|
|
116446
|
+
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
|
|
116447
|
+
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
|
|
116448
|
+
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
|
|
116449
|
+
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
|
|
116450
|
+
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
|
|
116451
|
+
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
|
|
116450
116452
|
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
116451
|
-
);
|
|
116452
|
-
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
116453
|
-
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
116453
|
+
));
|
|
116454
|
+
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
|
|
116455
|
+
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
|
|
116454
116456
|
Object.keys(config.extensions ?? {}).forEach((key) => {
|
|
116455
116457
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
116456
116458
|
});
|