@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/declarations.d.ts +8 -0
  4. package/index.js +3143 -260
  5. package/meta.json +1 -1
  6. package/package.json +7 -7
  7. package/src/base/base-executor.js +23 -16
  8. package/src/base/base-generator.js +23 -16
  9. package/src/base/index.js +123 -116
  10. package/src/base/typescript-library-generator.js +100 -100
  11. package/src/executors/cargo-build/executor.js +23 -16
  12. package/src/executors/cargo-check/executor.js +23 -16
  13. package/src/executors/cargo-clippy/executor.js +23 -16
  14. package/src/executors/cargo-doc/executor.js +23 -16
  15. package/src/executors/cargo-format/executor.js +23 -16
  16. package/src/executors/clean-package/executor.js +23 -16
  17. package/src/executors/rolldown/executor.js +23 -16
  18. package/src/executors/rollup/executor.js +134 -115
  19. package/src/executors/size-limit/executor.js +23 -16
  20. package/src/executors/tsup/executor.js +23 -16
  21. package/src/executors/tsup-browser/executor.js +23 -16
  22. package/src/executors/tsup-neutral/executor.js +23 -16
  23. package/src/executors/tsup-node/executor.js +23 -16
  24. package/src/executors/typia/executor.js +23 -16
  25. package/src/executors/unbuild/executor.js +23 -16
  26. package/src/generators/browser-library/generator.js +123 -116
  27. package/src/generators/config-schema/generator.js +23 -16
  28. package/src/generators/neutral-library/generator.js +123 -116
  29. package/src/generators/node-library/generator.js +123 -116
  30. package/src/generators/preset/generator.js +23 -16
  31. package/src/generators/release-version/generator.js +31 -24
  32. package/src/plugins/rust/index.js +13 -0
  33. package/src/plugins/typescript/index.js +13 -0
  34. package/src/utils/index.js +30 -16
  35. package/src/utils/project-tags.d.ts +8 -1
  36. 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
- let _chalk = getChalk();
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
- let { config, configFile } = await getConfigFileByName(
67626
- "storm",
67627
- workspacePath
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 result of results) {
67644
- if (result?.config && Object.keys(result.config).length > 0) {
67643
+ for (const result2 of results) {
67644
+ if (result2?.config && Object.keys(result2.config).length > 0) {
67645
67645
  writeTrace(
67646
- `Found additional configuration file "${result.configFile}" at "${workspacePath}"`,
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)(result.config ?? {}, config ?? {});
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
- let configFile = await getConfigFile(
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
- writeInfo(`\u2699\uFE0F Using Storm configuration:
68189
- ${formatLogMessage(config)}`, {
68190
- logLevel: "all"
68191
- });
68194
+ writeTrace(
68195
+ `\u2699\uFE0F Using Storm configuration:
68196
+ ${formatLogMessage(config)}`,
68197
+ config
68198
+ );
68192
68199
  return config;
68193
68200
  };
68194
68201
  }