@storm-software/workspace-tools 1.49.19 → 1.49.21

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.21 (2024-01-25)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Updates to method of providing `getConfig` parameter ([d4b95d86](https://github.com/storm-software/storm-ops/commit/d4b95d86))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.20 (2024-01-25)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Updated the `getConfig` option to use exclusively functions ([7e144ace](https://github.com/storm-software/storm-ops/commit/7e144ace))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.19 (2024-01-25)
2
26
 
3
27
 
package/index.js CHANGED
@@ -130121,7 +130121,7 @@ ${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">
130121
130121
  return (message) => {
130122
130122
  console.debug(
130123
130123
  `
130124
- ${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F6E0} Debug ")} ${chalk.hex(
130124
+ ${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F6E0} Debug ")} ${chalk.hex(
130125
130125
  config?.colors?.primary ? config.colors.primary : "#1fb2a6"
130126
130126
  )(message)}
130127
130127
  `
@@ -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) => {
@@ -132871,7 +132871,7 @@ ${options.banner}
132871
132871
  ).join("\n")}
132872
132872
  `
132873
132873
  );
132874
- const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
132874
+ const getConfigFns = [options.getConfig];
132875
132875
  const tsupConfig = (0, import_tsup.defineConfig)(
132876
132876
  getConfigFns.map(
132877
132877
  (getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
@@ -139407,7 +139407,7 @@ ${externalDependencies.map((dep) => {
139407
139407
  packageJson.dependencies[packageName] = "latest";
139408
139408
  }
139409
139409
  }
139410
- const distPaths = !options?.getConfig || _isFunction2(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
139410
+ const distPaths = ["dist/"];
139411
139411
  packageJson.type = "module";
139412
139412
  if (distPaths.length > 0) {
139413
139413
  packageJson.exports ??= {
@@ -139570,13 +139570,6 @@ var _isPrimitive2 = (value) => {
139570
139570
  return false;
139571
139571
  }
139572
139572
  };
139573
- var _isFunction2 = (value) => {
139574
- try {
139575
- return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
139576
- } catch (e) {
139577
- return false;
139578
- }
139579
- };
139580
139573
 
139581
139574
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
139582
139575
  var import_devkit5 = __toESM(require_devkit());
@@ -139680,9 +139673,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
139680
139673
  env: {
139681
139674
  ...process.env
139682
139675
  },
139683
- getConfig: {
139684
- dist: neutralConfig
139685
- }
139676
+ getConfig: neutralConfig
139686
139677
  },
139687
139678
  context,
139688
139679
  config
@@ -139799,7 +139790,6 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139799
139790
  return tsupExecutorFn(
139800
139791
  {
139801
139792
  ...options,
139802
- getConfig: { dist: nodeConfig },
139803
139793
  platform: "node",
139804
139794
  banner: getFileBanner(
139805
139795
  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)"
@@ -139809,7 +139799,8 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139809
139799
  },
139810
139800
  env: {
139811
139801
  ...process.env
139812
- }
139802
+ },
139803
+ getConfig: nodeConfig
139813
139804
  },
139814
139805
  context,
139815
139806
  config
@@ -139931,9 +139922,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
139931
139922
  env: {
139932
139923
  ...process.env
139933
139924
  },
139934
- getConfig: {
139935
- dist: browserConfig
139936
- }
139925
+ getConfig: browserConfig
139937
139926
  },
139938
139927
  context,
139939
139928
  config