@storm-software/workspace-tools 1.42.2 → 1.42.4
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/config/nx.json +3 -4
- package/index.js +181 -106
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +177 -103
- package/src/executors/design-tokens/executor.js +177 -103
- package/src/executors/tsup/executor.js +179 -105
- package/src/executors/tsup-browser/executor.js +179 -105
- package/src/executors/tsup-neutral/executor.js +181 -106
- package/src/executors/tsup-node/executor.js +179 -105
- package/src/generators/browser-library/generator.js +165 -97
- package/src/generators/config-schema/generator.js +165 -97
- package/src/generators/neutral-library/generator.js +165 -97
- package/src/generators/node-library/generator.js +165 -97
- package/src/generators/preset/generator.js +165 -97
|
@@ -65095,7 +65095,7 @@ var require_Options_gen_types = __commonJS({
|
|
|
65095
65095
|
compiledFilename: "string"
|
|
65096
65096
|
});
|
|
65097
65097
|
exports.SourceMapOptions = SourceMapOptions;
|
|
65098
|
-
var
|
|
65098
|
+
var Options = t.iface([], {
|
|
65099
65099
|
transforms: t.array("Transform"),
|
|
65100
65100
|
disableESTransforms: t.opt("boolean"),
|
|
65101
65101
|
jsxRuntime: t.opt(t.union(t.lit("classic"), t.lit("automatic"), t.lit("preserve"))),
|
|
@@ -65111,7 +65111,7 @@ var require_Options_gen_types = __commonJS({
|
|
|
65111
65111
|
sourceMapOptions: t.opt("SourceMapOptions"),
|
|
65112
65112
|
filePath: t.opt("string")
|
|
65113
65113
|
});
|
|
65114
|
-
exports.Options =
|
|
65114
|
+
exports.Options = Options;
|
|
65115
65115
|
var exportedTypeSuite = {
|
|
65116
65116
|
Transform: exports.Transform,
|
|
65117
65117
|
SourceMapOptions: exports.SourceMapOptions,
|
|
@@ -126347,7 +126347,8 @@ var LogLevel = {
|
|
|
126347
126347
|
WARN: 30,
|
|
126348
126348
|
INFO: 40,
|
|
126349
126349
|
DEBUG: 60,
|
|
126350
|
-
TRACE: 70
|
|
126350
|
+
TRACE: 70,
|
|
126351
|
+
ALL: 100
|
|
126351
126352
|
};
|
|
126352
126353
|
var LogLevelLabel = {
|
|
126353
126354
|
SILENT: "silent",
|
|
@@ -126356,7 +126357,8 @@ var LogLevelLabel = {
|
|
|
126356
126357
|
WARN: "warn",
|
|
126357
126358
|
INFO: "info",
|
|
126358
126359
|
DEBUG: "debug",
|
|
126359
|
-
TRACE: "trace"
|
|
126360
|
+
TRACE: "trace",
|
|
126361
|
+
ALL: "all"
|
|
126360
126362
|
};
|
|
126361
126363
|
|
|
126362
126364
|
// packages/config-tools/src/utilities/find-up.ts
|
|
@@ -126365,15 +126367,15 @@ var import_path = require("path");
|
|
|
126365
126367
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
126366
126368
|
var depth = 0;
|
|
126367
126369
|
function findFolderUp(startPath, endFileNames) {
|
|
126368
|
-
|
|
126369
|
-
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(
|
|
126370
|
-
return
|
|
126371
|
-
}
|
|
126372
|
-
|
|
126370
|
+
const _startPath = startPath ?? process.cwd();
|
|
126371
|
+
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(_startPath, endFileName)))) {
|
|
126372
|
+
return _startPath;
|
|
126373
|
+
}
|
|
126374
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
126375
|
+
const parent = (0, import_path.join)(_startPath, "..");
|
|
126373
126376
|
return findFolderUp(parent, endFileNames);
|
|
126374
|
-
} else {
|
|
126375
|
-
return void 0;
|
|
126376
126377
|
}
|
|
126378
|
+
return void 0;
|
|
126377
126379
|
}
|
|
126378
126380
|
|
|
126379
126381
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
@@ -130030,17 +130032,13 @@ var StormConfigSchema = objectType({
|
|
|
130030
130032
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
130031
130033
|
homepage: stringType().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
130032
130034
|
branch: stringType().trim().default("main").describe("The branch of the workspace"),
|
|
130033
|
-
preMajor: booleanType().default(false).describe(
|
|
130034
|
-
"An indicator specifying if the package is still in it's pre-major version"
|
|
130035
|
-
),
|
|
130035
|
+
preMajor: booleanType().default(false).describe("An indicator specifying if the package is still in it's pre-major version"),
|
|
130036
130036
|
owner: stringType().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
130037
130037
|
worker: stringType().trim().default("stormie-bot").describe(
|
|
130038
130038
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
130039
130039
|
),
|
|
130040
130040
|
env: enumType(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
130041
|
-
ci: booleanType().default(true).describe(
|
|
130042
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
130043
|
-
),
|
|
130041
|
+
ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
130044
130042
|
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
130045
130043
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
130046
130044
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
@@ -130051,7 +130049,7 @@ var StormConfigSchema = objectType({
|
|
|
130051
130049
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
130052
130050
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
130053
130051
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
130054
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
130052
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
130055
130053
|
"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`)."
|
|
130056
130054
|
),
|
|
130057
130055
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -130109,11 +130107,21 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
130109
130107
|
});
|
|
130110
130108
|
if (file) {
|
|
130111
130109
|
const packageJson = JSON.parse(file);
|
|
130112
|
-
|
|
130113
|
-
|
|
130114
|
-
|
|
130115
|
-
|
|
130116
|
-
|
|
130110
|
+
if (packageJson.name) {
|
|
130111
|
+
name = packageJson.name;
|
|
130112
|
+
}
|
|
130113
|
+
if (packageJson.namespace) {
|
|
130114
|
+
namespace = packageJson.namespace;
|
|
130115
|
+
}
|
|
130116
|
+
if (packageJson.repository?.url) {
|
|
130117
|
+
repository = packageJson.repository?.url;
|
|
130118
|
+
}
|
|
130119
|
+
if (packageJson.license) {
|
|
130120
|
+
license = packageJson.license;
|
|
130121
|
+
}
|
|
130122
|
+
if (packageJson.homepage) {
|
|
130123
|
+
homepage = packageJson.homepage;
|
|
130124
|
+
}
|
|
130117
130125
|
}
|
|
130118
130126
|
}
|
|
130119
130127
|
return StormConfigSchema.parse({
|
|
@@ -130156,36 +130164,41 @@ var getLogLevel = (label) => {
|
|
|
130156
130164
|
var getLogLevelLabel = (logLevel) => {
|
|
130157
130165
|
if (logLevel >= LogLevel.TRACE) {
|
|
130158
130166
|
return LogLevelLabel.TRACE;
|
|
130159
|
-
}
|
|
130167
|
+
}
|
|
130168
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
130160
130169
|
return LogLevelLabel.DEBUG;
|
|
130161
|
-
}
|
|
130170
|
+
}
|
|
130171
|
+
if (logLevel >= LogLevel.INFO) {
|
|
130162
130172
|
return LogLevelLabel.INFO;
|
|
130163
|
-
}
|
|
130173
|
+
}
|
|
130174
|
+
if (logLevel >= LogLevel.WARN) {
|
|
130164
130175
|
return LogLevelLabel.WARN;
|
|
130165
|
-
}
|
|
130176
|
+
}
|
|
130177
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
130166
130178
|
return LogLevelLabel.ERROR;
|
|
130167
|
-
}
|
|
130179
|
+
}
|
|
130180
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
130168
130181
|
return LogLevelLabel.FATAL;
|
|
130169
|
-
}
|
|
130182
|
+
}
|
|
130183
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
130170
130184
|
return LogLevelLabel.SILENT;
|
|
130171
|
-
} else {
|
|
130172
|
-
return LogLevelLabel.INFO;
|
|
130173
130185
|
}
|
|
130186
|
+
return LogLevelLabel.INFO;
|
|
130174
130187
|
};
|
|
130175
130188
|
|
|
130176
130189
|
// packages/config-tools/src/env/get-env.ts
|
|
130177
130190
|
var getExtensionEnv = (extensionName) => {
|
|
130178
130191
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
130179
130192
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
130180
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
130181
|
-
|
|
130182
|
-
|
|
130183
|
-
|
|
130193
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130194
|
+
if (name) {
|
|
130195
|
+
ret[name] = process.env[key];
|
|
130196
|
+
}
|
|
130184
130197
|
return ret;
|
|
130185
130198
|
}, {});
|
|
130186
130199
|
};
|
|
130187
130200
|
var getConfigEnv = () => {
|
|
130188
|
-
const prefix =
|
|
130201
|
+
const prefix = "STORM_";
|
|
130189
130202
|
let config = {
|
|
130190
130203
|
name: process.env[`${prefix}NAME`],
|
|
130191
130204
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
@@ -130204,9 +130217,7 @@ var getConfigEnv = () => {
|
|
|
130204
130217
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
130205
130218
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
130206
130219
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
130207
|
-
ci: Boolean(
|
|
130208
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
130209
|
-
),
|
|
130220
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
130210
130221
|
colors: {
|
|
130211
130222
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
130212
130223
|
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
@@ -130219,9 +130230,7 @@ var getConfigEnv = () => {
|
|
|
130219
130230
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
130220
130231
|
branch: process.env[`${prefix}BRANCH`],
|
|
130221
130232
|
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
130222
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
130223
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
130224
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130233
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130225
130234
|
extensions: {}
|
|
130226
130235
|
};
|
|
130227
130236
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
@@ -130236,26 +130245,27 @@ var getConfigEnv = () => {
|
|
|
130236
130245
|
}
|
|
130237
130246
|
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
130238
130247
|
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
130239
|
-
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map(
|
|
130240
|
-
|
|
130241
|
-
|
|
130242
|
-
|
|
130248
|
+
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130249
|
+
if (extensionName) {
|
|
130250
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
130251
|
+
}
|
|
130243
130252
|
return ret;
|
|
130244
130253
|
}, config);
|
|
130245
130254
|
};
|
|
130246
130255
|
|
|
130247
130256
|
// packages/config-tools/src/env/set-env.ts
|
|
130248
130257
|
var setExtensionEnv = (extensionName, extension) => {
|
|
130249
|
-
Object.keys(extension ?? {})
|
|
130258
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
130250
130259
|
if (extension[key]) {
|
|
130251
|
-
|
|
130260
|
+
const result = key?.replace(
|
|
130252
130261
|
/([A-Z])+/g,
|
|
130253
130262
|
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
130254
130263
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
130255
130264
|
let extensionKey;
|
|
130256
130265
|
if (result.length === 0) {
|
|
130257
130266
|
return;
|
|
130258
|
-
}
|
|
130267
|
+
}
|
|
130268
|
+
if (result.length === 1) {
|
|
130259
130269
|
extensionKey = result[0].toUpperCase();
|
|
130260
130270
|
} else {
|
|
130261
130271
|
extensionKey = result.reduce((ret, part) => {
|
|
@@ -130264,59 +130274,117 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
130264
130274
|
}
|
|
130265
130275
|
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
130266
130276
|
}
|
|
130267
|
-
}
|
|
130277
|
+
}
|
|
130268
130278
|
};
|
|
130269
130279
|
var setConfigEnv = (config) => {
|
|
130270
|
-
const prefix =
|
|
130271
|
-
|
|
130272
|
-
|
|
130273
|
-
|
|
130274
|
-
|
|
130275
|
-
|
|
130276
|
-
|
|
130277
|
-
|
|
130278
|
-
|
|
130279
|
-
|
|
130280
|
-
|
|
130281
|
-
|
|
130282
|
-
|
|
130283
|
-
|
|
130284
|
-
|
|
130285
|
-
|
|
130286
|
-
|
|
130287
|
-
|
|
130288
|
-
|
|
130289
|
-
|
|
130290
|
-
|
|
130291
|
-
|
|
130292
|
-
|
|
130293
|
-
|
|
130294
|
-
|
|
130295
|
-
|
|
130296
|
-
|
|
130297
|
-
|
|
130298
|
-
|
|
130299
|
-
|
|
130300
|
-
|
|
130301
|
-
|
|
130302
|
-
|
|
130303
|
-
|
|
130304
|
-
|
|
130305
|
-
|
|
130306
|
-
|
|
130307
|
-
|
|
130308
|
-
|
|
130309
|
-
|
|
130310
|
-
|
|
130311
|
-
|
|
130312
|
-
|
|
130313
|
-
|
|
130314
|
-
)
|
|
130315
|
-
|
|
130316
|
-
|
|
130317
|
-
|
|
130280
|
+
const prefix = "STORM_";
|
|
130281
|
+
if (config.name) {
|
|
130282
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
130283
|
+
}
|
|
130284
|
+
if (config.namespace) {
|
|
130285
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
130286
|
+
}
|
|
130287
|
+
if (config.owner) {
|
|
130288
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
130289
|
+
}
|
|
130290
|
+
if (config.worker) {
|
|
130291
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
130292
|
+
}
|
|
130293
|
+
if (config.organization) {
|
|
130294
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
130295
|
+
}
|
|
130296
|
+
if (config.packageManager) {
|
|
130297
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
130298
|
+
}
|
|
130299
|
+
if (config.license) {
|
|
130300
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
130301
|
+
}
|
|
130302
|
+
if (config.homepage) {
|
|
130303
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
130304
|
+
}
|
|
130305
|
+
if (config.timezone) {
|
|
130306
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
130307
|
+
process.env.TZ = config.timezone;
|
|
130308
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
130309
|
+
}
|
|
130310
|
+
if (config.locale) {
|
|
130311
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
130312
|
+
process.env.LOCALE = config.locale;
|
|
130313
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
130314
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
130315
|
+
}
|
|
130316
|
+
if (config.configFile) {
|
|
130317
|
+
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
130318
|
+
}
|
|
130319
|
+
if (config.workspaceRoot) {
|
|
130320
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
|
|
130321
|
+
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
|
|
130322
|
+
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
|
|
130323
|
+
}
|
|
130324
|
+
if (config.packageDirectory) {
|
|
130325
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
|
|
130326
|
+
}
|
|
130327
|
+
if (config.buildDirectory) {
|
|
130328
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
130329
|
+
}
|
|
130330
|
+
if (config.runtimeVersion) {
|
|
130331
|
+
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
130332
|
+
}
|
|
130333
|
+
if (config.runtimeDirectory) {
|
|
130334
|
+
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
|
|
130335
|
+
}
|
|
130336
|
+
if (config.env) {
|
|
130337
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
130338
|
+
process.env.NODE_ENV = config.env;
|
|
130339
|
+
process.env.ENVIRONMENT = config.env;
|
|
130340
|
+
}
|
|
130341
|
+
if (config.ci) {
|
|
130342
|
+
process.env[`${prefix}CI`] = String(config.ci);
|
|
130343
|
+
process.env.CI = String(config.ci);
|
|
130344
|
+
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
130345
|
+
}
|
|
130346
|
+
if (config.colors.primary) {
|
|
130347
|
+
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
130348
|
+
}
|
|
130349
|
+
if (config.colors.background) {
|
|
130350
|
+
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
|
|
130351
|
+
}
|
|
130352
|
+
if (config.colors.success) {
|
|
130353
|
+
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
130354
|
+
}
|
|
130355
|
+
if (config.colors.info) {
|
|
130356
|
+
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
130357
|
+
}
|
|
130358
|
+
if (config.colors.warning) {
|
|
130359
|
+
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
130360
|
+
}
|
|
130361
|
+
if (config.colors.error) {
|
|
130362
|
+
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
130363
|
+
}
|
|
130364
|
+
if (config.colors.fatal) {
|
|
130365
|
+
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
130366
|
+
}
|
|
130367
|
+
if (config.repository) {
|
|
130368
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
130369
|
+
}
|
|
130370
|
+
if (config.branch) {
|
|
130371
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
130372
|
+
}
|
|
130373
|
+
if (config.preMajor) {
|
|
130374
|
+
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
|
|
130375
|
+
}
|
|
130376
|
+
if (config.logLevel) {
|
|
130377
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
130378
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
130379
|
+
process.env.NX_VERBOSE_LOGGING = String(
|
|
130380
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
130381
|
+
);
|
|
130382
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
130383
|
+
}
|
|
130384
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
130385
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
130318
130386
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
130319
|
-
}
|
|
130387
|
+
}
|
|
130320
130388
|
};
|
|
130321
130389
|
|
|
130322
130390
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
@@ -130408,10 +130476,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
130408
130476
|
};
|
|
130409
130477
|
|
|
130410
130478
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
130411
|
-
var withRunExecutor = (name, executorFn, executorOptions
|
|
130412
|
-
skipReadingConfig: false,
|
|
130413
|
-
hooks: {}
|
|
130414
|
-
}) => async (_options, context) => {
|
|
130479
|
+
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
130415
130480
|
const startTime = Date.now();
|
|
130416
130481
|
let options = _options;
|
|
130417
130482
|
try {
|
|
@@ -130429,15 +130494,24 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
130429
130494
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
130430
130495
|
let config;
|
|
130431
130496
|
if (!executorOptions.skipReadingConfig) {
|
|
130497
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.info(
|
|
130498
|
+
chalk.dim(`Loading the Storm config...
|
|
130499
|
+
- workspaceRoot: ${workspaceRoot}
|
|
130500
|
+
- projectRoot: ${projectRoot}
|
|
130501
|
+
- sourceRoot: ${sourceRoot}
|
|
130502
|
+
- projectName: ${projectName}
|
|
130503
|
+
`)
|
|
130504
|
+
);
|
|
130432
130505
|
config = getDefaultConfig({
|
|
130433
130506
|
...await getConfigFile(),
|
|
130434
130507
|
...getConfigEnv()
|
|
130435
130508
|
});
|
|
130436
130509
|
setConfigEnv(config);
|
|
130437
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.
|
|
130510
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
130438
130511
|
chalk.dim(
|
|
130439
130512
|
`Loaded Storm config into env:
|
|
130440
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
130513
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
130514
|
+
`
|
|
130441
130515
|
)
|
|
130442
130516
|
);
|
|
130443
130517
|
}
|
|
@@ -137506,7 +137580,8 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
137506
137580
|
...process.env
|
|
137507
137581
|
}
|
|
137508
137582
|
},
|
|
137509
|
-
context
|
|
137583
|
+
context,
|
|
137584
|
+
config
|
|
137510
137585
|
);
|
|
137511
137586
|
};
|
|
137512
137587
|
var applyDefaultOptions2 = (options) => {
|