@storm-software/workspace-tools 1.7.19 → 1.7.20

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,10 @@
1
+ ## [1.7.19](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.18...workspace-tools-v1.7.19) (2023-11-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Added join to add separators in package.json path in tsup ([b56df8a](https://github.com/storm-software/storm-ops/commit/b56df8a3c20e12fb8763e481cbc6ca82ff6403cf))
7
+
1
8
  ## [1.7.18](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.17...workspace-tools-v1.7.18) (2023-11-18)
2
9
 
3
10
 
package/README.md CHANGED
@@ -15,7 +15,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
15
15
 
16
16
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
17
17
 
18
- [![Version](https://img.shields.io/badge/version-1.6.56-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
18
+ [![Version](https://img.shields.io/badge/version-1.7.19-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
19
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
20
20
 
21
21
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
package/index.js CHANGED
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
408390
408390
  }
408391
408391
  });
408392
408392
 
408393
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
408393
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
408394
408394
  var require_chunk_NSPLMNA4 = __commonJS({
408395
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
408395
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
408396
408396
  "use strict";
408397
408397
  Object.defineProperty(exports, "__esModule", { value: true });
408398
408398
  var version = "7.2.0";
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
410039
410039
  }
410040
410040
  });
410041
410041
 
410042
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
410042
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
410043
410043
  var require_chunk_B7UJSB4N = __commonJS({
410044
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
410044
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
410045
410045
  "use strict";
410046
410046
  Object.defineProperty(exports, "__esModule", { value: true });
410047
410047
  function _interopRequireDefault(obj) {
@@ -410255,9 +410255,9 @@ var require_chunk_B7UJSB4N = __commonJS({
410255
410255
  }
410256
410256
  });
410257
410257
 
410258
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
410258
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
410259
410259
  var require_chunk_GEVDEBBW = __commonJS({
410260
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
410260
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
410261
410261
  "use strict";
410262
410262
  Object.defineProperty(exports, "__esModule", { value: true });
410263
410263
  function _interopRequireWildcard(obj) {
@@ -411191,9 +411191,9 @@ var require_dist2 = __commonJS({
411191
411191
  }
411192
411192
  });
411193
411193
 
411194
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
411194
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
411195
411195
  var require_chunk_52KWB5QB = __commonJS({
411196
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
411196
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
411197
411197
  "use strict";
411198
411198
  Object.defineProperty(exports, "__esModule", { value: true });
411199
411199
  function _interopRequireDefault(obj) {
@@ -470479,9 +470479,9 @@ var require_chokidar = __commonJS({
470479
470479
  }
470480
470480
  });
470481
470481
 
470482
- // node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
470482
+ // node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
470483
470483
  var require_dist5 = __commonJS({
470484
- "node_modules/.pnpm/tsup@7.2.0_patch_hash=dmhzqdla54qrasadq46t5rzvuy_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
470484
+ "node_modules/.pnpm/tsup@7.2.0_patch_hash=z3tis5v4h7ndwlym3qhvzntqku_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
470485
470485
  "use strict";
470486
470486
  Object.defineProperty(exports, "__esModule", { value: true });
470487
470487
  function _interopRequireDefault(obj) {
@@ -472072,20 +472072,21 @@ var require_dist5 = __commonJS({
472072
472072
  if (pkgPath) {
472073
472073
  const splits = pkgPath.split(_path2.default.sep);
472074
472074
  if (splits.length > 0) {
472075
- const pkgPathIndex = splits.slice(
472076
- 0,
472077
- splits.length
472078
- ).reverse().findIndex((split, index) => {
472075
+ let pkgPathIndex = -1;
472076
+ for (let i = splits.length - 1; i >= 0 && pkgPathIndex < 0; i--) {
472079
472077
  const packageJsonPath = _path2.default.join(
472080
472078
  splits.slice(
472081
472079
  0,
472082
- index
472080
+ splits.length - i
472083
472081
  ).join(_path2.default.sep),
472084
472082
  "package.json"
472085
472083
  );
472086
472084
  logger.info(format2, `\u26A1 Searching for package.json file in ${packageJsonPath}`);
472087
- return existsSync(packageJsonPath);
472088
- });
472085
+ if (_fs2.default.existsSync(packageJsonPath)) {
472086
+ logger.info(format2, `\u26A1 Found the package.json file in ${packageJsonPath} (index: ${i})`);
472087
+ pkgPathIndex = i;
472088
+ }
472089
+ }
472089
472090
  logger.info(format2, `\u26A1 Package path index: ${pkgPathIndex}`);
472090
472091
  if (pkgPathIndex) {
472091
472092
  pkgPath = splits.slice(0, pkgPathIndex).join(_path2.default.sep);