@storm-software/workspace-tools 1.49.27 → 1.49.29

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.29 (2024-01-26)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Added `entry` options to the tsup build ([b8cb9249](https://github.com/storm-software/storm-ops/commit/b8cb9249))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.28 (2024-01-26)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Resolved issue with entry build parameter ([7c86ce4d](https://github.com/storm-software/storm-ops/commit/7c86ce4d))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.27 (2024-01-26)
2
26
 
3
27
 
package/index.js CHANGED
@@ -132737,7 +132737,7 @@ ${commentStart} ----------------------------------------------------------------
132737
132737
  };
132738
132738
 
132739
132739
  // packages/workspace-tools/src/utils/run-tsup-build.ts
132740
- var import_node_path5 = require("node:path");
132740
+ var import_node_path6 = require("node:path");
132741
132741
  var import_esbuild_decorators = __toESM(require_src2());
132742
132742
  var import_devkit3 = __toESM(require_devkit());
132743
132743
  var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
@@ -132787,6 +132787,17 @@ var environmentPlugin = (data) => ({
132787
132787
  // packages/workspace-tools/src/utils/run-tsup-build.ts
132788
132788
  var import_tsup = __toESM(require_dist6());
132789
132789
  var ts = __toESM(require("typescript"));
132790
+
132791
+ // packages/workspace-tools/src/utils/file-path-utils.ts
132792
+ var import_node_path5 = require("node:path");
132793
+ var removeExtension = (filePath) => {
132794
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
132795
+ };
132796
+ function findFileName(filePath) {
132797
+ return filePath?.split(filePath?.includes(import_node_path5.sep) ? import_node_path5.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
132798
+ }
132799
+
132800
+ // packages/workspace-tools/src/utils/run-tsup-build.ts
132790
132801
  var applyDefaultOptions = (options) => {
132791
132802
  options.entry ??= "{sourceRoot}/index.ts";
132792
132803
  options.outputPath ??= "dist/{projectRoot}";
@@ -132834,7 +132845,8 @@ var runTsupBuild = async (context, config, options) => {
132834
132845
  options.plugins.push(environmentPlugin(stormEnv));
132835
132846
  const getConfigOptions = {
132836
132847
  ...options,
132837
- main: context.entry,
132848
+ main: context.main,
132849
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
132838
132850
  define: {
132839
132851
  __STORM_CONFIG: JSON.stringify(stormEnv)
132840
132852
  },
@@ -132850,7 +132862,7 @@ var runTsupBuild = async (context, config, options) => {
132850
132862
  {
132851
132863
  ...options,
132852
132864
  watch: false,
132853
- main: context.entry,
132865
+ main: context.main,
132854
132866
  transformers: []
132855
132867
  },
132856
132868
  config.workspaceRoot,
@@ -132871,8 +132883,7 @@ ${options.banner}
132871
132883
 
132872
132884
  */`
132873
132885
  } : void 0,
132874
- outputPath: options.outputPath,
132875
- entry: context.entry
132886
+ outputPath: options.outputPath
132876
132887
  };
132877
132888
  if (options.getConfig) {
132878
132889
  writeInfo(config, "\u26A1 Running the Build process");
@@ -132917,7 +132928,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
132917
132928
  }
132918
132929
  },
132919
132930
  ts.sys,
132920
- (0, import_node_path5.dirname)(options.tsConfig)
132931
+ (0, import_node_path6.dirname)(options.tsConfig)
132921
132932
  );
132922
132933
  tsConfig.options.pathsBasePath = workspaceRoot;
132923
132934
  if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
@@ -133651,8 +133662,8 @@ var path3 = {
133651
133662
  win32: { sep: "\\" },
133652
133663
  posix: { sep: "/" }
133653
133664
  };
133654
- var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
133655
- minimatch.sep = sep;
133665
+ var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
133666
+ minimatch.sep = sep2;
133656
133667
  var GLOBSTAR = Symbol("globstar **");
133657
133668
  minimatch.GLOBSTAR = GLOBSTAR;
133658
133669
  var qmark2 = "[^/]";
@@ -139156,15 +139167,6 @@ glob.glob = glob;
139156
139167
  var import_fileutils = require("nx/src/utils/fileutils");
139157
139168
  var import_prettier = require("prettier");
139158
139169
 
139159
- // packages/workspace-tools/src/utils/file-path-utils.ts
139160
- var import_node_path6 = require("node:path");
139161
- var removeExtension = (filePath) => {
139162
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
139163
- };
139164
- function findFileName(filePath) {
139165
- return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
139166
- }
139167
-
139168
139170
  // packages/workspace-tools/src/utils/get-project-configurations.ts
139169
139171
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
139170
139172
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -139551,7 +139553,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139551
139553
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
139552
139554
  return runTsupBuild(
139553
139555
  {
139554
- entry: entryPoint,
139556
+ main: entryPoint,
139555
139557
  projectRoot,
139556
139558
  projectName: context.projectName,
139557
139559
  sourceRoot