@storm-software/workspace-tools 1.168.0 → 1.170.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 +26 -0
- package/README.md +1 -1
- package/declarations.d.ts +8 -0
- package/index.js +3143 -260
- package/meta.json +1 -1
- package/package.json +7 -7
- package/src/base/base-executor.js +23 -16
- package/src/base/base-generator.js +23 -16
- package/src/base/index.js +123 -116
- package/src/base/typescript-library-generator.js +100 -100
- package/src/executors/cargo-build/executor.js +23 -16
- package/src/executors/cargo-check/executor.js +23 -16
- package/src/executors/cargo-clippy/executor.js +23 -16
- package/src/executors/cargo-doc/executor.js +23 -16
- package/src/executors/cargo-format/executor.js +23 -16
- package/src/executors/clean-package/executor.js +23 -16
- package/src/executors/rolldown/executor.js +23 -16
- package/src/executors/rollup/executor.js +134 -115
- package/src/executors/size-limit/executor.js +23 -16
- package/src/executors/tsup/executor.js +23 -16
- package/src/executors/tsup-browser/executor.js +23 -16
- package/src/executors/tsup-neutral/executor.js +23 -16
- package/src/executors/tsup-node/executor.js +23 -16
- package/src/executors/typia/executor.js +23 -16
- package/src/executors/unbuild/executor.js +23 -16
- package/src/generators/browser-library/generator.js +123 -116
- package/src/generators/config-schema/generator.js +23 -16
- package/src/generators/neutral-library/generator.js +123 -116
- package/src/generators/node-library/generator.js +123 -116
- package/src/generators/preset/generator.js +23 -16
- package/src/generators/release-version/generator.js +31 -24
- package/src/plugins/rust/index.js +13 -0
- package/src/plugins/typescript/index.js +13 -0
- package/src/utils/index.js +30 -16
- package/src/utils/project-tags.d.ts +8 -1
- package/src/utils/project-tags.js +7 -0
|
@@ -67063,7 +67063,8 @@ var init_schema = __esm({
|
|
|
67063
67063
|
github: RegistryUrlConfigSchema,
|
|
67064
67064
|
npm: RegistryUrlConfigSchema,
|
|
67065
67065
|
cargo: RegistryUrlConfigSchema,
|
|
67066
|
-
cyclone: RegistryUrlConfigSchema
|
|
67066
|
+
cyclone: RegistryUrlConfigSchema,
|
|
67067
|
+
container: RegistryUrlConfigSchema
|
|
67067
67068
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
67068
67069
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67069
67070
|
MultiThemeColorConfigSchema
|
|
@@ -67373,7 +67374,7 @@ var init_logger = __esm({
|
|
|
67373
67374
|
init_get_default_config();
|
|
67374
67375
|
init_get_log_level();
|
|
67375
67376
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67376
|
-
|
|
67377
|
+
const _chalk = getChalk();
|
|
67377
67378
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
67378
67379
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
67379
67380
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -67622,10 +67623,9 @@ var init_get_config_file = __esm({
|
|
|
67622
67623
|
};
|
|
67623
67624
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
67624
67625
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67625
|
-
|
|
67626
|
-
|
|
67627
|
-
|
|
67628
|
-
);
|
|
67626
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
67627
|
+
let config = result.config;
|
|
67628
|
+
const configFile = result.configFile;
|
|
67629
67629
|
if (config && Object.keys(config).length > 0) {
|
|
67630
67630
|
writeTrace(
|
|
67631
67631
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -67640,15 +67640,15 @@ var init_get_config_file = __esm({
|
|
|
67640
67640
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
67641
67641
|
)
|
|
67642
67642
|
);
|
|
67643
|
-
for (const
|
|
67644
|
-
if (
|
|
67643
|
+
for (const result2 of results) {
|
|
67644
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67645
67645
|
writeTrace(
|
|
67646
|
-
`Found additional configuration file "${
|
|
67646
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
67647
67647
|
{
|
|
67648
67648
|
logLevel: "all"
|
|
67649
67649
|
}
|
|
67650
67650
|
);
|
|
67651
|
-
config = (0, import_deepmerge.default)(
|
|
67651
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
67652
67652
|
}
|
|
67653
67653
|
}
|
|
67654
67654
|
}
|
|
@@ -67730,7 +67730,8 @@ var init_get_env = __esm({
|
|
|
67730
67730
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
67731
67731
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
67732
67732
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
67733
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
67733
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
67734
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
67734
67735
|
},
|
|
67735
67736
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
67736
67737
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -67989,6 +67990,11 @@ var init_set_env = __esm({
|
|
|
67989
67990
|
config.registry.cyclone
|
|
67990
67991
|
);
|
|
67991
67992
|
}
|
|
67993
|
+
if (config.registry.container) {
|
|
67994
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
67995
|
+
config.registry.cyclone
|
|
67996
|
+
);
|
|
67997
|
+
}
|
|
67992
67998
|
}
|
|
67993
67999
|
if (config.logLevel) {
|
|
67994
68000
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -68161,7 +68167,7 @@ var init_create_storm_config = __esm({
|
|
|
68161
68167
|
if (!_workspaceRoot) {
|
|
68162
68168
|
_workspaceRoot = findWorkspaceRoot();
|
|
68163
68169
|
}
|
|
68164
|
-
|
|
68170
|
+
const configFile = await getConfigFile(
|
|
68165
68171
|
_workspaceRoot
|
|
68166
68172
|
);
|
|
68167
68173
|
if (!configFile) {
|
|
@@ -68185,10 +68191,11 @@ var init_create_storm_config = __esm({
|
|
|
68185
68191
|
_workspaceRoot
|
|
68186
68192
|
);
|
|
68187
68193
|
setConfigEnv(config);
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68194
|
+
writeTrace(
|
|
68195
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68196
|
+
${formatLogMessage(config)}`,
|
|
68197
|
+
config
|
|
68198
|
+
);
|
|
68192
68199
|
return config;
|
|
68193
68200
|
};
|
|
68194
68201
|
}
|
|
@@ -1856,9 +1856,9 @@ var require_semver2 = __commonJS({
|
|
|
1856
1856
|
}
|
|
1857
1857
|
});
|
|
1858
1858
|
|
|
1859
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
1859
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/package.js
|
|
1860
1860
|
var require_package = __commonJS({
|
|
1861
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
1861
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/package.js"(exports2) {
|
|
1862
1862
|
"use strict";
|
|
1863
1863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
1864
1864
|
exports2.Package = void 0;
|
|
@@ -4091,9 +4091,9 @@ var require_npa = __commonJS({
|
|
|
4091
4091
|
}
|
|
4092
4092
|
});
|
|
4093
4093
|
|
|
4094
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
4094
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js
|
|
4095
4095
|
var require_resolve_version_spec = __commonJS({
|
|
4096
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
4096
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-version-spec.js"(exports2) {
|
|
4097
4097
|
"use strict";
|
|
4098
4098
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4099
4099
|
exports2.resolveVersionSpec = resolveVersionSpec;
|
|
@@ -4119,9 +4119,9 @@ var require_resolve_version_spec = __commonJS({
|
|
|
4119
4119
|
}
|
|
4120
4120
|
});
|
|
4121
4121
|
|
|
4122
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
4122
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js
|
|
4123
4123
|
var require_resolve_local_package_dependencies = __commonJS({
|
|
4124
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
4124
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/resolve-local-package-dependencies.js"(exports2) {
|
|
4125
4125
|
"use strict";
|
|
4126
4126
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4127
4127
|
exports2.resolveLocalPackageDependencies = resolveLocalPackageDependencies2;
|
|
@@ -4189,9 +4189,9 @@ var require_resolve_local_package_dependencies = __commonJS({
|
|
|
4189
4189
|
}
|
|
4190
4190
|
});
|
|
4191
4191
|
|
|
4192
|
-
// node_modules/.pnpm/@nx+js@19.6.
|
|
4192
|
+
// node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js
|
|
4193
4193
|
var require_update_lock_file = __commonJS({
|
|
4194
|
-
"node_modules/.pnpm/@nx+js@19.6.
|
|
4194
|
+
"node_modules/.pnpm/@nx+js@19.6.4_@babel+traverse@7.24.7_@swc-node+register@1.9.2_@swc+core@1.5.29_@swc+helpers@0_7l73chmmusnidvmsvbzhxxqli4/node_modules/@nx/js/src/generators/release-version/utils/update-lock-file.js"(exports2) {
|
|
4195
4195
|
"use strict";
|
|
4196
4196
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4197
4197
|
exports2.updateLockFile = updateLockFile2;
|
|
@@ -71323,7 +71323,8 @@ var init_schema = __esm({
|
|
|
71323
71323
|
github: RegistryUrlConfigSchema,
|
|
71324
71324
|
npm: RegistryUrlConfigSchema,
|
|
71325
71325
|
cargo: RegistryUrlConfigSchema,
|
|
71326
|
-
cyclone: RegistryUrlConfigSchema
|
|
71326
|
+
cyclone: RegistryUrlConfigSchema,
|
|
71327
|
+
container: RegistryUrlConfigSchema
|
|
71327
71328
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
71328
71329
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
71329
71330
|
MultiThemeColorConfigSchema
|
|
@@ -71633,7 +71634,7 @@ var init_logger = __esm({
|
|
|
71633
71634
|
init_get_default_config();
|
|
71634
71635
|
init_get_log_level();
|
|
71635
71636
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
71636
|
-
|
|
71637
|
+
const _chalk = getChalk();
|
|
71637
71638
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
71638
71639
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
71639
71640
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -71882,10 +71883,9 @@ var init_get_config_file = __esm({
|
|
|
71882
71883
|
};
|
|
71883
71884
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
71884
71885
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
71885
|
-
|
|
71886
|
-
|
|
71887
|
-
|
|
71888
|
-
);
|
|
71886
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
71887
|
+
let config = result.config;
|
|
71888
|
+
const configFile = result.configFile;
|
|
71889
71889
|
if (config && Object.keys(config).length > 0) {
|
|
71890
71890
|
writeTrace(
|
|
71891
71891
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -71900,15 +71900,15 @@ var init_get_config_file = __esm({
|
|
|
71900
71900
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
71901
71901
|
)
|
|
71902
71902
|
);
|
|
71903
|
-
for (const
|
|
71904
|
-
if (
|
|
71903
|
+
for (const result2 of results) {
|
|
71904
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
71905
71905
|
writeTrace(
|
|
71906
|
-
`Found additional configuration file "${
|
|
71906
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
71907
71907
|
{
|
|
71908
71908
|
logLevel: "all"
|
|
71909
71909
|
}
|
|
71910
71910
|
);
|
|
71911
|
-
config = (0, import_deepmerge.default)(
|
|
71911
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
71912
71912
|
}
|
|
71913
71913
|
}
|
|
71914
71914
|
}
|
|
@@ -71990,7 +71990,8 @@ var init_get_env = __esm({
|
|
|
71990
71990
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
71991
71991
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
71992
71992
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
71993
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
71993
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
71994
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
71994
71995
|
},
|
|
71995
71996
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
71996
71997
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -72249,6 +72250,11 @@ var init_set_env = __esm({
|
|
|
72249
72250
|
config.registry.cyclone
|
|
72250
72251
|
);
|
|
72251
72252
|
}
|
|
72253
|
+
if (config.registry.container) {
|
|
72254
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
72255
|
+
config.registry.cyclone
|
|
72256
|
+
);
|
|
72257
|
+
}
|
|
72252
72258
|
}
|
|
72253
72259
|
if (config.logLevel) {
|
|
72254
72260
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -72421,7 +72427,7 @@ var init_create_storm_config = __esm({
|
|
|
72421
72427
|
if (!_workspaceRoot) {
|
|
72422
72428
|
_workspaceRoot = findWorkspaceRoot();
|
|
72423
72429
|
}
|
|
72424
|
-
|
|
72430
|
+
const configFile = await getConfigFile(
|
|
72425
72431
|
_workspaceRoot
|
|
72426
72432
|
);
|
|
72427
72433
|
if (!configFile) {
|
|
@@ -72445,10 +72451,11 @@ var init_create_storm_config = __esm({
|
|
|
72445
72451
|
_workspaceRoot
|
|
72446
72452
|
);
|
|
72447
72453
|
setConfigEnv(config);
|
|
72448
|
-
|
|
72449
|
-
|
|
72450
|
-
|
|
72451
|
-
|
|
72454
|
+
writeTrace(
|
|
72455
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
72456
|
+
${formatLogMessage(config)}`,
|
|
72457
|
+
config
|
|
72458
|
+
);
|
|
72452
72459
|
return config;
|
|
72453
72460
|
};
|
|
72454
72461
|
}
|
|
@@ -99,6 +99,13 @@ var ProjectTagConstants = {
|
|
|
99
99
|
},
|
|
100
100
|
Provider: {
|
|
101
101
|
TAG_ID: "provider"
|
|
102
|
+
},
|
|
103
|
+
Registry: {
|
|
104
|
+
TAG_ID: "registry",
|
|
105
|
+
CARGO: "cargo",
|
|
106
|
+
NPM: "npm",
|
|
107
|
+
CONTAINER: "container",
|
|
108
|
+
CYCLONE: "cyclone"
|
|
102
109
|
}
|
|
103
110
|
};
|
|
104
111
|
var formatProjectTag = (variant, value) => {
|
|
@@ -332,6 +339,12 @@ var createNodes = [
|
|
|
332
339
|
};
|
|
333
340
|
}
|
|
334
341
|
if (cargoPackage.publish === null || cargoPackage.publish === void 0 || cargoPackage.publish === true || Array.isArray(cargoPackage.publish) && cargoPackage.publish.length > 0) {
|
|
342
|
+
addProjectTag(
|
|
343
|
+
project,
|
|
344
|
+
ProjectTagConstants.Registry.TAG_ID,
|
|
345
|
+
ProjectTagConstants.Registry.CARGO,
|
|
346
|
+
{ overwrite: true }
|
|
347
|
+
);
|
|
335
348
|
project.targets["nx-release-publish"] = {
|
|
336
349
|
cache: true,
|
|
337
350
|
inputs: [
|
|
@@ -49,6 +49,13 @@ var ProjectTagConstants = {
|
|
|
49
49
|
},
|
|
50
50
|
Provider: {
|
|
51
51
|
TAG_ID: "provider"
|
|
52
|
+
},
|
|
53
|
+
Registry: {
|
|
54
|
+
TAG_ID: "registry",
|
|
55
|
+
CARGO: "cargo",
|
|
56
|
+
NPM: "npm",
|
|
57
|
+
CONTAINER: "container",
|
|
58
|
+
CYCLONE: "cyclone"
|
|
52
59
|
}
|
|
53
60
|
};
|
|
54
61
|
var formatProjectTag = (variant, value) => {
|
|
@@ -247,6 +254,12 @@ var createNodes = [
|
|
|
247
254
|
};
|
|
248
255
|
const isPrivate = packageJson.private ?? false;
|
|
249
256
|
if (!isPrivate) {
|
|
257
|
+
addProjectTag(
|
|
258
|
+
project,
|
|
259
|
+
ProjectTagConstants.Registry.TAG_ID,
|
|
260
|
+
ProjectTagConstants.Registry.NPM,
|
|
261
|
+
{ overwrite: true }
|
|
262
|
+
);
|
|
250
263
|
targets["nx-release-publish"] = {
|
|
251
264
|
cache: true,
|
|
252
265
|
inputs: [
|
package/src/utils/index.js
CHANGED
|
@@ -67063,7 +67063,8 @@ var init_schema = __esm({
|
|
|
67063
67063
|
github: RegistryUrlConfigSchema,
|
|
67064
67064
|
npm: RegistryUrlConfigSchema,
|
|
67065
67065
|
cargo: RegistryUrlConfigSchema,
|
|
67066
|
-
cyclone: RegistryUrlConfigSchema
|
|
67066
|
+
cyclone: RegistryUrlConfigSchema,
|
|
67067
|
+
container: RegistryUrlConfigSchema
|
|
67067
67068
|
}).default({}).describe("A list of remote registry URLs used by Storm Software");
|
|
67068
67069
|
ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67069
67070
|
MultiThemeColorConfigSchema
|
|
@@ -67373,7 +67374,7 @@ var init_logger = __esm({
|
|
|
67373
67374
|
init_get_default_config();
|
|
67374
67375
|
init_get_log_level();
|
|
67375
67376
|
getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
67376
|
-
|
|
67377
|
+
const _chalk = getChalk();
|
|
67377
67378
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
67378
67379
|
const configLogLevel = config.logLevel ?? process.env?.STORM_LOG_LEVEL ?? LogLevelLabel.INFO;
|
|
67379
67380
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -67622,10 +67623,9 @@ var init_get_config_file = __esm({
|
|
|
67622
67623
|
};
|
|
67623
67624
|
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
67624
67625
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
67625
|
-
|
|
67626
|
-
|
|
67627
|
-
|
|
67628
|
-
);
|
|
67626
|
+
const result = await getConfigFileByName("storm", workspacePath);
|
|
67627
|
+
let config = result.config;
|
|
67628
|
+
const configFile = result.configFile;
|
|
67629
67629
|
if (config && Object.keys(config).length > 0) {
|
|
67630
67630
|
writeTrace(
|
|
67631
67631
|
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
@@ -67640,15 +67640,15 @@ var init_get_config_file = __esm({
|
|
|
67640
67640
|
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
67641
67641
|
)
|
|
67642
67642
|
);
|
|
67643
|
-
for (const
|
|
67644
|
-
if (
|
|
67643
|
+
for (const result2 of results) {
|
|
67644
|
+
if (result2?.config && Object.keys(result2.config).length > 0) {
|
|
67645
67645
|
writeTrace(
|
|
67646
|
-
`Found additional configuration file "${
|
|
67646
|
+
`Found additional configuration file "${result2.configFile}" at "${workspacePath}"`,
|
|
67647
67647
|
{
|
|
67648
67648
|
logLevel: "all"
|
|
67649
67649
|
}
|
|
67650
67650
|
);
|
|
67651
|
-
config = (0, import_deepmerge.default)(
|
|
67651
|
+
config = (0, import_deepmerge.default)(result2.config ?? {}, config ?? {});
|
|
67652
67652
|
}
|
|
67653
67653
|
}
|
|
67654
67654
|
}
|
|
@@ -67730,7 +67730,8 @@ var init_get_env = __esm({
|
|
|
67730
67730
|
github: process.env[`${prefix}REGISTRY_GITHUB`],
|
|
67731
67731
|
npm: process.env[`${prefix}REGISTRY_NPM`],
|
|
67732
67732
|
cargo: process.env[`${prefix}REGISTRY_CARGO`],
|
|
67733
|
-
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`]
|
|
67733
|
+
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`],
|
|
67734
|
+
container: process.env[`${prefix}REGISTRY_CONTAINER`]
|
|
67734
67735
|
},
|
|
67735
67736
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
67736
67737
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
@@ -67989,6 +67990,11 @@ var init_set_env = __esm({
|
|
|
67989
67990
|
config.registry.cyclone
|
|
67990
67991
|
);
|
|
67991
67992
|
}
|
|
67993
|
+
if (config.registry.container) {
|
|
67994
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
67995
|
+
config.registry.cyclone
|
|
67996
|
+
);
|
|
67997
|
+
}
|
|
67992
67998
|
}
|
|
67993
67999
|
if (config.logLevel) {
|
|
67994
68000
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
@@ -68161,7 +68167,7 @@ var init_create_storm_config = __esm({
|
|
|
68161
68167
|
if (!_workspaceRoot) {
|
|
68162
68168
|
_workspaceRoot = findWorkspaceRoot();
|
|
68163
68169
|
}
|
|
68164
|
-
|
|
68170
|
+
const configFile = await getConfigFile(
|
|
68165
68171
|
_workspaceRoot
|
|
68166
68172
|
);
|
|
68167
68173
|
if (!configFile) {
|
|
@@ -68185,10 +68191,11 @@ var init_create_storm_config = __esm({
|
|
|
68185
68191
|
_workspaceRoot
|
|
68186
68192
|
);
|
|
68187
68193
|
setConfigEnv(config);
|
|
68188
|
-
|
|
68189
|
-
|
|
68190
|
-
|
|
68191
|
-
|
|
68194
|
+
writeTrace(
|
|
68195
|
+
`\u2699\uFE0F Using Storm configuration:
|
|
68196
|
+
${formatLogMessage(config)}`,
|
|
68197
|
+
config
|
|
68198
|
+
);
|
|
68192
68199
|
return config;
|
|
68193
68200
|
};
|
|
68194
68201
|
}
|
|
@@ -299381,6 +299388,13 @@ var ProjectTagConstants = {
|
|
|
299381
299388
|
},
|
|
299382
299389
|
Provider: {
|
|
299383
299390
|
TAG_ID: "provider"
|
|
299391
|
+
},
|
|
299392
|
+
Registry: {
|
|
299393
|
+
TAG_ID: "registry",
|
|
299394
|
+
CARGO: "cargo",
|
|
299395
|
+
NPM: "npm",
|
|
299396
|
+
CONTAINER: "container",
|
|
299397
|
+
CYCLONE: "cyclone"
|
|
299384
299398
|
}
|
|
299385
299399
|
};
|
|
299386
299400
|
var formatProjectTag = (variant, value2) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProjectConfiguration } from "@nx/devkit";
|
|
2
|
-
import { ProjectTagDistStyleValue, ProjectTagLanguageValue, ProjectTagTypeValue, ProjectTagVariant } from "../../declarations.d";
|
|
2
|
+
import { ProjectTagDistStyleValue, ProjectTagLanguageValue, ProjectTagRegistryValue, ProjectTagTypeValue, ProjectTagVariant } from "../../declarations.d";
|
|
3
3
|
export declare const ProjectTagConstants: {
|
|
4
4
|
readonly Language: {
|
|
5
5
|
readonly TAG_ID: ProjectTagVariant;
|
|
@@ -19,6 +19,13 @@ export declare const ProjectTagConstants: {
|
|
|
19
19
|
readonly Provider: {
|
|
20
20
|
readonly TAG_ID: ProjectTagVariant;
|
|
21
21
|
};
|
|
22
|
+
readonly Registry: {
|
|
23
|
+
readonly TAG_ID: ProjectTagVariant;
|
|
24
|
+
readonly CARGO: ProjectTagRegistryValue;
|
|
25
|
+
readonly NPM: ProjectTagRegistryValue;
|
|
26
|
+
readonly CONTAINER: ProjectTagRegistryValue;
|
|
27
|
+
readonly CYCLONE: ProjectTagRegistryValue;
|
|
28
|
+
};
|
|
22
29
|
};
|
|
23
30
|
export declare const formatProjectTag: (variant: ProjectTagVariant, value: string) => string;
|
|
24
31
|
export declare const hasProjectTag: (project: ProjectConfiguration, variant: ProjectTagVariant) => boolean;
|
|
@@ -46,6 +46,13 @@ var ProjectTagConstants = {
|
|
|
46
46
|
},
|
|
47
47
|
Provider: {
|
|
48
48
|
TAG_ID: "provider"
|
|
49
|
+
},
|
|
50
|
+
Registry: {
|
|
51
|
+
TAG_ID: "registry",
|
|
52
|
+
CARGO: "cargo",
|
|
53
|
+
NPM: "npm",
|
|
54
|
+
CONTAINER: "container",
|
|
55
|
+
CYCLONE: "cyclone"
|
|
49
56
|
}
|
|
50
57
|
};
|
|
51
58
|
var formatProjectTag = (variant, value) => {
|