tnp-helpers 16.444.25 → 18.0.1

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.
Files changed (188) hide show
  1. package/assets/shared/shared_folder_info.txt +1 -1
  2. package/browser/esm2022/lib/base/base-git.mjs +76 -3
  3. package/browser/esm2022/lib/base/base-linked-projects.mjs +1 -1
  4. package/browser/esm2022/lib/base/base-npm-helpers.mjs +110 -2
  5. package/browser/esm2022/lib/base/base-project-resolver.mjs +7 -3
  6. package/browser/esm2022/lib/base/base-project.mjs +59 -3
  7. package/browser/esm2022/lib/base/base-release-process.mjs +2 -1
  8. package/browser/esm2022/lib/base/base-vscode.mjs +13 -1
  9. package/browser/esm2022/lib/base/commit-data.mjs +238 -4
  10. package/browser/esm2022/lib/base/core-project.mjs +2 -3
  11. package/browser/esm2022/lib/base/linked-project.mjs +1 -1
  12. package/browser/esm2022/lib/helpers/for-browser/angular.helper.mjs +1 -1
  13. package/browser/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -3
  14. package/browser/esm2022/lib/helpers/helpers-array-obj.mjs +1 -1
  15. package/browser/esm2022/lib/helpers/helpers-strings-regexes.mjs +1 -1
  16. package/browser/esm2022/lib/helpers/helpers-strings.mjs +1 -1
  17. package/browser/esm2022/lib/helpers/helpers.mjs +53 -2
  18. package/browser/esm2022/lib/validators/validators-network.mjs +1 -1
  19. package/browser/fesm2022/tnp-helpers.mjs +538 -9
  20. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  21. package/browser/lib/base/base-git.d.ts +22 -2
  22. package/browser/lib/base/base-library-build.d.ts +1 -1
  23. package/browser/lib/base/base-npm-helpers.d.ts +30 -3
  24. package/browser/lib/base/base-project-resolver.d.ts +1 -1
  25. package/browser/lib/base/base-project.d.ts +25 -2
  26. package/browser/lib/base/commit-data.d.ts +41 -3
  27. package/browser/lib/base/config-database.d.ts +1 -1
  28. package/browser/lib/helpers/helpers.d.ts +11 -1
  29. package/client/esm2022/lib/base/base-git.mjs +76 -3
  30. package/client/esm2022/lib/base/base-linked-projects.mjs +1 -1
  31. package/client/esm2022/lib/base/base-npm-helpers.mjs +110 -2
  32. package/client/esm2022/lib/base/base-project-resolver.mjs +7 -3
  33. package/client/esm2022/lib/base/base-project.mjs +59 -3
  34. package/client/esm2022/lib/base/base-release-process.mjs +2 -1
  35. package/client/esm2022/lib/base/base-vscode.mjs +13 -1
  36. package/client/esm2022/lib/base/commit-data.mjs +238 -4
  37. package/client/esm2022/lib/base/core-project.mjs +2 -3
  38. package/client/esm2022/lib/base/linked-project.mjs +1 -1
  39. package/client/esm2022/lib/helpers/for-browser/angular.helper.mjs +1 -1
  40. package/client/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -3
  41. package/client/esm2022/lib/helpers/helpers-array-obj.mjs +1 -1
  42. package/client/esm2022/lib/helpers/helpers-strings-regexes.mjs +1 -1
  43. package/client/esm2022/lib/helpers/helpers-strings.mjs +1 -1
  44. package/client/esm2022/lib/helpers/helpers.mjs +53 -2
  45. package/client/esm2022/lib/validators/validators-network.mjs +1 -1
  46. package/client/fesm2022/tnp-helpers.mjs +538 -9
  47. package/client/fesm2022/tnp-helpers.mjs.map +1 -1
  48. package/client/lib/base/base-git.d.ts +22 -2
  49. package/client/lib/base/base-library-build.d.ts +1 -1
  50. package/client/lib/base/base-npm-helpers.d.ts +30 -3
  51. package/client/lib/base/base-project-resolver.d.ts +1 -1
  52. package/client/lib/base/base-project.d.ts +25 -2
  53. package/client/lib/base/commit-data.d.ts +41 -3
  54. package/client/lib/base/config-database.d.ts +1 -1
  55. package/client/lib/helpers/helpers.d.ts +11 -1
  56. package/firedev.jsonc +5 -25
  57. package/lib/base/base-command-line.backend.d.ts +8 -3
  58. package/lib/base/base-command-line.backend.js +81 -32
  59. package/lib/base/base-command-line.backend.js.map +1 -1
  60. package/lib/base/base-db.js.map +1 -1
  61. package/lib/base/base-git.d.ts +22 -2
  62. package/lib/base/base-git.js +200 -136
  63. package/lib/base/base-git.js.map +1 -1
  64. package/lib/base/base-library-build.js +37 -37
  65. package/lib/base/base-library-build.js.map +1 -1
  66. package/lib/base/base-linked-projects.js +4 -4
  67. package/lib/base/base-linked-projects.js.map +1 -1
  68. package/lib/base/base-npm-helpers.d.ts +30 -3
  69. package/lib/base/base-npm-helpers.js +135 -10
  70. package/lib/base/base-npm-helpers.js.map +1 -1
  71. package/lib/base/base-project-resolver.d.ts +1 -1
  72. package/lib/base/base-project-resolver.js +5 -2
  73. package/lib/base/base-project-resolver.js.map +1 -1
  74. package/lib/base/base-project.d.ts +25 -2
  75. package/lib/base/base-project.js +87 -18
  76. package/lib/base/base-project.js.map +1 -1
  77. package/lib/base/base-release-process.js +12 -9
  78. package/lib/base/base-release-process.js.map +1 -1
  79. package/lib/base/base-start-config.backend.js +1 -1
  80. package/lib/base/base-start-config.backend.js.map +1 -1
  81. package/lib/base/base-vscode.js +13 -1
  82. package/lib/base/base-vscode.js.map +1 -1
  83. package/lib/base/command-line-feature.backend.js.map +1 -1
  84. package/lib/base/commit-data.d.ts +41 -3
  85. package/lib/base/commit-data.js +347 -85
  86. package/lib/base/commit-data.js.map +1 -1
  87. package/lib/base/config-database.d.ts +1 -1
  88. package/lib/base/config-database.js.map +1 -1
  89. package/lib/base/core-project.js +23 -22
  90. package/lib/base/core-project.js.map +1 -1
  91. package/lib/base/linked-project.js.map +1 -1
  92. package/lib/base/project-database.js.map +1 -1
  93. package/lib/base/translate.js +10 -6
  94. package/lib/base/translate.js.map +1 -1
  95. package/lib/helpers/for-backend/helpers-cli-tool.backend.d.ts +1 -1
  96. package/lib/helpers/for-backend/helpers-cli-tool.backend.js +42 -39
  97. package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
  98. package/lib/helpers/for-backend/helpers-console-gui.d.ts +5 -1
  99. package/lib/helpers/for-backend/helpers-console-gui.js +7 -3
  100. package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
  101. package/lib/helpers/for-backend/helpers-file-folders.backend.js.map +1 -1
  102. package/lib/helpers/for-backend/helpers-git.backend.d.ts +3 -0
  103. package/lib/helpers/for-backend/helpers-git.backend.js +132 -45
  104. package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
  105. package/lib/helpers/for-backend/helpers-network.backend.d.ts +2 -1
  106. package/lib/helpers/for-backend/helpers-network.backend.js.map +1 -1
  107. package/lib/helpers/for-backend/helpers-npm.backend.js.map +1 -1
  108. package/lib/helpers/for-backend/helpers-process.backend.d.ts +10 -3
  109. package/lib/helpers/for-backend/helpers-process.backend.js +56 -33
  110. package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
  111. package/lib/helpers/for-backend/helpers-system-terminal.backend.js.map +1 -1
  112. package/lib/helpers/for-backend/helpers-vscode.backend.js.map +1 -1
  113. package/lib/helpers/for-backend/ts-code/ts-code-extractor.js.map +1 -1
  114. package/lib/helpers/for-backend/ts-code/ts-code-modifier.backend.js.map +1 -1
  115. package/lib/helpers/for-backend/ts-code/ts-import-export-extractor.js.map +1 -1
  116. package/lib/helpers/for-browser/angular.helper.js +2 -3
  117. package/lib/helpers/for-browser/angular.helper.js.map +1 -1
  118. package/lib/helpers/for-browser/helpers-browser.js +2 -1
  119. package/lib/helpers/for-browser/helpers-browser.js.map +1 -1
  120. package/lib/helpers/helpers-array-obj.js.map +1 -1
  121. package/lib/helpers/helpers-json5.backend.js.map +1 -1
  122. package/lib/helpers/helpers-strings-regexes.js.map +1 -1
  123. package/lib/helpers/helpers-strings.js.map +1 -1
  124. package/lib/helpers/helpers.d.ts +11 -2
  125. package/lib/helpers/helpers.js +63 -16
  126. package/lib/helpers/helpers.js.map +1 -1
  127. package/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -1
  128. package/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -1
  129. package/lib/lowdb/adapters/browser/WebStorage.js.map +1 -1
  130. package/lib/lowdb/adapters/node/DataFile.d.ts +0 -1
  131. package/lib/lowdb/adapters/node/DataFile.js.map +1 -1
  132. package/lib/lowdb/adapters/node/JSONFile.d.ts +0 -1
  133. package/lib/lowdb/adapters/node/JSONFile.js.map +1 -1
  134. package/lib/lowdb/adapters/node/TextFile.d.ts +0 -1
  135. package/lib/lowdb/adapters/node/TextFile.js.map +1 -1
  136. package/lib/lowdb/adapters/node/steno.js +1 -1
  137. package/lib/lowdb/adapters/node/steno.js.map +1 -1
  138. package/lib/lowdb/presets/browser.js +2 -3
  139. package/lib/lowdb/presets/browser.js.map +1 -1
  140. package/lib/lowdb/presets/node.d.ts +0 -1
  141. package/lib/lowdb/presets/node.js +2 -3
  142. package/lib/lowdb/presets/node.js.map +1 -1
  143. package/lib/old/base-component.js +2 -3
  144. package/lib/old/base-component.js.map +1 -1
  145. package/lib/old/base-formly-component.js +2 -3
  146. package/lib/old/base-formly-component.js.map +1 -1
  147. package/lib/old/dual-component-ctrl.js +2 -3
  148. package/lib/old/dual-component-ctrl.js.map +1 -1
  149. package/lib/validators/validators-firedev.js +1 -1
  150. package/lib/validators/validators-firedev.js.map +1 -1
  151. package/lib/validators/validators-git.js +1 -1
  152. package/lib/validators/validators-git.js.map +1 -1
  153. package/lib/validators/validators-network.js +1 -1
  154. package/lib/validators/validators-network.js.map +1 -1
  155. package/lib/validators/validators.js +1 -1
  156. package/lib/validators/validators.js.map +1 -1
  157. package/package.json +5 -5
  158. package/tmp-environment.json +177 -177
  159. package/websql/esm2022/lib/base/base-git.mjs +76 -3
  160. package/websql/esm2022/lib/base/base-linked-projects.mjs +1 -1
  161. package/websql/esm2022/lib/base/base-npm-helpers.mjs +110 -2
  162. package/websql/esm2022/lib/base/base-project-resolver.mjs +6 -3
  163. package/websql/esm2022/lib/base/base-project.mjs +59 -3
  164. package/websql/esm2022/lib/base/base-release-process.mjs +2 -1
  165. package/websql/esm2022/lib/base/base-vscode.mjs +13 -1
  166. package/websql/esm2022/lib/base/commit-data.mjs +238 -4
  167. package/websql/esm2022/lib/base/core-project.mjs +2 -3
  168. package/websql/esm2022/lib/base/linked-project.mjs +1 -1
  169. package/websql/esm2022/lib/helpers/for-browser/angular.helper.mjs +1 -1
  170. package/websql/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -3
  171. package/websql/esm2022/lib/helpers/helpers-array-obj.mjs +1 -1
  172. package/websql/esm2022/lib/helpers/helpers-strings-regexes.mjs +1 -1
  173. package/websql/esm2022/lib/helpers/helpers-strings.mjs +1 -1
  174. package/websql/esm2022/lib/helpers/helpers.mjs +53 -2
  175. package/websql/esm2022/lib/validators/validators-network.mjs +1 -1
  176. package/websql/fesm2022/tnp-helpers.mjs +538 -9
  177. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  178. package/websql/lib/base/base-git.d.ts +22 -2
  179. package/websql/lib/base/base-library-build.d.ts +1 -1
  180. package/websql/lib/base/base-npm-helpers.d.ts +30 -3
  181. package/websql/lib/base/base-project-resolver.d.ts +1 -1
  182. package/websql/lib/base/base-project.d.ts +29 -2
  183. package/websql/lib/base/commit-data.d.ts +41 -3
  184. package/websql/lib/base/config-database.d.ts +1 -1
  185. package/websql/lib/helpers/helpers.d.ts +11 -1
  186. package/browser/package.json +0 -25
  187. package/client/package.json +0 -362
  188. package/websql/package.json +0 -25
@@ -667,7 +667,58 @@ class HelpersFiredev extends CoreHelpers {
667
667
  CLASS.setName(f, name);
668
668
  return f;
669
669
  }
670
- async ncc(pathToJsFile, outputFile) {
670
+ /**
671
+ * Bundle file with node_modules into one file
672
+ */
673
+ async ncc(pathToJsFile, outputFilePath,
674
+ /**
675
+ * ! beforeWrite needs to return output
676
+ */
677
+ beforeWrite) {
678
+ /* */
679
+ /* */
680
+ /* */
681
+ /* */
682
+ /* */
683
+ /* */
684
+ /* */
685
+ /* */
686
+ /* */
687
+ /* */
688
+ /* */
689
+ /* */
690
+ /* */
691
+ /* */
692
+ /* */
693
+ /* */
694
+ /* */
695
+ /* */
696
+ /* */
697
+ /* */
698
+ /* */
699
+ /* */
700
+ /* */
701
+ /* */
702
+ /* */
703
+ /* */
704
+ /* */
705
+ /* */
706
+ /* */
707
+ /* */
708
+ /* */
709
+ /* */
710
+ /* */
711
+ /* */
712
+ /* */
713
+ /* */
714
+ /* */
715
+ /* */
716
+ /* */
717
+ /* */
718
+ /* */
719
+ /* */
720
+ /* */
721
+ /* */
671
722
  /* */
672
723
  /* */
673
724
  /* */
@@ -1257,8 +1308,11 @@ class BaseProjectResolver {
1257
1308
  /* */
1258
1309
  return (void 0);
1259
1310
  }
1260
- unload(project) {
1261
- this.projects = this.projects.filter(f => f !== project);
1311
+ unload(projectOrLocationOfProject) {
1312
+ const location = _.isString(projectOrLocationOfProject)
1313
+ ? projectOrLocationOfProject : projectOrLocationOfProject?.location;
1314
+ this.projects = this.projects.filter(f => f.location !== location);
1315
+ this.emptyLocations = this.emptyLocations.filter(f => f !== location);
1262
1316
  }
1263
1317
  remove(project) {
1264
1318
  /* */
@@ -1462,6 +1516,9 @@ class BaseProject {
1462
1516
  get name() {
1463
1517
  return this.npmHelpers?.name || this.nameFromPomXML;
1464
1518
  }
1519
+ get nameForCli() {
1520
+ return this.name?.endsWith('-cli') ? this.name : `${this.name}-cli`;
1521
+ }
1465
1522
  get nameFromPomXML() {
1466
1523
  const artifactIdPattern = /<artifactId>([^<]+)<\/artifactId>/;
1467
1524
  const match = (this.readFile('pom.xml') || '').match(artifactIdPattern);
@@ -1576,6 +1633,7 @@ class BaseProject {
1576
1633
  * same as project.pathExists();
1577
1634
  */
1578
1635
  hasFile(relativePath) {
1636
+ /* */
1579
1637
  /* */
1580
1638
  /* */
1581
1639
  return (void 0);
@@ -1619,6 +1677,14 @@ class BaseProject {
1619
1677
  /* */
1620
1678
  return (void 0);
1621
1679
  }
1680
+ writeJsonC(relativePath, json) {
1681
+ /* */
1682
+ /* */
1683
+ /* */
1684
+ /* */
1685
+ /* */
1686
+ return (void 0);
1687
+ }
1622
1688
  /**
1623
1689
  * @deprecated us execute instead
1624
1690
  * use output from or more preciese crafted api
@@ -1709,6 +1775,13 @@ class BaseProject {
1709
1775
  /* */
1710
1776
  return (void 0);
1711
1777
  }
1778
+ /**
1779
+ * read json file
1780
+ * handle all json files
1781
+ * jsonc, json5 , json
1782
+ * @param fileRelativeToProjectPath
1783
+ * @returns
1784
+ */
1712
1785
  readJson(fileRelativeToProjectPath) {
1713
1786
  /* */
1714
1787
  /* */
@@ -1717,6 +1790,34 @@ class BaseProject {
1717
1790
  /* */
1718
1791
  return (void 0);
1719
1792
  }
1793
+ /**
1794
+ * copy files or folders from
1795
+ * project to destination
1796
+ */
1797
+ copy(filesOrFolderRelativePathes) {
1798
+ return {
1799
+ to: (destination) => {
1800
+ /* */
1801
+ /* */
1802
+ /* */
1803
+ /* */
1804
+ /* */
1805
+ /* */
1806
+ /* */
1807
+ /* */
1808
+ /* */
1809
+ /* */
1810
+ /* */
1811
+ /* */
1812
+ /* */
1813
+ /* */
1814
+ /* */
1815
+ /* */
1816
+ /* */
1817
+ return (void 0);
1818
+ },
1819
+ };
1820
+ }
1720
1821
  remove(relativePath, exactPath = true) {
1721
1822
  /* */
1722
1823
  /* */
@@ -1884,6 +1985,16 @@ class BaseProject {
1884
1985
  /* */
1885
1986
  return (void 0);
1886
1987
  }
1988
+ setValueToJSONC(relativePath, lodashGetPath, value) {
1989
+ /* */
1990
+ /* */
1991
+ return (void 0);
1992
+ }
1993
+ setValueToJSON5(relativePath, lodashGetPath, value) {
1994
+ /* */
1995
+ /* */
1996
+ return (void 0);
1997
+ }
1887
1998
  getValueFromJSON(relativePath, lodashGetPath, defaultValue = void 0) {
1888
1999
  /* */
1889
2000
  /* */
@@ -2448,6 +2559,23 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2448
2559
  this.project = project;
2449
2560
  this.reloadPackageJsonInMemory();
2450
2561
  }
2562
+ updateDepsFrom(locations) {
2563
+ /* */
2564
+ /* */
2565
+ /* */
2566
+ /* */
2567
+ /* */
2568
+ /* */
2569
+ /* */
2570
+ /* */
2571
+ /* */
2572
+ /* */
2573
+ /* */
2574
+ /* */
2575
+ /* */
2576
+ /* */
2577
+ return (void 0);
2578
+ }
2451
2579
  /**
2452
2580
  * if something else change package.json in this project
2453
2581
  * and you know that you need to reload it..
@@ -2464,11 +2592,100 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2464
2592
  get version() {
2465
2593
  return this.packageJSON?.version;
2466
2594
  }
2595
+ /**
2596
+ * bin with cli config from package.json
2597
+ */
2598
+ get bin() {
2599
+ return (this.packageJSON?.bin || {});
2600
+ }
2467
2601
  set version(newVersion) {
2468
2602
  this.packageJSON.version = newVersion;
2469
2603
  this.project.writeJson(config.file.package_json, this.packageJSON);
2470
2604
  }
2471
- updateDependency(packageName, version) {
2605
+ /**
2606
+ * @deprecated use updateDep
2607
+ */
2608
+ updateDependency({ packageName, version, updateFiredevJsonFirst, }) {
2609
+ /* */
2610
+ /* */
2611
+ /* */
2612
+ /* */
2613
+ /* */
2614
+ /* */
2615
+ /* */
2616
+ /* */
2617
+ /* */
2618
+ /* */
2619
+ /* */
2620
+ /* */
2621
+ /* */
2622
+ /* */
2623
+ /* */
2624
+ /* */
2625
+ /* */
2626
+ /* */
2627
+ /* */
2628
+ /* */
2629
+ /* */
2630
+ /* */
2631
+ /* */
2632
+ /* */
2633
+ /* */
2634
+ /* */
2635
+ /* */
2636
+ /* */
2637
+ /* */
2638
+ /* */
2639
+ /* */
2640
+ /* */
2641
+ /* */
2642
+ /* */
2643
+ /* */
2644
+ /* */
2645
+ return (void 0);
2646
+ }
2647
+ /**
2648
+ * Update dependency in package.json
2649
+ */
2650
+ async updateDep({ packageName, version, updateFiredevJsonFirst, }) {
2651
+ /* */
2652
+ /* */
2653
+ /* */
2654
+ /* */
2655
+ /* */
2656
+ /* */
2657
+ /* */
2658
+ /* */
2659
+ /* */
2660
+ /* */
2661
+ /* */
2662
+ /* */
2663
+ /* */
2664
+ /* */
2665
+ /* */
2666
+ /* */
2667
+ /* */
2668
+ /* */
2669
+ /* */
2670
+ /* */
2671
+ /* */
2672
+ /* */
2673
+ /* */
2674
+ /* */
2675
+ /* */
2676
+ /* */
2677
+ /* */
2678
+ /* */
2679
+ /* */
2680
+ /* */
2681
+ /* */
2682
+ /* */
2683
+ /* */
2684
+ /* */
2685
+ /* */
2686
+ /* */
2687
+ /* */
2688
+ /* */
2472
2689
  /* */
2473
2690
  /* */
2474
2691
  /* */
@@ -2888,6 +3105,8 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2888
3105
  /* */
2889
3106
  /* */
2890
3107
  /* */
3108
+ /* */
3109
+ /* */
2891
3110
  return (void 0);
2892
3111
  }
2893
3112
  /**
@@ -3604,7 +3823,25 @@ class BaseGit extends BaseFeatureForProject {
3604
3823
  childrenRepos = childrenRepos.filter(f => f.git.isInsideGitRepo && f.git.isGitRoot);
3605
3824
  return childrenRepos;
3606
3825
  }
3607
- async pullProcess(cloneChildren = false) {
3826
+ async setRemoteOriginType(setOrigin) {
3827
+ /* */
3828
+ /* */
3829
+ /* */
3830
+ /* */
3831
+ /* */
3832
+ /* */
3833
+ /* */
3834
+ /* */
3835
+ /* */
3836
+ return (void 0);
3837
+ }
3838
+ async pullProcess(options = {}) {
3839
+ /* */
3840
+ /* */
3841
+ /* */
3842
+ /* */
3843
+ /* */
3844
+ /* */
3608
3845
  /* */
3609
3846
  /* */
3610
3847
  /* */
@@ -3812,6 +4049,44 @@ class BaseGit extends BaseFeatureForProject {
3812
4049
  /* */
3813
4050
  /* */
3814
4051
  /* */
4052
+ /* */
4053
+ /* */
4054
+ /* */
4055
+ /* */
4056
+ /* */
4057
+ /* */
4058
+ /* */
4059
+ /* */
4060
+ /* */
4061
+ /* */
4062
+ /* */
4063
+ /* */
4064
+ /* */
4065
+ /* */
4066
+ /* */
4067
+ /* */
4068
+ /* */
4069
+ /* */
4070
+ /* */
4071
+ /* */
4072
+ /* */
4073
+ /* */
4074
+ /* */
4075
+ /* */
4076
+ /* */
4077
+ /* */
4078
+ /* */
4079
+ /* */
4080
+ /* */
4081
+ /* */
4082
+ /* */
4083
+ /* */
4084
+ /* */
4085
+ /* */
4086
+ /* */
4087
+ /* */
4088
+ /* */
4089
+ /* */
3815
4090
  return (void 0);
3816
4091
  }
3817
4092
  _beforeAnyActionOnGitRoot() {
@@ -3866,7 +4141,24 @@ class BaseGit extends BaseFeatureForProject {
3866
4141
  /* */
3867
4142
  return (void 0);
3868
4143
  }
3869
- async _getCommitMessage(typeofCommit, args, commitMessageRequired) {
4144
+ async _getCommitMessage(typeOfCommit, args, commitMessageRequired,
4145
+ /**
4146
+ * only needed when push github
4147
+ * and I forgot to add my username before issue
4148
+ * firedev pfix proper input my-repo#344
4149
+ * that should be
4150
+ * firedev pfix proper input my-username/my-repo#344
4151
+ */
4152
+ currentOrigin) {
4153
+ /* */
4154
+ /* */
4155
+ /* */
4156
+ /* */
4157
+ /* */
4158
+ /* */
4159
+ /* */
4160
+ /* */
4161
+ /* */
3870
4162
  /* */
3871
4163
  /* */
3872
4164
  /* */
@@ -4179,6 +4471,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
4179
4471
  /* */
4180
4472
  /* */
4181
4473
  /* */
4474
+ /* */
4182
4475
  return (void 0);
4183
4476
  }
4184
4477
  async confirmNewVersion() {
@@ -4535,6 +4828,9 @@ ${await this.getLastChangesFromCommits({
4535
4828
  ;
4536
4829
  ({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-release-process.ts
4537
4830
 
4831
+ const openSourceProvidersIssuePrefix = [
4832
+ 'GH',
4833
+ ];
4538
4834
  const regexTeamsID = /[A-Z0-9]+\#/;
4539
4835
  const regexCommitModuleInArgs = /\[[a-z|\-|\,]+\]/;
4540
4836
  const regexCommitModuleInBranch = /\-\-[a-z|\-|\_]+\-\-/;
@@ -4601,19 +4897,124 @@ class CommitData {
4601
4897
  /* */
4602
4898
  return (void 0);
4603
4899
  }
4900
+ /**
4901
+ *
4902
+ * @returns jiras (from oldest to newset)
4903
+ */
4904
+ static extractAndOrderIssuesFromOtherProjects(
4905
+ /**
4906
+ * example:
4907
+ * commit: proper git commands tnp/GH-9 darekf77/tnp-helpers/GH-10
4908
+ * feature/__tnp-GH-9____darekf77_tnp-helpers-GH10__-proper-git-commands
4909
+ */
4910
+ commitOrBranchName, currentOrigin) {
4911
+ /* */
4912
+ /* */
4913
+ /* */
4914
+ /* */
4915
+ /* */
4916
+ /* */
4917
+ /* */
4918
+ /* */
4919
+ /* */
4920
+ /* */
4921
+ /* */
4922
+ /* */
4923
+ /* */
4924
+ /* */
4925
+ /* */
4926
+ /* */
4927
+ /* */
4928
+ /* */
4929
+ /* */
4930
+ /* */
4931
+ /* */
4932
+ /* */
4933
+ /* */
4934
+ /* */
4935
+ /* */
4936
+ /* */
4937
+ /* */
4938
+ /* */
4939
+ /* */
4940
+ /* */
4941
+ /* */
4942
+ /* */
4943
+ /* */
4944
+ /* */
4945
+ /* */
4946
+ /* */
4947
+ /* */
4948
+ /* */
4949
+ /* */
4950
+ /* */
4951
+ /* */
4952
+ /* */
4953
+ /* */
4954
+ /* */
4955
+ /* */
4956
+ /* */
4957
+ /* */
4958
+ /* */
4959
+ /* */
4960
+ /* */
4961
+ /* */
4962
+ /* */
4963
+ /* */
4964
+ /* */
4965
+ /* */
4966
+ /* */
4967
+ /* */
4968
+ /* */
4969
+ /* */
4970
+ /* */
4971
+ /* */
4972
+ /* */
4973
+ /* */
4974
+ /* */
4975
+ /* */
4976
+ /* */
4977
+ /* */
4978
+ /* */
4979
+ /* */
4980
+ /* */
4981
+ /* */
4982
+ /* */
4983
+ /* */
4984
+ /* */
4985
+ /* */
4986
+ /* */
4987
+ /* */
4988
+ /* */
4989
+ return (void 0);
4990
+ }
4604
4991
  static cleanMessageFromJiraNumTeamIdEtc(message, optinos) {
4605
4992
  message = message || '';
4606
- let { teamID, commitModuleName, jiraNumbers } = optinos || {};
4993
+ let { teamID, commitModuleName, jiraNumbers, issuesFromOtherProjects } = optinos || {};
4607
4994
  teamID = teamID || this.getTeamsIdFrom(message).teamID || '';
4608
4995
  commitModuleName =
4609
4996
  commitModuleName ||
4610
4997
  this.getModuleNameFrom(message).commitModuleName ||
4611
4998
  '';
4612
4999
  jiraNumbers = jiraNumbers || this.extractAndOrderJiraNumbers(message) || [];
5000
+ issuesFromOtherProjects =
5001
+ issuesFromOtherProjects ||
5002
+ this.extractAndOrderIssuesFromOtherProjects(message) ||
5003
+ [];
4613
5004
  if (!!teamID.trim()) {
4614
5005
  message = message.replace(teamID.toLowerCase().replace('-', ' '), ' ');
4615
5006
  message = message.replace(teamID.toUpperCase().replace('-', ' '), ' ');
4616
5007
  }
5008
+ for (const issueFromOtherProj of issuesFromOtherProjects || []) {
5009
+ message = message.replace(`__${issueFromOtherProj.replace(/\//g, '_').replace(/\-/g, ' ')}__`, ' ');
5010
+ message = message.replace(issueFromOtherProj, ' ');
5011
+ message = message.replace(issueFromOtherProj.toLowerCase().replace('-', ' '), ' ');
5012
+ message = message.replace(issueFromOtherProj.toUpperCase().replace('-', ' '), ' ');
5013
+ message = message.replace(issueFromOtherProj.toLowerCase(), ' ');
5014
+ message = message.replace(regexCommitModuleInArgs, ' ');
5015
+ message = message.replace(regexCommitModuleInBranch, ' ');
5016
+ message = message.replace(/\ \ /g, ' ');
5017
+ }
4617
5018
  for (const jira of jiraNumbers || []) {
4618
5019
  message = message.replace(jira.toLowerCase().replace('-', ' '), ' ');
4619
5020
  message = message.replace(jira.toUpperCase().replace('-', ' '), ' ');
@@ -4653,7 +5054,36 @@ class CommitData {
4653
5054
  .replace(/\_/, ',');
4654
5055
  return { commitModuleName };
4655
5056
  }
4656
- static async getFromArgs(args, typeOfCommit) {
5057
+ static async getFromArgs(args, options) {
5058
+ /* */
5059
+ /* */
5060
+ /* */
5061
+ /* */
5062
+ /* */
5063
+ /* */
5064
+ /* */
5065
+ /* */
5066
+ /* */
5067
+ /* */
5068
+ /* */
5069
+ /* */
5070
+ /* */
5071
+ /* */
5072
+ /* */
5073
+ /* */
5074
+ /* */
5075
+ /* */
5076
+ /* */
5077
+ /* */
5078
+ /* */
5079
+ /* */
5080
+ /* */
5081
+ /* */
5082
+ /* */
5083
+ /* */
5084
+ /* */
5085
+ /* */
5086
+ /* */
4657
5087
  /* */
4658
5088
  /* */
4659
5089
  /* */
@@ -4692,7 +5122,19 @@ class CommitData {
4692
5122
  /* */
4693
5123
  return (void 0);
4694
5124
  }
4695
- static async getFromBranch(currentBranchName, releaseWords = []) {
5125
+ static async getFromBranch(currentBranchName, options) {
5126
+ /* */
5127
+ /* */
5128
+ /* */
5129
+ /* */
5130
+ /* */
5131
+ /* */
5132
+ /* */
5133
+ /* */
5134
+ /* */
5135
+ /* */
5136
+ /* */
5137
+ /* */
4696
5138
  /* */
4697
5139
  /* */
4698
5140
  /* */
@@ -4803,6 +5245,7 @@ class CommitData {
4803
5245
  teamID: this.teamID,
4804
5246
  commitModuleName: this.commitModuleName,
4805
5247
  jiraNumbers: this.jiraNumbers,
5248
+ issuesFromOtherProjects: this.issuesFromOtherProjects,
4806
5249
  });
4807
5250
  }
4808
5251
  /**
@@ -4828,7 +5271,70 @@ class CommitData {
4828
5271
  /* */
4829
5272
  return (void 0);
4830
5273
  }
5274
+ /**
5275
+ * ex. firedev/GH-12 darekf77/tnp-helpers/GH-4
5276
+ */
5277
+ get issuesFromOtherProjects() {
5278
+ return this.__issuesFromOtherProjects;
5279
+ }
5280
+ set issuesFromOtherProjects(value) {
5281
+ this.__issuesFromOtherProjects = value;
5282
+ }
4831
5283
  get commitMessage() {
5284
+ /* */
5285
+ /* */
5286
+ /* */
5287
+ /* */
5288
+ /* */
5289
+ /* */
5290
+ /* */
5291
+ /* */
5292
+ /* */
5293
+ /* */
5294
+ /* */
5295
+ /* */
5296
+ /* */
5297
+ /* */
5298
+ /* */
5299
+ /* */
5300
+ /* */
5301
+ /* */
5302
+ /* */
5303
+ /* */
5304
+ /* */
5305
+ /* */
5306
+ /* */
5307
+ /* */
5308
+ /* */
5309
+ /* */
5310
+ /* */
5311
+ /* */
5312
+ /* */
5313
+ /* */
5314
+ /* */
5315
+ /* */
5316
+ /* */
5317
+ /* */
5318
+ /* */
5319
+ /* */
5320
+ /* */
5321
+ /* */
5322
+ /* */
5323
+ /* */
5324
+ /* */
5325
+ /* */
5326
+ /* */
5327
+ /* */
5328
+ /* */
5329
+ /* */
5330
+ /* */
5331
+ /* */
5332
+ /* */
5333
+ /* */
5334
+ /* */
5335
+ /* */
5336
+ /* */
5337
+ /* */
4832
5338
  /* */
4833
5339
  /* */
4834
5340
  /* */
@@ -4878,6 +5384,27 @@ class CommitData {
4878
5384
  return (void 0);
4879
5385
  }
4880
5386
  get branchName() {
5387
+ /* */
5388
+ /* */
5389
+ /* */
5390
+ /* */
5391
+ /* */
5392
+ /* */
5393
+ /* */
5394
+ /* */
5395
+ /* */
5396
+ /* */
5397
+ /* */
5398
+ /* */
5399
+ /* */
5400
+ /* */
5401
+ /* */
5402
+ /* */
5403
+ /* */
5404
+ /* */
5405
+ /* */
5406
+ /* */
5407
+ /* */
4881
5408
  /* */
4882
5409
  /* */
4883
5410
  /* */
@@ -5102,6 +5629,7 @@ class LinkedPorjectsConfig {
5102
5629
  /* */
5103
5630
  ;
5104
5631
  ({}); // @--end-of-file-for-module=tnp-helpers lib/base/index.ts
5632
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9iYXNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxlQUFlLENBQUM7QUFDOUIsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLEtBQUs7QUFDTCxLQUFLO0FBQ0wsS0FBSztBQUNMLEtBQUs7QUFDTCxLQUFLO0FBR0osQ0FBQztBQUFBLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQywwREFBMEQiLCJzb3VyY2VzQ29udGVudCI6WyJcblxuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLXByb2plY3QtcmVzb2x2ZXInO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWZlYXR1cmUtZm9yLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWxpYnJhcnktYnVpbGQnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLW5wbS1oZWxwZXJzJztcbmV4cG9ydCAqIGZyb20gJy4vYmFzZS1saW5rZWQtcHJvamVjdHMnO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlLWdpdCc7XG5leHBvcnQgKiBmcm9tICcuL2Jhc2UtcmVsZWFzZS1wcm9jZXNzJztcbmV4cG9ydCAqIGZyb20gJy4vY29tbWl0LWRhdGEnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlLXByb2plY3QnO1xuZXhwb3J0ICogZnJvbSAnLi9saW5rZWQtcHJvamVjdCc7XG4vKiAqL1xuLyogKi9cbi8qICovXG4vKiAqL1xuLyogKi9cbiAgXG5cbiA7KHt9KTsgLy8gQC0tZW5kLW9mLWZpbGUtZm9yLW1vZHVsZT10bnAtaGVscGVycyBsaWIvYmFzZS9pbmRleC50cyJdfQ==
5105
5633
 
5106
5634
  const BaseProjectTypeArr = core.CoreModels.BaseProjectTypeArr;
5107
5635
  ;
@@ -5115,6 +5643,7 @@ const Helpers = HelpersFiredev.Instance;
5115
5643
  /* */
5116
5644
  ;
5117
5645
  ({}); // @--end-of-file-for-module=tnp-helpers lib/index.ts
5646
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxjQUFjLHlCQUF5QixDQUFDO0FBRXhDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUd0RSxPQUFPLEVBQUUsY0FBYyxJQUFJLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQzNEOztHQUVHLENBQUMsYUFBYTtBQUNqQixNQUFNLENBQUMsTUFBTSxPQUFPLEdBQVMsSUFBSSxDQUFDLFFBQWdCLENBQUM7QUFDbkQsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxVQUFVLENBQUM7QUFDekIsS0FBSztBQUNMLEtBQUs7QUFHSixDQUFDO0FBQUEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLHFEQUFxRCIsInNvdXJjZXNDb250ZW50IjpbIlxuXG5leHBvcnQgKiBmcm9tICcuL3ZhbGlkYXRvcnMvdmFsaWRhdG9ycyc7XG5cbmV4cG9ydCB7IEhlbHBlcnNBbmd1bGFyIH0gZnJvbSAnLi9oZWxwZXJzL2Zvci1icm93c2VyL2FuZ3VsYXIuaGVscGVyJztcblxuXG5pbXBvcnQgeyBIZWxwZXJzRmlyZWRldiBhcyBCYXNlIH0gZnJvbSAnLi9oZWxwZXJzL2hlbHBlcnMnO1xuLyoqXG4gKiBGaXJlZGV2IGhlbHBlcnNcbiAqLyAvLyBAdHMtaWdub3JlXG5leHBvcnQgY29uc3QgSGVscGVyczogQmFzZSA9IEJhc2UuSW5zdGFuY2UgYXMgQmFzZTtcbmV4cG9ydCAqIGZyb20gJy4vYmFzZSc7XG5leHBvcnQgKiBmcm9tICcuL21vZGVscyc7XG4vKiAqL1xuLyogKi9cbiAgXG5cbiA7KHt9KTsgLy8gQC0tZW5kLW9mLWZpbGUtZm9yLW1vZHVsZT10bnAtaGVscGVycyBsaWIvaW5kZXgudHMiXX0=
5118
5647
 
5119
5648
  /**
5120
5649
  * Generated bundle index. Do not edit.