@storm-software/workspace-tools 1.42.3 → 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 +7 -0
- package/config/nx.json +1 -3
- package/index.js +179 -105
- 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 +179 -105
- 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,
|
|
@@ -126355,7 +126355,8 @@ var LogLevel = {
|
|
|
126355
126355
|
WARN: 30,
|
|
126356
126356
|
INFO: 40,
|
|
126357
126357
|
DEBUG: 60,
|
|
126358
|
-
TRACE: 70
|
|
126358
|
+
TRACE: 70,
|
|
126359
|
+
ALL: 100
|
|
126359
126360
|
};
|
|
126360
126361
|
var LogLevelLabel = {
|
|
126361
126362
|
SILENT: "silent",
|
|
@@ -126364,7 +126365,8 @@ var LogLevelLabel = {
|
|
|
126364
126365
|
WARN: "warn",
|
|
126365
126366
|
INFO: "info",
|
|
126366
126367
|
DEBUG: "debug",
|
|
126367
|
-
TRACE: "trace"
|
|
126368
|
+
TRACE: "trace",
|
|
126369
|
+
ALL: "all"
|
|
126368
126370
|
};
|
|
126369
126371
|
|
|
126370
126372
|
// packages/config-tools/src/utilities/find-up.ts
|
|
@@ -126373,15 +126375,15 @@ var import_path = require("path");
|
|
|
126373
126375
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
126374
126376
|
var depth = 0;
|
|
126375
126377
|
function findFolderUp(startPath, endFileNames) {
|
|
126376
|
-
|
|
126377
|
-
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(
|
|
126378
|
-
return
|
|
126379
|
-
}
|
|
126380
|
-
|
|
126378
|
+
const _startPath = startPath ?? process.cwd();
|
|
126379
|
+
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(_startPath, endFileName)))) {
|
|
126380
|
+
return _startPath;
|
|
126381
|
+
}
|
|
126382
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
126383
|
+
const parent = (0, import_path.join)(_startPath, "..");
|
|
126381
126384
|
return findFolderUp(parent, endFileNames);
|
|
126382
|
-
} else {
|
|
126383
|
-
return void 0;
|
|
126384
126385
|
}
|
|
126386
|
+
return void 0;
|
|
126385
126387
|
}
|
|
126386
126388
|
|
|
126387
126389
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
@@ -130038,17 +130040,13 @@ var StormConfigSchema = objectType({
|
|
|
130038
130040
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
130039
130041
|
homepage: stringType().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
130040
130042
|
branch: stringType().trim().default("main").describe("The branch of the workspace"),
|
|
130041
|
-
preMajor: booleanType().default(false).describe(
|
|
130042
|
-
"An indicator specifying if the package is still in it's pre-major version"
|
|
130043
|
-
),
|
|
130043
|
+
preMajor: booleanType().default(false).describe("An indicator specifying if the package is still in it's pre-major version"),
|
|
130044
130044
|
owner: stringType().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
130045
130045
|
worker: stringType().trim().default("stormie-bot").describe(
|
|
130046
130046
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
130047
130047
|
),
|
|
130048
130048
|
env: enumType(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
130049
|
-
ci: booleanType().default(true).describe(
|
|
130050
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
130051
|
-
),
|
|
130049
|
+
ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
130052
130050
|
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
130053
130051
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
130054
130052
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
@@ -130059,7 +130057,7 @@ var StormConfigSchema = objectType({
|
|
|
130059
130057
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
130060
130058
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
130061
130059
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
130062
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
130060
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
130063
130061
|
"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`)."
|
|
130064
130062
|
),
|
|
130065
130063
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -130117,11 +130115,21 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
130117
130115
|
});
|
|
130118
130116
|
if (file) {
|
|
130119
130117
|
const packageJson = JSON.parse(file);
|
|
130120
|
-
|
|
130121
|
-
|
|
130122
|
-
|
|
130123
|
-
|
|
130124
|
-
|
|
130118
|
+
if (packageJson.name) {
|
|
130119
|
+
name = packageJson.name;
|
|
130120
|
+
}
|
|
130121
|
+
if (packageJson.namespace) {
|
|
130122
|
+
namespace = packageJson.namespace;
|
|
130123
|
+
}
|
|
130124
|
+
if (packageJson.repository?.url) {
|
|
130125
|
+
repository = packageJson.repository?.url;
|
|
130126
|
+
}
|
|
130127
|
+
if (packageJson.license) {
|
|
130128
|
+
license = packageJson.license;
|
|
130129
|
+
}
|
|
130130
|
+
if (packageJson.homepage) {
|
|
130131
|
+
homepage = packageJson.homepage;
|
|
130132
|
+
}
|
|
130125
130133
|
}
|
|
130126
130134
|
}
|
|
130127
130135
|
return StormConfigSchema.parse({
|
|
@@ -130164,36 +130172,41 @@ var getLogLevel = (label) => {
|
|
|
130164
130172
|
var getLogLevelLabel = (logLevel) => {
|
|
130165
130173
|
if (logLevel >= LogLevel.TRACE) {
|
|
130166
130174
|
return LogLevelLabel.TRACE;
|
|
130167
|
-
}
|
|
130175
|
+
}
|
|
130176
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
130168
130177
|
return LogLevelLabel.DEBUG;
|
|
130169
|
-
}
|
|
130178
|
+
}
|
|
130179
|
+
if (logLevel >= LogLevel.INFO) {
|
|
130170
130180
|
return LogLevelLabel.INFO;
|
|
130171
|
-
}
|
|
130181
|
+
}
|
|
130182
|
+
if (logLevel >= LogLevel.WARN) {
|
|
130172
130183
|
return LogLevelLabel.WARN;
|
|
130173
|
-
}
|
|
130184
|
+
}
|
|
130185
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
130174
130186
|
return LogLevelLabel.ERROR;
|
|
130175
|
-
}
|
|
130187
|
+
}
|
|
130188
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
130176
130189
|
return LogLevelLabel.FATAL;
|
|
130177
|
-
}
|
|
130190
|
+
}
|
|
130191
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
130178
130192
|
return LogLevelLabel.SILENT;
|
|
130179
|
-
} else {
|
|
130180
|
-
return LogLevelLabel.INFO;
|
|
130181
130193
|
}
|
|
130194
|
+
return LogLevelLabel.INFO;
|
|
130182
130195
|
};
|
|
130183
130196
|
|
|
130184
130197
|
// packages/config-tools/src/env/get-env.ts
|
|
130185
130198
|
var getExtensionEnv = (extensionName) => {
|
|
130186
130199
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
130187
130200
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
130188
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
130189
|
-
|
|
130190
|
-
|
|
130191
|
-
|
|
130201
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130202
|
+
if (name) {
|
|
130203
|
+
ret[name] = process.env[key];
|
|
130204
|
+
}
|
|
130192
130205
|
return ret;
|
|
130193
130206
|
}, {});
|
|
130194
130207
|
};
|
|
130195
130208
|
var getConfigEnv = () => {
|
|
130196
|
-
const prefix =
|
|
130209
|
+
const prefix = "STORM_";
|
|
130197
130210
|
let config = {
|
|
130198
130211
|
name: process.env[`${prefix}NAME`],
|
|
130199
130212
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
@@ -130212,9 +130225,7 @@ var getConfigEnv = () => {
|
|
|
130212
130225
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
130213
130226
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
130214
130227
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
130215
|
-
ci: Boolean(
|
|
130216
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
130217
|
-
),
|
|
130228
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
130218
130229
|
colors: {
|
|
130219
130230
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
130220
130231
|
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
@@ -130227,9 +130238,7 @@ var getConfigEnv = () => {
|
|
|
130227
130238
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
130228
130239
|
branch: process.env[`${prefix}BRANCH`],
|
|
130229
130240
|
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
130230
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
130231
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
130232
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130241
|
+
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,
|
|
130233
130242
|
extensions: {}
|
|
130234
130243
|
};
|
|
130235
130244
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
@@ -130244,26 +130253,27 @@ var getConfigEnv = () => {
|
|
|
130244
130253
|
}
|
|
130245
130254
|
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
130246
130255
|
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
130247
|
-
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map(
|
|
130248
|
-
|
|
130249
|
-
|
|
130250
|
-
|
|
130256
|
+
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("");
|
|
130257
|
+
if (extensionName) {
|
|
130258
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
130259
|
+
}
|
|
130251
130260
|
return ret;
|
|
130252
130261
|
}, config);
|
|
130253
130262
|
};
|
|
130254
130263
|
|
|
130255
130264
|
// packages/config-tools/src/env/set-env.ts
|
|
130256
130265
|
var setExtensionEnv = (extensionName, extension) => {
|
|
130257
|
-
Object.keys(extension ?? {})
|
|
130266
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
130258
130267
|
if (extension[key]) {
|
|
130259
|
-
|
|
130268
|
+
const result = key?.replace(
|
|
130260
130269
|
/([A-Z])+/g,
|
|
130261
130270
|
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
130262
130271
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
130263
130272
|
let extensionKey;
|
|
130264
130273
|
if (result.length === 0) {
|
|
130265
130274
|
return;
|
|
130266
|
-
}
|
|
130275
|
+
}
|
|
130276
|
+
if (result.length === 1) {
|
|
130267
130277
|
extensionKey = result[0].toUpperCase();
|
|
130268
130278
|
} else {
|
|
130269
130279
|
extensionKey = result.reduce((ret, part) => {
|
|
@@ -130272,59 +130282,117 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
130272
130282
|
}
|
|
130273
130283
|
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
130274
130284
|
}
|
|
130275
|
-
}
|
|
130285
|
+
}
|
|
130276
130286
|
};
|
|
130277
130287
|
var setConfigEnv = (config) => {
|
|
130278
|
-
const prefix =
|
|
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
|
-
|
|
130318
|
-
|
|
130319
|
-
|
|
130320
|
-
|
|
130321
|
-
|
|
130322
|
-
)
|
|
130323
|
-
|
|
130324
|
-
|
|
130325
|
-
|
|
130288
|
+
const prefix = "STORM_";
|
|
130289
|
+
if (config.name) {
|
|
130290
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
130291
|
+
}
|
|
130292
|
+
if (config.namespace) {
|
|
130293
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
130294
|
+
}
|
|
130295
|
+
if (config.owner) {
|
|
130296
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
130297
|
+
}
|
|
130298
|
+
if (config.worker) {
|
|
130299
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
130300
|
+
}
|
|
130301
|
+
if (config.organization) {
|
|
130302
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
130303
|
+
}
|
|
130304
|
+
if (config.packageManager) {
|
|
130305
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
130306
|
+
}
|
|
130307
|
+
if (config.license) {
|
|
130308
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
130309
|
+
}
|
|
130310
|
+
if (config.homepage) {
|
|
130311
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
130312
|
+
}
|
|
130313
|
+
if (config.timezone) {
|
|
130314
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
130315
|
+
process.env.TZ = config.timezone;
|
|
130316
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
130317
|
+
}
|
|
130318
|
+
if (config.locale) {
|
|
130319
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
130320
|
+
process.env.LOCALE = config.locale;
|
|
130321
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
130322
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
130323
|
+
}
|
|
130324
|
+
if (config.configFile) {
|
|
130325
|
+
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
130326
|
+
}
|
|
130327
|
+
if (config.workspaceRoot) {
|
|
130328
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
|
|
130329
|
+
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
|
|
130330
|
+
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
|
|
130331
|
+
}
|
|
130332
|
+
if (config.packageDirectory) {
|
|
130333
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
|
|
130334
|
+
}
|
|
130335
|
+
if (config.buildDirectory) {
|
|
130336
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
130337
|
+
}
|
|
130338
|
+
if (config.runtimeVersion) {
|
|
130339
|
+
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
130340
|
+
}
|
|
130341
|
+
if (config.runtimeDirectory) {
|
|
130342
|
+
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
|
|
130343
|
+
}
|
|
130344
|
+
if (config.env) {
|
|
130345
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
130346
|
+
process.env.NODE_ENV = config.env;
|
|
130347
|
+
process.env.ENVIRONMENT = config.env;
|
|
130348
|
+
}
|
|
130349
|
+
if (config.ci) {
|
|
130350
|
+
process.env[`${prefix}CI`] = String(config.ci);
|
|
130351
|
+
process.env.CI = String(config.ci);
|
|
130352
|
+
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
130353
|
+
}
|
|
130354
|
+
if (config.colors.primary) {
|
|
130355
|
+
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
130356
|
+
}
|
|
130357
|
+
if (config.colors.background) {
|
|
130358
|
+
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
|
|
130359
|
+
}
|
|
130360
|
+
if (config.colors.success) {
|
|
130361
|
+
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
130362
|
+
}
|
|
130363
|
+
if (config.colors.info) {
|
|
130364
|
+
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
130365
|
+
}
|
|
130366
|
+
if (config.colors.warning) {
|
|
130367
|
+
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
130368
|
+
}
|
|
130369
|
+
if (config.colors.error) {
|
|
130370
|
+
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
130371
|
+
}
|
|
130372
|
+
if (config.colors.fatal) {
|
|
130373
|
+
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
130374
|
+
}
|
|
130375
|
+
if (config.repository) {
|
|
130376
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
130377
|
+
}
|
|
130378
|
+
if (config.branch) {
|
|
130379
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
130380
|
+
}
|
|
130381
|
+
if (config.preMajor) {
|
|
130382
|
+
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
|
|
130383
|
+
}
|
|
130384
|
+
if (config.logLevel) {
|
|
130385
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
130386
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
130387
|
+
process.env.NX_VERBOSE_LOGGING = String(
|
|
130388
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
130389
|
+
);
|
|
130390
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
130391
|
+
}
|
|
130392
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
130393
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
130326
130394
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
130327
|
-
}
|
|
130395
|
+
}
|
|
130328
130396
|
};
|
|
130329
130397
|
|
|
130330
130398
|
// node_modules/.pnpm/esbuild-plugin-define@0.4.0_esbuild@0.19.5/node_modules/esbuild-plugin-define/dist/mjs/utils.js
|
|
@@ -136641,10 +136709,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
136641
136709
|
};
|
|
136642
136710
|
|
|
136643
136711
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
136644
|
-
var withRunExecutor = (name, executorFn, executorOptions
|
|
136645
|
-
skipReadingConfig: false,
|
|
136646
|
-
hooks: {}
|
|
136647
|
-
}) => async (_options, context) => {
|
|
136712
|
+
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
136648
136713
|
const startTime = Date.now();
|
|
136649
136714
|
let options = _options;
|
|
136650
136715
|
try {
|
|
@@ -136662,15 +136727,24 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
136662
136727
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
136663
136728
|
let config;
|
|
136664
136729
|
if (!executorOptions.skipReadingConfig) {
|
|
136730
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.info(
|
|
136731
|
+
chalk.dim(`Loading the Storm config...
|
|
136732
|
+
- workspaceRoot: ${workspaceRoot}
|
|
136733
|
+
- projectRoot: ${projectRoot}
|
|
136734
|
+
- sourceRoot: ${sourceRoot}
|
|
136735
|
+
- projectName: ${projectName}
|
|
136736
|
+
`)
|
|
136737
|
+
);
|
|
136665
136738
|
config = getDefaultConfig({
|
|
136666
136739
|
...await getConfigFile(),
|
|
136667
136740
|
...getConfigEnv()
|
|
136668
136741
|
});
|
|
136669
136742
|
setConfigEnv(config);
|
|
136670
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.
|
|
136743
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
136671
136744
|
chalk.dim(
|
|
136672
136745
|
`Loaded Storm config into env:
|
|
136673
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
136746
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
136747
|
+
`
|
|
136674
136748
|
)
|
|
136675
136749
|
);
|
|
136676
136750
|
}
|