@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.49.28",
3
+ "version": "1.49.30",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -115441,6 +115441,7 @@ var runTsupBuild = async (context, config, options) => {
115441
115441
  const getConfigOptions = {
115442
115442
  ...options,
115443
115443
  main: context.main,
115444
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
115444
115445
  define: {
115445
115446
  __STORM_CONFIG: JSON.stringify(stormEnv)
115446
115447
  },
@@ -115895,11 +115896,6 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115895
115896
  if (outputPath.startsWith("/")) {
115896
115897
  outputPath = outputPath.substring(1);
115897
115898
  }
115898
- outputPath = (0, import_devkit3.joinPathFragments)(
115899
- options.outputPath,
115900
- "dist",
115901
- outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
115902
- );
115903
115899
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
115904
115900
  return runTsupBuild(
115905
115901
  {
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
109215
109215
  };
109216
109216
  };
109217
109217
 
109218
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109219
+ var removeExtension = (filePath) => {
109220
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109221
+ };
109222
+
109218
109223
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109219
109224
  var applyDefaultOptions = (options) => {
109220
109225
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109264,6 +109269,7 @@ var runTsupBuild = async (context, config, options) => {
109264
109269
  const getConfigOptions = {
109265
109270
  ...options,
109266
109271
  main: context.main,
109272
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
109267
109273
  define: {
109268
109274
  __STORM_CONFIG: JSON.stringify(stormEnv)
109269
109275
  },
@@ -115584,11 +115590,6 @@ glob.glob = glob;
115584
115590
  var import_fileutils = require("nx/src/utils/fileutils");
115585
115591
  var import_prettier = require("prettier");
115586
115592
 
115587
- // packages/workspace-tools/src/utils/file-path-utils.ts
115588
- var removeExtension = (filePath) => {
115589
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115590
- };
115591
-
115592
115593
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115593
115594
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115594
115595
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -115925,11 +115926,6 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115925
115926
  if (outputPath.startsWith("/")) {
115926
115927
  outputPath = outputPath.substring(1);
115927
115928
  }
115928
- outputPath = (0, import_devkit3.joinPathFragments)(
115929
- options.outputPath,
115930
- "dist",
115931
- outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
115932
- );
115933
115929
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
115934
115930
  return runTsupBuild(
115935
115931
  {
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
109215
109215
  };
109216
109216
  };
109217
109217
 
109218
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109219
+ var removeExtension = (filePath) => {
109220
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109221
+ };
109222
+
109218
109223
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109219
109224
  var applyDefaultOptions = (options) => {
109220
109225
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109264,6 +109269,7 @@ var runTsupBuild = async (context, config, options) => {
109264
109269
  const getConfigOptions = {
109265
109270
  ...options,
109266
109271
  main: context.main,
109272
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
109267
109273
  define: {
109268
109274
  __STORM_CONFIG: JSON.stringify(stormEnv)
109269
109275
  },
@@ -115584,11 +115590,6 @@ glob.glob = glob;
115584
115590
  var import_fileutils = require("nx/src/utils/fileutils");
115585
115591
  var import_prettier = require("prettier");
115586
115592
 
115587
- // packages/workspace-tools/src/utils/file-path-utils.ts
115588
- var removeExtension = (filePath) => {
115589
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115590
- };
115591
-
115592
115593
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115593
115594
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115594
115595
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -115925,11 +115926,6 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115925
115926
  if (outputPath.startsWith("/")) {
115926
115927
  outputPath = outputPath.substring(1);
115927
115928
  }
115928
- outputPath = (0, import_devkit3.joinPathFragments)(
115929
- options.outputPath,
115930
- "dist",
115931
- outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
115932
- );
115933
115929
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
115934
115930
  return runTsupBuild(
115935
115931
  {
@@ -109215,6 +109215,11 @@ var outExtension = ({ format: format2 }) => {
109215
109215
  };
109216
109216
  };
109217
109217
 
109218
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109219
+ var removeExtension = (filePath) => {
109220
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109221
+ };
109222
+
109218
109223
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109219
109224
  var applyDefaultOptions = (options) => {
109220
109225
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109264,6 +109269,7 @@ var runTsupBuild = async (context, config, options) => {
109264
109269
  const getConfigOptions = {
109265
109270
  ...options,
109266
109271
  main: context.main,
109272
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
109267
109273
  define: {
109268
109274
  __STORM_CONFIG: JSON.stringify(stormEnv)
109269
109275
  },
@@ -115584,11 +115590,6 @@ glob.glob = glob;
115584
115590
  var import_fileutils = require("nx/src/utils/fileutils");
115585
115591
  var import_prettier = require("prettier");
115586
115592
 
115587
- // packages/workspace-tools/src/utils/file-path-utils.ts
115588
- var removeExtension = (filePath) => {
115589
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115590
- };
115591
-
115592
115593
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115593
115594
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115594
115595
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -115925,11 +115926,6 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115925
115926
  if (outputPath.startsWith("/")) {
115926
115927
  outputPath = outputPath.substring(1);
115927
115928
  }
115928
- outputPath = (0, import_devkit3.joinPathFragments)(
115929
- options.outputPath,
115930
- "dist",
115931
- outputPath.includes("/") ? outputPath.substring(0, outputPath.lastIndexOf("/")) : ""
115932
- );
115933
115929
  writeInfo(config, `*** Build output path: ${outputPath} ***`);
115934
115930
  return runTsupBuild(
115935
115931
  {
@@ -119428,6 +119428,7 @@ var runTsupBuild = async (context, config, options) => {
119428
119428
  const getConfigOptions = {
119429
119429
  ...options,
119430
119430
  main: context.main,
119431
+ entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
119431
119432
  define: {
119432
119433
  __STORM_CONFIG: JSON.stringify(stormEnv)
119433
119434
  },