@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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.42.3](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.42.2...workspace-tools-v1.42.3) (2024-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Resolved issue preventing neutral builds from running ([0939172](https://github.com/storm-software/storm-ops/commit/0939172f5e7cc9e0a940437cdf18d6cdf3766fb3))
|
|
7
|
+
|
|
8
|
+
## [1.42.2](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.42.1...workspace-tools-v1.42.2) (2024-01-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **git-tools:** Added dependency override for `request` package to prevent request forgery exposure ([1f42b96](https://github.com/storm-software/storm-ops/commit/1f42b96518e944a3b1e5a3e38dfc1c7dc1a7241f))
|
|
14
|
+
|
|
1
15
|
## [1.42.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.42.0...workspace-tools-v1.42.1) (2024-01-15)
|
|
2
16
|
|
|
3
17
|
|
package/config/nx.json
CHANGED
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"globalBuildAffectingConfig": [
|
|
25
25
|
"{workspaceRoot}/tsconfig.base.json",
|
|
26
26
|
"{workspaceRoot}/package.json",
|
|
27
|
-
"{workspaceRoot}/storm.json"
|
|
27
|
+
"{workspaceRoot}/storm.json",
|
|
28
|
+
"{workspaceRoot}/storm.config.js"
|
|
28
29
|
],
|
|
29
30
|
"globalNonBuildAffectingConfig": [
|
|
30
31
|
"{workspaceRoot}/**/biome.json",
|
|
@@ -84,9 +85,7 @@
|
|
|
84
85
|
"executor": "nx:run-commands",
|
|
85
86
|
"outputs": ["{options.outputFile}"],
|
|
86
87
|
"options": {
|
|
87
|
-
"
|
|
88
|
-
"npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}"
|
|
89
|
-
],
|
|
88
|
+
"command": "npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}",
|
|
90
89
|
"color": true
|
|
91
90
|
},
|
|
92
91
|
"inputs": ["default", "{workspaceRoot}/**/biome.json"]
|
package/index.js
CHANGED
|
@@ -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,
|
|
@@ -126396,7 +126396,8 @@ var LogLevel = {
|
|
|
126396
126396
|
WARN: 30,
|
|
126397
126397
|
INFO: 40,
|
|
126398
126398
|
DEBUG: 60,
|
|
126399
|
-
TRACE: 70
|
|
126399
|
+
TRACE: 70,
|
|
126400
|
+
ALL: 100
|
|
126400
126401
|
};
|
|
126401
126402
|
var LogLevelLabel = {
|
|
126402
126403
|
SILENT: "silent",
|
|
@@ -126405,7 +126406,8 @@ var LogLevelLabel = {
|
|
|
126405
126406
|
WARN: "warn",
|
|
126406
126407
|
INFO: "info",
|
|
126407
126408
|
DEBUG: "debug",
|
|
126408
|
-
TRACE: "trace"
|
|
126409
|
+
TRACE: "trace",
|
|
126410
|
+
ALL: "all"
|
|
126409
126411
|
};
|
|
126410
126412
|
|
|
126411
126413
|
// packages/config-tools/src/utilities/find-up.ts
|
|
@@ -126414,15 +126416,15 @@ var import_path = require("path");
|
|
|
126414
126416
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
126415
126417
|
var depth = 0;
|
|
126416
126418
|
function findFolderUp(startPath, endFileNames) {
|
|
126417
|
-
|
|
126418
|
-
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(
|
|
126419
|
-
return
|
|
126420
|
-
}
|
|
126421
|
-
|
|
126419
|
+
const _startPath = startPath ?? process.cwd();
|
|
126420
|
+
if (endFileNames.some((endFileName) => (0, import_fs.existsSync)((0, import_path.join)(_startPath, endFileName)))) {
|
|
126421
|
+
return _startPath;
|
|
126422
|
+
}
|
|
126423
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
126424
|
+
const parent = (0, import_path.join)(_startPath, "..");
|
|
126422
126425
|
return findFolderUp(parent, endFileNames);
|
|
126423
|
-
} else {
|
|
126424
|
-
return void 0;
|
|
126425
126426
|
}
|
|
126427
|
+
return void 0;
|
|
126426
126428
|
}
|
|
126427
126429
|
|
|
126428
126430
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
@@ -130079,17 +130081,13 @@ var StormConfigSchema = objectType({
|
|
|
130079
130081
|
license: stringType().trim().default("Apache License 2.0").describe("The root directory of the package"),
|
|
130080
130082
|
homepage: stringType().trim().url().default("https://stormsoftware.org").describe("The homepage of the workspace"),
|
|
130081
130083
|
branch: stringType().trim().default("main").describe("The branch of the workspace"),
|
|
130082
|
-
preMajor: booleanType().default(false).describe(
|
|
130083
|
-
"An indicator specifying if the package is still in it's pre-major version"
|
|
130084
|
-
),
|
|
130084
|
+
preMajor: booleanType().default(false).describe("An indicator specifying if the package is still in it's pre-major version"),
|
|
130085
130085
|
owner: stringType().trim().default("@storm-software/development").describe("The owner of the package"),
|
|
130086
130086
|
worker: stringType().trim().default("stormie-bot").describe(
|
|
130087
130087
|
"The worker of the package (this is the bot that will be used to perform various tasks)"
|
|
130088
130088
|
),
|
|
130089
130089
|
env: enumType(["development", "staging", "production"]).default("production").describe("The current runtime environment of the package"),
|
|
130090
|
-
ci: booleanType().default(true).describe(
|
|
130091
|
-
"An indicator specifying if the current environment is a CI environment"
|
|
130092
|
-
),
|
|
130090
|
+
ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
|
|
130093
130091
|
workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
|
|
130094
130092
|
packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
|
|
130095
130093
|
buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
|
|
@@ -130100,7 +130098,7 @@ var StormConfigSchema = objectType({
|
|
|
130100
130098
|
packageManager: enumType(["npm", "yarn", "pnpm", "bun"]).default("npm").describe("The package manager used by the repository"),
|
|
130101
130099
|
timezone: stringType().trim().default("America/New_York").describe("The default timezone of the workspace"),
|
|
130102
130100
|
locale: stringType().trim().default("en-US").describe("The default locale of the workspace"),
|
|
130103
|
-
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
|
|
130101
|
+
logLevel: enumType(["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]).default("debug").describe(
|
|
130104
130102
|
"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`)."
|
|
130105
130103
|
),
|
|
130106
130104
|
configFile: stringType().trim().nullable().default(null).describe(
|
|
@@ -130158,11 +130156,21 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
130158
130156
|
});
|
|
130159
130157
|
if (file) {
|
|
130160
130158
|
const packageJson = JSON.parse(file);
|
|
130161
|
-
|
|
130162
|
-
|
|
130163
|
-
|
|
130164
|
-
|
|
130165
|
-
|
|
130159
|
+
if (packageJson.name) {
|
|
130160
|
+
name = packageJson.name;
|
|
130161
|
+
}
|
|
130162
|
+
if (packageJson.namespace) {
|
|
130163
|
+
namespace = packageJson.namespace;
|
|
130164
|
+
}
|
|
130165
|
+
if (packageJson.repository?.url) {
|
|
130166
|
+
repository = packageJson.repository?.url;
|
|
130167
|
+
}
|
|
130168
|
+
if (packageJson.license) {
|
|
130169
|
+
license = packageJson.license;
|
|
130170
|
+
}
|
|
130171
|
+
if (packageJson.homepage) {
|
|
130172
|
+
homepage = packageJson.homepage;
|
|
130173
|
+
}
|
|
130166
130174
|
}
|
|
130167
130175
|
}
|
|
130168
130176
|
return StormConfigSchema.parse({
|
|
@@ -130205,36 +130213,41 @@ var getLogLevel = (label) => {
|
|
|
130205
130213
|
var getLogLevelLabel = (logLevel) => {
|
|
130206
130214
|
if (logLevel >= LogLevel.TRACE) {
|
|
130207
130215
|
return LogLevelLabel.TRACE;
|
|
130208
|
-
}
|
|
130216
|
+
}
|
|
130217
|
+
if (logLevel >= LogLevel.DEBUG) {
|
|
130209
130218
|
return LogLevelLabel.DEBUG;
|
|
130210
|
-
}
|
|
130219
|
+
}
|
|
130220
|
+
if (logLevel >= LogLevel.INFO) {
|
|
130211
130221
|
return LogLevelLabel.INFO;
|
|
130212
|
-
}
|
|
130222
|
+
}
|
|
130223
|
+
if (logLevel >= LogLevel.WARN) {
|
|
130213
130224
|
return LogLevelLabel.WARN;
|
|
130214
|
-
}
|
|
130225
|
+
}
|
|
130226
|
+
if (logLevel >= LogLevel.ERROR) {
|
|
130215
130227
|
return LogLevelLabel.ERROR;
|
|
130216
|
-
}
|
|
130228
|
+
}
|
|
130229
|
+
if (logLevel >= LogLevel.FATAL) {
|
|
130217
130230
|
return LogLevelLabel.FATAL;
|
|
130218
|
-
}
|
|
130231
|
+
}
|
|
130232
|
+
if (logLevel <= LogLevel.SILENT) {
|
|
130219
130233
|
return LogLevelLabel.SILENT;
|
|
130220
|
-
} else {
|
|
130221
|
-
return LogLevelLabel.INFO;
|
|
130222
130234
|
}
|
|
130235
|
+
return LogLevelLabel.INFO;
|
|
130223
130236
|
};
|
|
130224
130237
|
|
|
130225
130238
|
// packages/config-tools/src/env/get-env.ts
|
|
130226
130239
|
var getExtensionEnv = (extensionName) => {
|
|
130227
130240
|
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
130228
130241
|
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
130229
|
-
const name = key.replace(prefix, "").split("_").map(
|
|
130230
|
-
|
|
130231
|
-
|
|
130232
|
-
|
|
130242
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130243
|
+
if (name) {
|
|
130244
|
+
ret[name] = process.env[key];
|
|
130245
|
+
}
|
|
130233
130246
|
return ret;
|
|
130234
130247
|
}, {});
|
|
130235
130248
|
};
|
|
130236
130249
|
var getConfigEnv = () => {
|
|
130237
|
-
const prefix =
|
|
130250
|
+
const prefix = "STORM_";
|
|
130238
130251
|
let config = {
|
|
130239
130252
|
name: process.env[`${prefix}NAME`],
|
|
130240
130253
|
namespace: process.env[`${prefix}NAMESPACE`],
|
|
@@ -130253,9 +130266,7 @@ var getConfigEnv = () => {
|
|
|
130253
130266
|
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
130254
130267
|
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
130255
130268
|
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
130256
|
-
ci: Boolean(
|
|
130257
|
-
process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION
|
|
130258
|
-
),
|
|
130269
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
130259
130270
|
colors: {
|
|
130260
130271
|
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
130261
130272
|
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
@@ -130268,9 +130279,7 @@ var getConfigEnv = () => {
|
|
|
130268
130279
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
130269
130280
|
branch: process.env[`${prefix}BRANCH`],
|
|
130270
130281
|
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
130271
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
130272
|
-
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
130273
|
-
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130282
|
+
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,
|
|
130274
130283
|
extensions: {}
|
|
130275
130284
|
};
|
|
130276
130285
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
@@ -130285,26 +130294,27 @@ var getConfigEnv = () => {
|
|
|
130285
130294
|
}
|
|
130286
130295
|
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
130287
130296
|
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
130288
|
-
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map(
|
|
130289
|
-
|
|
130290
|
-
|
|
130291
|
-
|
|
130297
|
+
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("");
|
|
130298
|
+
if (extensionName) {
|
|
130299
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
130300
|
+
}
|
|
130292
130301
|
return ret;
|
|
130293
130302
|
}, config);
|
|
130294
130303
|
};
|
|
130295
130304
|
|
|
130296
130305
|
// packages/config-tools/src/env/set-env.ts
|
|
130297
130306
|
var setExtensionEnv = (extensionName, extension) => {
|
|
130298
|
-
Object.keys(extension ?? {})
|
|
130307
|
+
for (const key of Object.keys(extension ?? {})) {
|
|
130299
130308
|
if (extension[key]) {
|
|
130300
|
-
|
|
130309
|
+
const result = key?.replace(
|
|
130301
130310
|
/([A-Z])+/g,
|
|
130302
130311
|
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
|
|
130303
130312
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
130304
130313
|
let extensionKey;
|
|
130305
130314
|
if (result.length === 0) {
|
|
130306
130315
|
return;
|
|
130307
|
-
}
|
|
130316
|
+
}
|
|
130317
|
+
if (result.length === 1) {
|
|
130308
130318
|
extensionKey = result[0].toUpperCase();
|
|
130309
130319
|
} else {
|
|
130310
130320
|
extensionKey = result.reduce((ret, part) => {
|
|
@@ -130313,59 +130323,117 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
130313
130323
|
}
|
|
130314
130324
|
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
|
|
130315
130325
|
}
|
|
130316
|
-
}
|
|
130326
|
+
}
|
|
130317
130327
|
};
|
|
130318
130328
|
var setConfigEnv = (config) => {
|
|
130319
|
-
const prefix =
|
|
130320
|
-
|
|
130321
|
-
|
|
130322
|
-
|
|
130323
|
-
|
|
130324
|
-
|
|
130325
|
-
|
|
130326
|
-
|
|
130327
|
-
|
|
130328
|
-
|
|
130329
|
-
|
|
130330
|
-
|
|
130331
|
-
|
|
130332
|
-
|
|
130333
|
-
|
|
130334
|
-
|
|
130335
|
-
|
|
130336
|
-
|
|
130337
|
-
|
|
130338
|
-
|
|
130339
|
-
|
|
130340
|
-
|
|
130341
|
-
|
|
130342
|
-
|
|
130343
|
-
|
|
130344
|
-
|
|
130345
|
-
|
|
130346
|
-
|
|
130347
|
-
|
|
130348
|
-
|
|
130349
|
-
|
|
130350
|
-
|
|
130351
|
-
|
|
130352
|
-
|
|
130353
|
-
|
|
130354
|
-
|
|
130355
|
-
|
|
130356
|
-
|
|
130357
|
-
|
|
130358
|
-
|
|
130359
|
-
|
|
130360
|
-
|
|
130361
|
-
|
|
130362
|
-
|
|
130363
|
-
)
|
|
130364
|
-
|
|
130365
|
-
|
|
130366
|
-
|
|
130329
|
+
const prefix = "STORM_";
|
|
130330
|
+
if (config.name) {
|
|
130331
|
+
process.env[`${prefix}NAME`] = config.name;
|
|
130332
|
+
}
|
|
130333
|
+
if (config.namespace) {
|
|
130334
|
+
process.env[`${prefix}NAMESPACE`] = config.namespace;
|
|
130335
|
+
}
|
|
130336
|
+
if (config.owner) {
|
|
130337
|
+
process.env[`${prefix}OWNER`] = config.owner;
|
|
130338
|
+
}
|
|
130339
|
+
if (config.worker) {
|
|
130340
|
+
process.env[`${prefix}WORKER`] = config.worker;
|
|
130341
|
+
}
|
|
130342
|
+
if (config.organization) {
|
|
130343
|
+
process.env[`${prefix}ORGANIZATION`] = config.organization;
|
|
130344
|
+
}
|
|
130345
|
+
if (config.packageManager) {
|
|
130346
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager;
|
|
130347
|
+
}
|
|
130348
|
+
if (config.license) {
|
|
130349
|
+
process.env[`${prefix}LICENSE`] = config.license;
|
|
130350
|
+
}
|
|
130351
|
+
if (config.homepage) {
|
|
130352
|
+
process.env[`${prefix}HOMEPAGE`] = config.homepage;
|
|
130353
|
+
}
|
|
130354
|
+
if (config.timezone) {
|
|
130355
|
+
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
130356
|
+
process.env.TZ = config.timezone;
|
|
130357
|
+
process.env.DEFAULT_TIMEZONE = config.timezone;
|
|
130358
|
+
}
|
|
130359
|
+
if (config.locale) {
|
|
130360
|
+
process.env[`${prefix}LOCALE`] = config.locale;
|
|
130361
|
+
process.env.LOCALE = config.locale;
|
|
130362
|
+
process.env.DEFAULT_LOCALE = config.locale;
|
|
130363
|
+
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
130364
|
+
}
|
|
130365
|
+
if (config.configFile) {
|
|
130366
|
+
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
|
|
130367
|
+
}
|
|
130368
|
+
if (config.workspaceRoot) {
|
|
130369
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
|
|
130370
|
+
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
|
|
130371
|
+
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
|
|
130372
|
+
}
|
|
130373
|
+
if (config.packageDirectory) {
|
|
130374
|
+
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
|
|
130375
|
+
}
|
|
130376
|
+
if (config.buildDirectory) {
|
|
130377
|
+
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
|
|
130378
|
+
}
|
|
130379
|
+
if (config.runtimeVersion) {
|
|
130380
|
+
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
|
|
130381
|
+
}
|
|
130382
|
+
if (config.runtimeDirectory) {
|
|
130383
|
+
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
|
|
130384
|
+
}
|
|
130385
|
+
if (config.env) {
|
|
130386
|
+
process.env[`${prefix}ENV`] = config.env;
|
|
130387
|
+
process.env.NODE_ENV = config.env;
|
|
130388
|
+
process.env.ENVIRONMENT = config.env;
|
|
130389
|
+
}
|
|
130390
|
+
if (config.ci) {
|
|
130391
|
+
process.env[`${prefix}CI`] = String(config.ci);
|
|
130392
|
+
process.env.CI = String(config.ci);
|
|
130393
|
+
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
|
|
130394
|
+
}
|
|
130395
|
+
if (config.colors.primary) {
|
|
130396
|
+
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
|
|
130397
|
+
}
|
|
130398
|
+
if (config.colors.background) {
|
|
130399
|
+
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
|
|
130400
|
+
}
|
|
130401
|
+
if (config.colors.success) {
|
|
130402
|
+
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
|
|
130403
|
+
}
|
|
130404
|
+
if (config.colors.info) {
|
|
130405
|
+
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
|
|
130406
|
+
}
|
|
130407
|
+
if (config.colors.warning) {
|
|
130408
|
+
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
|
|
130409
|
+
}
|
|
130410
|
+
if (config.colors.error) {
|
|
130411
|
+
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
|
|
130412
|
+
}
|
|
130413
|
+
if (config.colors.fatal) {
|
|
130414
|
+
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
|
|
130415
|
+
}
|
|
130416
|
+
if (config.repository) {
|
|
130417
|
+
process.env[`${prefix}REPOSITORY`] = config.repository;
|
|
130418
|
+
}
|
|
130419
|
+
if (config.branch) {
|
|
130420
|
+
process.env[`${prefix}BRANCH`] = config.branch;
|
|
130421
|
+
}
|
|
130422
|
+
if (config.preMajor) {
|
|
130423
|
+
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
|
|
130424
|
+
}
|
|
130425
|
+
if (config.logLevel) {
|
|
130426
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
130427
|
+
process.env.LOG_LEVEL = String(config.logLevel);
|
|
130428
|
+
process.env.NX_VERBOSE_LOGGING = String(
|
|
130429
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
|
|
130430
|
+
);
|
|
130431
|
+
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
130432
|
+
}
|
|
130433
|
+
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
130434
|
+
for (const key of Object.keys(config.extensions ?? {})) {
|
|
130367
130435
|
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
|
|
130368
|
-
}
|
|
130436
|
+
}
|
|
130369
130437
|
};
|
|
130370
130438
|
|
|
130371
130439
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
@@ -130483,10 +130551,7 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
130483
130551
|
};
|
|
130484
130552
|
|
|
130485
130553
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
130486
|
-
var withRunExecutor = (name, executorFn, executorOptions
|
|
130487
|
-
skipReadingConfig: false,
|
|
130488
|
-
hooks: {}
|
|
130489
|
-
}) => async (_options, context) => {
|
|
130554
|
+
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
130490
130555
|
const startTime = Date.now();
|
|
130491
130556
|
let options = _options;
|
|
130492
130557
|
try {
|
|
@@ -130504,15 +130569,24 @@ var withRunExecutor = (name, executorFn, executorOptions = {
|
|
|
130504
130569
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
130505
130570
|
let config;
|
|
130506
130571
|
if (!executorOptions.skipReadingConfig) {
|
|
130572
|
+
getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.info(
|
|
130573
|
+
chalk.dim(`Loading the Storm config...
|
|
130574
|
+
- workspaceRoot: ${workspaceRoot}
|
|
130575
|
+
- projectRoot: ${projectRoot}
|
|
130576
|
+
- sourceRoot: ${sourceRoot}
|
|
130577
|
+
- projectName: ${projectName}
|
|
130578
|
+
`)
|
|
130579
|
+
);
|
|
130507
130580
|
config = getDefaultConfig({
|
|
130508
130581
|
...await getConfigFile(),
|
|
130509
130582
|
...getConfigEnv()
|
|
130510
130583
|
});
|
|
130511
130584
|
setConfigEnv(config);
|
|
130512
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.
|
|
130585
|
+
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
130513
130586
|
chalk.dim(
|
|
130514
130587
|
`Loaded Storm config into env:
|
|
130515
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
130588
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
130589
|
+
`
|
|
130516
130590
|
)
|
|
130517
130591
|
);
|
|
130518
130592
|
}
|
|
@@ -138080,7 +138154,8 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
138080
138154
|
...process.env
|
|
138081
138155
|
}
|
|
138082
138156
|
},
|
|
138083
|
-
context
|
|
138157
|
+
context,
|
|
138158
|
+
config
|
|
138084
138159
|
);
|
|
138085
138160
|
};
|
|
138086
138161
|
var applyDefaultOptions2 = (options) => {
|