@storm-software/workspace-tools 1.10.12 → 1.10.13

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.10.12",
3
+ "version": "1.10.13",
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": [
@@ -474368,9 +474368,12 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
474368
474368
  ...rest
474369
474369
  }) {
474370
474370
  const entry = [
474371
- rest.entry ? rest.entry : sourceRoot,
474371
+ rest.entry ? rest.entry : (0, import_devkit.joinPathFragments)(sourceRoot, "index.ts"),
474372
474372
  ...additionalEntryPoints ?? []
474373
- ];
474373
+ ].reduce((ret, filePath) => {
474374
+ ret[removeExtension(filePath).replaceAll("/", "-").replaceAll("\\", "-").replaceAll("*", "")] = filePath;
474375
+ return ret;
474376
+ }, {});
474374
474377
  return (0, import_tsup.defineConfig)([
474375
474378
  modernConfig({
474376
474379
  entry,
@@ -98115,9 +98115,9 @@ ${lanes.join("\n")}
98115
98115
  return path;
98116
98116
  }
98117
98117
  function tryRemoveExtension(path, extension) {
98118
- return fileExtensionIs(path, extension) ? removeExtension(path, extension) : void 0;
98118
+ return fileExtensionIs(path, extension) ? removeExtension2(path, extension) : void 0;
98119
98119
  }
98120
- function removeExtension(path, extension) {
98120
+ function removeExtension2(path, extension) {
98121
98121
  return path.substring(0, path.length - extension.length);
98122
98122
  }
98123
98123
  function changeExtension(path, newExtension) {
@@ -122558,7 +122558,7 @@ ${lanes.join("\n")}
122558
122558
  return tryFileLookup(fileName, onlyRecordFailures, state);
122559
122559
  }
122560
122560
  const ext = tryGetExtensionFromPath2(fileName) ?? "";
122561
- const fileNameNoExtension = ext ? removeExtension(fileName, ext) : fileName;
122561
+ const fileNameNoExtension = ext ? removeExtension2(fileName, ext) : fileName;
122562
122562
  return forEach(state.compilerOptions.moduleSuffixes, (suffix) => tryFileLookup(fileNameNoExtension + suffix + ext, onlyRecordFailures, state));
122563
122563
  }
122564
122564
  function tryFileLookup(fileName, onlyRecordFailures, state) {
@@ -127946,7 +127946,7 @@ ${lanes.join("\n")}
127946
127946
  /* Dts */
127947
127947
  ]))
127948
127948
  return void 0;
127949
- const noExtension = removeExtension(
127949
+ const noExtension = removeExtension2(
127950
127950
  fileName,
127951
127951
  ".ts"
127952
127952
  /* Ts */
@@ -131600,7 +131600,7 @@ ${lanes.join("\n")}
131600
131600
  }
131601
131601
  return void 0;
131602
131602
  function getSuggestedImportSource(tsExtension) {
131603
- const importSourceWithoutExtension = removeExtension(moduleReference, tsExtension);
131603
+ const importSourceWithoutExtension = removeExtension2(moduleReference, tsExtension);
131604
131604
  if (emitModuleKindIsNonNodeESM(moduleKind) || mode === 99) {
131605
131605
  const preferTs = isDeclarationFileName(moduleReference) && shouldAllowImportingTsExtension(compilerOptions);
131606
131606
  const ext = tsExtension === ".mts" || tsExtension === ".d.mts" ? preferTs ? ".mts" : ".mjs" : tsExtension === ".cts" || tsExtension === ".d.mts" ? preferTs ? ".cts" : ".cjs" : preferTs ? ".ts" : ".js";
@@ -264323,7 +264323,7 @@ ${options.prefix}` : "\n" : options.prefix
264323
264323
  relativeComplement: () => relativeComplement,
264324
264324
  removeAllComments: () => removeAllComments,
264325
264325
  removeEmitHelper: () => removeEmitHelper,
264326
- removeExtension: () => removeExtension,
264326
+ removeExtension: () => removeExtension2,
264327
264327
  removeFileExtension: () => removeFileExtension,
264328
264328
  removeIgnoredPath: () => removeIgnoredPath,
264329
264329
  removeMinAndVersionNumbers: () => removeMinAndVersionNumbers,
@@ -270011,6 +270011,13 @@ __export(get_config_exports, {
270011
270011
  module.exports = __toCommonJS(get_config_exports);
270012
270012
  var import_devkit = __toESM(require_devkit());
270013
270013
  var import_tsup = __toESM(require_dist5());
270014
+
270015
+ // packages/workspace-tools/src/utils/file-path-utils.ts
270016
+ var removeExtension = (filePath) => {
270017
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
270018
+ };
270019
+
270020
+ // packages/workspace-tools/src/executors/tsup/get-config.ts
270014
270021
  function modernConfig({
270015
270022
  entry,
270016
270023
  outDir,
@@ -270136,9 +270143,12 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
270136
270143
  ...rest
270137
270144
  }) {
270138
270145
  const entry = [
270139
- rest.entry ? rest.entry : sourceRoot,
270146
+ rest.entry ? rest.entry : (0, import_devkit.joinPathFragments)(sourceRoot, "index.ts"),
270140
270147
  ...additionalEntryPoints ?? []
270141
- ];
270148
+ ].reduce((ret, filePath) => {
270149
+ ret[removeExtension(filePath).replaceAll("/", "-").replaceAll("\\", "-").replaceAll("*", "")] = filePath;
270150
+ return ret;
270151
+ }, {});
270142
270152
  return (0, import_tsup.defineConfig)([
270143
270153
  modernConfig({
270144
270154
  entry,