@storm-software/workspace-tools 1.49.26 → 1.49.28

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.28 (2024-01-26)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Resolved issue with entry build parameter ([7c86ce4d](https://github.com/storm-software/storm-ops/commit/7c86ce4d))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.27 (2024-01-26)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Added logic to resolve get options functions ([64fc9374](https://github.com/storm-software/storm-ops/commit/64fc9374))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.26 (2024-01-26)
2
26
 
3
27
 
package/index.js CHANGED
@@ -132834,7 +132834,7 @@ var runTsupBuild = async (context, config, options) => {
132834
132834
  options.plugins.push(environmentPlugin(stormEnv));
132835
132835
  const getConfigOptions = {
132836
132836
  ...options,
132837
- main: context.entry,
132837
+ main: context.main,
132838
132838
  define: {
132839
132839
  __STORM_CONFIG: JSON.stringify(stormEnv)
132840
132840
  },
@@ -132850,7 +132850,7 @@ var runTsupBuild = async (context, config, options) => {
132850
132850
  {
132851
132851
  ...options,
132852
132852
  watch: false,
132853
- main: context.entry,
132853
+ main: context.main,
132854
132854
  transformers: []
132855
132855
  },
132856
132856
  config.workspaceRoot,
@@ -132871,8 +132871,7 @@ ${options.banner}
132871
132871
 
132872
132872
  */`
132873
132873
  } : void 0,
132874
- outputPath: options.outputPath,
132875
- entry: context.entry
132874
+ outputPath: options.outputPath
132876
132875
  };
132877
132876
  if (options.getConfig) {
132878
132877
  writeInfo(config, "\u26A1 Running the Build process");
@@ -132929,17 +132928,19 @@ var build = async (options, config) => {
132929
132928
  if (Array.isArray(options)) {
132930
132929
  await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
132931
132930
  } else {
132931
+ let tsupOptions = options;
132932
+ if (_isFunction2(tsupOptions)) {
132933
+ tsupOptions = await Promise.resolve(tsupOptions({}));
132934
+ }
132932
132935
  writeDebug(
132933
132936
  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])}`
132937
+ `\u2699\uFE0F Tsup Build options:
132938
+ ${_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
132939
+ (key) => `${key}: ${!tsupOptions[key] || _isPrimitive(tsupOptions[key]) ? tsupOptions[key] : _isFunction2(tsupOptions[key]) ? "<function>" : JSON.stringify(tsupOptions[key])}`
132939
132940
  ).join("\n") : "<function>"}
132940
132941
  `
132941
132942
  );
132942
- await (0, import_tsup.build)(options);
132943
+ await (0, import_tsup.build)(tsupOptions);
132943
132944
  }
132944
132945
  };
132945
132946
  var _isPrimitive = (value) => {
@@ -139549,7 +139550,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139549
139550
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
139550
139551
  return runTsupBuild(
139551
139552
  {
139552
- entry: entryPoint,
139553
+ main: entryPoint,
139553
139554
  projectRoot,
139554
139555
  projectName: context.projectName,
139555
139556
  sourceRoot