@storm-software/workspace-tools 1.49.18 → 1.49.20

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.20 (2024-01-25)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Updated the `getConfig` option to use exclusively functions ([7e144ace](https://github.com/storm-software/storm-ops/commit/7e144ace))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.19 (2024-01-25)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Add build options logging to tsup processing ([2c1e2063](https://github.com/storm-software/storm-ops/commit/2c1e2063))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.18 (2024-01-25)
2
26
 
3
27
 
package/index.js CHANGED
@@ -132804,7 +132804,7 @@ var applyDefaultOptions = (options) => {
132804
132804
  options.skipNativeModulesPlugin ??= false;
132805
132805
  options.define ??= {};
132806
132806
  options.env ??= {};
132807
- options.getConfig ??= { dist: defaultConfig };
132807
+ options.getConfig ??= defaultConfig;
132808
132808
  return options;
132809
132809
  };
132810
132810
  var runTsupBuild = async (context, config, options) => {
@@ -132863,6 +132863,14 @@ ${options.banner}
132863
132863
  };
132864
132864
  if (options.getConfig) {
132865
132865
  writeInfo(config, "\u26A1 Running the Build process");
132866
+ writeDebug(
132867
+ config,
132868
+ `\u2699\uFE0F Build options:
132869
+ ${Object.keys(options).map(
132870
+ (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
132871
+ ).join("\n")}
132872
+ `
132873
+ );
132866
132874
  const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
132867
132875
  const tsupConfig = (0, import_tsup.defineConfig)(
132868
132876
  getConfigFns.map(
@@ -132922,6 +132930,13 @@ var build = async (options, config) => {
132922
132930
  await new Promise((r) => setTimeout(r, 100));
132923
132931
  }
132924
132932
  };
132933
+ var _isPrimitive = (value) => {
132934
+ try {
132935
+ return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
132936
+ } catch (e) {
132937
+ return false;
132938
+ }
132939
+ };
132925
132940
  var _isFunction = (value) => {
132926
132941
  try {
132927
132942
  return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
@@ -139204,7 +139219,7 @@ async function tsupExecutorFn(options, context, config) {
139204
139219
  config,
139205
139220
  `\u2699\uFE0F Executor options:
139206
139221
  ${Object.keys(options).map(
139207
- (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
139222
+ (key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
139208
139223
  ).join("\n")}
139209
139224
  `
139210
139225
  );
@@ -139548,7 +139563,7 @@ var executor_default = withRunExecutor("TypeScript Build using tsup", tsupExecut
139548
139563
  applyDefaultOptions
139549
139564
  }
139550
139565
  });
139551
- var _isPrimitive = (value) => {
139566
+ var _isPrimitive2 = (value) => {
139552
139567
  try {
139553
139568
  return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
139554
139569
  } catch (e) {
@@ -139665,9 +139680,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
139665
139680
  env: {
139666
139681
  ...process.env
139667
139682
  },
139668
- getConfig: {
139669
- dist: neutralConfig
139670
- }
139683
+ getConfig: neutralConfig
139671
139684
  },
139672
139685
  context,
139673
139686
  config
@@ -139784,7 +139797,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139784
139797
  return tsupExecutorFn(
139785
139798
  {
139786
139799
  ...options,
139787
- getConfig: { dist: nodeConfig },
139800
+ getConfig: nodeConfig,
139788
139801
  platform: "node",
139789
139802
  banner: getFileBanner(
139790
139803
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
@@ -139916,9 +139929,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
139916
139929
  env: {
139917
139930
  ...process.env
139918
139931
  },
139919
- getConfig: {
139920
- dist: browserConfig
139921
- }
139932
+ getConfig: browserConfig
139922
139933
  },
139923
139934
  context,
139924
139935
  config