@storm-software/workspace-tools 1.49.24 → 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,27 @@
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
+
13
+ ## 1.49.25 (2024-01-26)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Moved the tsup config logging ([451d4fcc](https://github.com/storm-software/storm-ops/commit/451d4fcc))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.24 (2024-01-26)
2
26
 
3
27
 
package/index.js CHANGED
@@ -132876,14 +132876,6 @@ ${options.banner}
132876
132876
  };
132877
132877
  if (options.getConfig) {
132878
132878
  writeInfo(config, "\u26A1 Running the Build process");
132879
- writeDebug(
132880
- config,
132881
- `\u2699\uFE0F Build options:
132882
- ${Object.keys(options).map(
132883
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
132884
- ).join("\n")}
132885
- `
132886
- );
132887
132879
  const getConfigFns = [options.getConfig];
132888
132880
  const tsupConfig = (0, import_tsup.defineConfig)(
132889
132881
  getConfigFns.map(
@@ -132891,7 +132883,8 @@ ${options.banner}
132891
132883
  )
132892
132884
  );
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,11 +132929,17 @@ 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
- await new Promise((r) => setTimeout(r, 100));
132944
132943
  }
132945
132944
  };
132946
132945
  var _isPrimitive = (value) => {