@storm-software/workspace-tools 1.49.28 → 1.49.30

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.30 (2024-01-26)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Updates to ouput path for tsup build ([dede0192](https://github.com/storm-software/storm-ops/commit/dede0192))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.49.29 (2024-01-26)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Added `entry` options to the tsup build ([b8cb9249](https://github.com/storm-software/storm-ops/commit/b8cb9249))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.28 (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}";
@@ -132835,6 +132846,7 @@ var runTsupBuild = async (context, config, options) => {
132835
132846
  const getConfigOptions = {
132836
132847
  ...options,
132837
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
  },
@@ -132916,7 +132928,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
132916
132928
  }
132917
132929
  },
132918
132930
  ts.sys,
132919
- (0, import_node_path5.dirname)(options.tsConfig)
132931
+ (0, import_node_path6.dirname)(options.tsConfig)
132920
132932
  );
132921
132933
  tsConfig.options.pathsBasePath = workspaceRoot;
132922
132934
  if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
@@ -133650,8 +133662,8 @@ var path3 = {
133650
133662
  win32: { sep: "\\" },
133651
133663
  posix: { sep: "/" }
133652
133664
  };
133653
- var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
133654
- minimatch.sep = sep;
133665
+ var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
133666
+ minimatch.sep = sep2;
133655
133667
  var GLOBSTAR = Symbol("globstar **");
133656
133668
  minimatch.GLOBSTAR = GLOBSTAR;
133657
133669
  var qmark2 = "[^/]";
@@ -139155,15 +139167,6 @@ glob.glob = glob;
139155
139167
  var import_fileutils = require("nx/src/utils/fileutils");
139156
139168
  var import_prettier = require("prettier");
139157
139169
 
139158
- // packages/workspace-tools/src/utils/file-path-utils.ts
139159
- var import_node_path6 = require("node:path");
139160
- var removeExtension = (filePath) => {
139161
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
139162
- };
139163
- function findFileName(filePath) {
139164
- return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
139165
- }
139166
-
139167
139170
  // packages/workspace-tools/src/utils/get-project-configurations.ts
139168
139171
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
139169
139172
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -139542,11 +139545,6 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
139542
139545
  if (outputPath.startsWith("/")) {
139543
139546
  outputPath = outputPath.substring(1);
139544
139547
  }
139545
- outputPath = (0, import_devkit4.joinPathFragments)(
139546
- options.outputPath,
139547
- "dist",
139548
- outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
139549
- );
139550
139548
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
139551
139549
  return runTsupBuild(
139552
139550
  {