@storm-software/workspace-tools 1.49.25 → 1.49.26

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.49.26 (2024-01-26)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Moved the tsup logging to separate function ([d3c78bb6](https://github.com/storm-software/storm-ops/commit/d3c78bb6))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
1
13
  ## 1.49.25 (2024-01-26)
2
14
 
3
15
 
package/index.js CHANGED
@@ -132882,16 +132882,9 @@ ${options.banner}
132882
132882
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
132883
132883
  )
132884
132884
  );
132885
- writeDebug(
132886
- config,
132887
- `\u2699\uFE0F Build options:
132888
- ${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
132889
- (key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
132890
- ).join("\n") : "<function>"}
132891
- `
132892
- );
132893
132885
  if (_isFunction2(tsupConfig)) {
132894
- await build(await Promise.resolve(tsupConfig({})), config);
132886
+ const tsupOptions = await Promise.resolve(tsupConfig({}));
132887
+ await build(tsupOptions, config);
132895
132888
  } else {
132896
132889
  await build(tsupConfig, config);
132897
132890
  }
@@ -132936,9 +132929,16 @@ var build = async (options, config) => {
132936
132929
  if (Array.isArray(options)) {
132937
132930
  await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
132938
132931
  } else {
132939
- if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
132940
- console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
132941
- }
132932
+ writeDebug(
132933
+ config,
132934
+ `
132935
+
132936
+ \u2699\uFE0F Tsup Build options:
132937
+ ${_isFunction2(options) ? Object.keys(options).map(
132938
+ (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
132939
+ ).join("\n") : "<function>"}
132940
+ `
132941
+ );
132942
132942
  await (0, import_tsup.build)(options);
132943
132943
  }
132944
132944
  };