tnp-helpers 18.0.4 → 18.0.9

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 (158) hide show
  1. package/assets/shared/shared_folder_info.txt +1 -1
  2. package/browser/README.md +24 -24
  3. package/browser/esm2022/lib/base/base-git.mjs +5 -5
  4. package/browser/esm2022/lib/base/base-library-build.mjs +114 -10
  5. package/browser/esm2022/lib/base/base-linked-projects.mjs +1 -1
  6. package/browser/esm2022/lib/base/base-npm-helpers.mjs +48 -15
  7. package/browser/esm2022/lib/base/base-project-resolver.mjs +4 -3
  8. package/browser/esm2022/lib/base/base-project.mjs +10 -1
  9. package/browser/esm2022/lib/base/base-release-process.mjs +2 -2
  10. package/browser/esm2022/lib/base/commit-data.mjs +2 -2
  11. package/browser/esm2022/lib/base/core-project.mjs +1 -1
  12. package/browser/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
  13. package/browser/esm2022/lib/helpers/helpers-strings.mjs +3 -3
  14. package/browser/esm2022/lib/helpers/helpers.mjs +6 -6
  15. package/browser/esm2022/lib/index.mjs +3 -3
  16. package/browser/esm2022/lib/models.mjs +1 -1
  17. package/browser/esm2022/lib/utils.mjs +141 -1
  18. package/browser/fesm2022/tnp-helpers.mjs +330 -43
  19. package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
  20. package/browser/lib/base/base-git.d.ts +6 -6
  21. package/browser/lib/base/base-library-build.d.ts +22 -8
  22. package/browser/lib/base/base-npm-helpers.d.ts +9 -19
  23. package/browser/lib/base/base-project.d.ts +8 -3
  24. package/browser/lib/base/commit-data.d.ts +5 -5
  25. package/browser/lib/base/core-project.d.ts +4 -3
  26. package/browser/lib/helpers/helpers.d.ts +3 -3
  27. package/browser/lib/index.d.ts +2 -2
  28. package/browser/lib/models.d.ts +16 -1
  29. package/browser/lib/utils.d.ts +32 -0
  30. package/client/README.md +24 -24
  31. package/client/esm2022/lib/base/base-git.mjs +5 -5
  32. package/client/esm2022/lib/base/base-library-build.mjs +114 -10
  33. package/client/esm2022/lib/base/base-linked-projects.mjs +1 -1
  34. package/client/esm2022/lib/base/base-npm-helpers.mjs +48 -15
  35. package/client/esm2022/lib/base/base-project-resolver.mjs +4 -3
  36. package/client/esm2022/lib/base/base-project.mjs +10 -1
  37. package/client/esm2022/lib/base/base-release-process.mjs +2 -2
  38. package/client/esm2022/lib/base/commit-data.mjs +2 -2
  39. package/client/esm2022/lib/base/core-project.mjs +1 -1
  40. package/client/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
  41. package/client/esm2022/lib/helpers/helpers-strings.mjs +3 -3
  42. package/client/esm2022/lib/helpers/helpers.mjs +6 -6
  43. package/client/esm2022/lib/index.mjs +3 -3
  44. package/client/esm2022/lib/models.mjs +1 -1
  45. package/client/esm2022/lib/utils.mjs +141 -1
  46. package/client/fesm2022/tnp-helpers.mjs +330 -43
  47. package/client/fesm2022/tnp-helpers.mjs.map +1 -1
  48. package/client/lib/base/base-git.d.ts +6 -6
  49. package/client/lib/base/base-library-build.d.ts +22 -8
  50. package/client/lib/base/base-npm-helpers.d.ts +9 -19
  51. package/client/lib/base/base-project.d.ts +8 -3
  52. package/client/lib/base/commit-data.d.ts +5 -5
  53. package/client/lib/base/core-project.d.ts +4 -3
  54. package/client/lib/helpers/helpers.d.ts +3 -3
  55. package/client/lib/index.d.ts +2 -2
  56. package/client/lib/models.d.ts +16 -1
  57. package/client/lib/utils.d.ts +32 -0
  58. package/lib/base/base-command-line.backend.d.ts +16 -10
  59. package/lib/base/base-command-line.backend.js +382 -165
  60. package/lib/base/base-command-line.backend.js.map +1 -1
  61. package/lib/base/base-db.js +2 -2
  62. package/lib/base/base-db.js.map +1 -1
  63. package/lib/base/base-git.d.ts +6 -6
  64. package/lib/base/base-git.js +26 -21
  65. package/lib/base/base-git.js.map +1 -1
  66. package/lib/base/base-library-build.d.ts +23 -19
  67. package/lib/base/base-library-build.js +403 -285
  68. package/lib/base/base-library-build.js.map +1 -1
  69. package/lib/base/base-linked-projects.js +1 -2
  70. package/lib/base/base-linked-projects.js.map +1 -1
  71. package/lib/base/base-npm-helpers.d.ts +8 -14
  72. package/lib/base/base-npm-helpers.js +103 -62
  73. package/lib/base/base-npm-helpers.js.map +1 -1
  74. package/lib/base/base-project-resolver.js +7 -5
  75. package/lib/base/base-project-resolver.js.map +1 -1
  76. package/lib/base/base-project.d.ts +8 -3
  77. package/lib/base/base-project.js +22 -6
  78. package/lib/base/base-project.js.map +1 -1
  79. package/lib/base/base-release-process.js +9 -4
  80. package/lib/base/base-release-process.js.map +1 -1
  81. package/lib/base/base-start-config.backend.js +1 -1
  82. package/lib/base/base-start-config.backend.js.map +1 -1
  83. package/lib/base/command-line-feature.backend.js +1 -1
  84. package/lib/base/command-line-feature.backend.js.map +1 -1
  85. package/lib/base/commit-data.d.ts +5 -5
  86. package/lib/base/commit-data.js +1 -1
  87. package/lib/base/core-project.d.ts +4 -3
  88. package/lib/base/core-project.js.map +1 -1
  89. package/lib/base/linked-project.js +1 -1
  90. package/lib/base/linked-project.js.map +1 -1
  91. package/lib/helpers/for-backend/helpers-cli-tool.backend.js +0 -1
  92. package/lib/helpers/for-backend/helpers-cli-tool.backend.js.map +1 -1
  93. package/lib/helpers/for-backend/helpers-console-gui.d.ts +6 -0
  94. package/lib/helpers/for-backend/helpers-console-gui.js +12 -4
  95. package/lib/helpers/for-backend/helpers-console-gui.js.map +1 -1
  96. package/lib/helpers/for-backend/helpers-file-folders.backend.d.ts +1 -1
  97. package/lib/helpers/for-backend/helpers-file-folders.backend.js +18 -18
  98. package/lib/helpers/for-backend/helpers-file-folders.backend.js.map +1 -1
  99. package/lib/helpers/for-backend/helpers-git.backend.d.ts +2 -2
  100. package/lib/helpers/for-backend/helpers-git.backend.js +206 -158
  101. package/lib/helpers/for-backend/helpers-git.backend.js.map +1 -1
  102. package/lib/helpers/for-backend/helpers-process.backend.d.ts +7 -0
  103. package/lib/helpers/for-backend/helpers-process.backend.js +13 -37
  104. package/lib/helpers/for-backend/helpers-process.backend.js.map +1 -1
  105. package/lib/helpers/for-browser/angular.helper.js +2 -2
  106. package/lib/helpers/for-browser/helpers-browser.js +1 -1
  107. package/lib/helpers/for-browser/helpers-browser.js.map +1 -1
  108. package/lib/helpers/helpers-strings.js +2 -2
  109. package/lib/helpers/helpers-strings.js.map +1 -1
  110. package/lib/helpers/helpers.d.ts +3 -3
  111. package/lib/helpers/helpers.js +28 -28
  112. package/lib/helpers/helpers.js.map +1 -1
  113. package/lib/index.d.ts +2 -2
  114. package/lib/index.js +2 -2
  115. package/lib/index.js.map +1 -1
  116. package/lib/models.d.ts +16 -1
  117. package/lib/models.js.map +1 -1
  118. package/lib/old/base-component.js +2 -2
  119. package/lib/old/base-formly-component.js +2 -2
  120. package/lib/old/dual-component-ctrl.js +2 -2
  121. package/lib/utils.d.ts +32 -0
  122. package/lib/utils.js +113 -1
  123. package/lib/utils.js.map +1 -1
  124. package/lib/validators/validators-firedev.d.ts +1 -1
  125. package/lib/validators/validators-firedev.js +5 -5
  126. package/lib/validators/validators-firedev.js.map +1 -1
  127. package/package.json +5 -5
  128. package/src.d.ts +1 -1
  129. package/{firedev.jsonc → taon.jsonc} +48 -42
  130. package/tmp-environment.json +37 -40
  131. package/websql/README.md +24 -24
  132. package/websql/esm2022/lib/base/base-git.mjs +5 -5
  133. package/websql/esm2022/lib/base/base-library-build.mjs +114 -10
  134. package/websql/esm2022/lib/base/base-linked-projects.mjs +1 -1
  135. package/websql/esm2022/lib/base/base-npm-helpers.mjs +48 -15
  136. package/websql/esm2022/lib/base/base-project-resolver.mjs +4 -3
  137. package/websql/esm2022/lib/base/base-project.mjs +10 -1
  138. package/websql/esm2022/lib/base/base-release-process.mjs +2 -2
  139. package/websql/esm2022/lib/base/commit-data.mjs +2 -2
  140. package/websql/esm2022/lib/base/core-project.mjs +1 -1
  141. package/websql/esm2022/lib/helpers/for-browser/helpers-browser.mjs +2 -2
  142. package/websql/esm2022/lib/helpers/helpers-strings.mjs +3 -3
  143. package/websql/esm2022/lib/helpers/helpers.mjs +6 -6
  144. package/websql/esm2022/lib/index.mjs +3 -3
  145. package/websql/esm2022/lib/models.mjs +1 -1
  146. package/websql/esm2022/lib/utils.mjs +141 -1
  147. package/websql/fesm2022/tnp-helpers.mjs +330 -43
  148. package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
  149. package/websql/lib/base/base-git.d.ts +6 -6
  150. package/websql/lib/base/base-library-build.d.ts +22 -8
  151. package/websql/lib/base/base-npm-helpers.d.ts +9 -17
  152. package/websql/lib/base/base-project.d.ts +9 -8
  153. package/websql/lib/base/commit-data.d.ts +5 -5
  154. package/websql/lib/base/core-project.d.ts +4 -3
  155. package/websql/lib/helpers/helpers.d.ts +3 -3
  156. package/websql/lib/index.d.ts +2 -2
  157. package/websql/lib/models.d.ts +16 -1
  158. package/websql/lib/utils.d.ts +32 -0
@@ -171,6 +171,146 @@ var UtilsNpm;
171
171
  return `${major}.${minor}.${patch}${alphaOrBetaOrRc ? '.' + alphaOrBetaOrRc : ''}`;
172
172
  };
173
173
  })(UtilsNpm || (UtilsNpm = {}));
174
+ var UtilsTerminal;
175
+ (function (UtilsTerminal) {
176
+ const transformChoices = (choices) => {
177
+ /* */
178
+ /* */
179
+ /* */
180
+ /* */
181
+ /* */
182
+ /* */
183
+ /* */
184
+ /* */
185
+ /* */
186
+ /* */
187
+ /* */
188
+ /* */
189
+ return (void 0);
190
+ };
191
+ UtilsTerminal.multiselect = async (options) => {
192
+ /* */
193
+ /* */
194
+ /* */
195
+ /* */
196
+ /* */
197
+ /* */
198
+ /* */
199
+ /* */
200
+ /* */
201
+ /* */
202
+ /* */
203
+ /* */
204
+ /* */
205
+ /* */
206
+ /* */
207
+ /* */
208
+ /* */
209
+ /* */
210
+ /* */
211
+ /* */
212
+ /* */
213
+ /* */
214
+ /* */
215
+ /* */
216
+ /* */
217
+ /* */
218
+ /* */
219
+ /* */
220
+ /* */
221
+ /* */
222
+ /* */
223
+ /* */
224
+ /* */
225
+ /* */
226
+ /* */
227
+ /* */
228
+ /* */
229
+ /* */
230
+ /* */
231
+ /* */
232
+ /* */
233
+ /* */
234
+ /* */
235
+ /* */
236
+ /* */
237
+ /* */
238
+ /* */
239
+ /* */
240
+ /* */
241
+ /* */
242
+ /* */
243
+ /* */
244
+ /* */
245
+ /* */
246
+ /* */
247
+ /* */
248
+ /* */
249
+ /* */
250
+ /* */
251
+ /* */
252
+ /* */
253
+ /* */
254
+ /* */
255
+ /* */
256
+ /* */
257
+ /* */
258
+ /* */
259
+ /* */
260
+ /* */
261
+ /* */
262
+ /* */
263
+ /* */
264
+ /* */
265
+ /* */
266
+ /* */
267
+ return (void 0);
268
+ };
269
+ UtilsTerminal.select = async (options) => {
270
+ /* */
271
+ /* */
272
+ /* */
273
+ /* */
274
+ /* */
275
+ /* */
276
+ /* */
277
+ /* */
278
+ /* */
279
+ /* */
280
+ /* */
281
+ /* */
282
+ /* */
283
+ /* */
284
+ /* */
285
+ /* */
286
+ /* */
287
+ /* */
288
+ /* */
289
+ /* */
290
+ /* */
291
+ /* */
292
+ /* */
293
+ /* */
294
+ /* */
295
+ /* */
296
+ /* */
297
+ /* */
298
+ /* */
299
+ /* */
300
+ /* */
301
+ /* */
302
+ /* */
303
+ /* */
304
+ /* */
305
+ /* */
306
+ /* */
307
+ /* */
308
+ /* */
309
+ /* */
310
+ /* */
311
+ return (void 0);
312
+ };
313
+ })(UtilsTerminal || (UtilsTerminal = {}));
174
314
  ;
175
315
  ({}); // @--end-of-file-for-module=tnp-helpers lib/utils.ts
176
316
 
@@ -355,14 +495,14 @@ class HelpersStrings {
355
495
  */
356
496
  interpolateString(value) {
357
497
  if (typeof value !== 'string') {
358
- Helpers.warn('[firedev-heleprs] Value for interpolation is not string: ', value);
498
+ Helpers.warn('[taon-heleprs] Value for interpolation is not string: ', value);
359
499
  return value;
360
500
  }
361
501
  return {
362
502
  withParameters(parameters) {
363
503
  if (typeof parameters !== 'object') {
364
504
  Helpers.log(parameters);
365
- Helpers.warn('[firedev-heleprs] Parameters are not a object: ');
505
+ Helpers.warn('[taon-heleprs] Parameters are not a object: ');
366
506
  return value;
367
507
  }
368
508
  return value.replace(/{([^{}]*)}/g, function (a, b) {
@@ -607,7 +747,7 @@ class HelpersNumber {
607
747
  ;
608
748
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers/helpers-numbers.ts
609
749
 
610
- const key = Symbol('[firedev-helpers] helper browser key');
750
+ const key = Symbol('[taon-helpers] helper browser key');
611
751
  class HelpersBrowser {
612
752
  static { this.callbacks = []; }
613
753
  static onInit(callback) {
@@ -675,12 +815,12 @@ function applyMixins(derivedCtor, baseCtors) {
675
815
  });
676
816
  });
677
817
  }
678
- class HelpersFiredev extends CoreHelpers {
818
+ class HelpersTaon extends CoreHelpers {
679
819
  static get Instance() {
680
- if (!HelpersFiredev._instance) {
681
- HelpersFiredev._instance = new HelpersFiredev();
820
+ if (!HelpersTaon._instance) {
821
+ HelpersTaon._instance = new HelpersTaon();
682
822
  }
683
- return HelpersFiredev._instance;
823
+ return HelpersTaon._instance;
684
824
  }
685
825
  constructor(
686
826
  /* */
@@ -1067,7 +1207,7 @@ class HelpersFiredev extends CoreHelpers {
1067
1207
  return (void 0);
1068
1208
  }
1069
1209
  }
1070
- applyMixins(HelpersFiredev, [
1210
+ applyMixins(HelpersTaon, [
1071
1211
  HelpersStringsRegexes,
1072
1212
  /* */
1073
1213
  /* */
@@ -1181,7 +1321,7 @@ class BaseProjectResolver {
1181
1321
  /**
1182
1322
  * general name for project company
1183
1323
  */
1184
- this.orgName = 'firedev';
1324
+ this.orgName = 'taon';
1185
1325
  this.configDb = new ConfigDatabase(this);
1186
1326
  this.projectsDb = new ProjectDatabase(this);
1187
1327
  this.NPM_PROJECT_KEY = 'npm';
@@ -1354,7 +1494,8 @@ class BaseProjectResolver {
1354
1494
  }
1355
1495
  unload(projectOrLocationOfProject) {
1356
1496
  const location = _.isString(projectOrLocationOfProject)
1357
- ? projectOrLocationOfProject : projectOrLocationOfProject?.location;
1497
+ ? projectOrLocationOfProject
1498
+ : projectOrLocationOfProject?.location;
1358
1499
  this.projects = this.projects.filter(f => f.location !== location);
1359
1500
  this.emptyLocations = this.emptyLocations.filter(f => f !== location);
1360
1501
  }
@@ -1866,6 +2007,9 @@ class BaseProject {
1866
2007
  /* */
1867
2008
  /* */
1868
2009
  /* */
2010
+ /* */
2011
+ /* */
2012
+ /* */
1869
2013
  }
1870
2014
  removeFolderByRelativePath(relativePathToFolder) {
1871
2015
  /* */
@@ -2123,6 +2267,12 @@ class BaseProject {
2123
2267
  async struct(initOptions) {
2124
2268
  throw new Error('TODO IMPLEMENT');
2125
2269
  }
2270
+ /**
2271
+ * init and build() project
2272
+ */
2273
+ async test(testOptions) {
2274
+ throw new Error('TODO IMPLEMENT');
2275
+ }
2126
2276
  /**
2127
2277
  * init and build() project
2128
2278
  */
@@ -2204,7 +2354,33 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2204
2354
  this.cache = {};
2205
2355
  }
2206
2356
  sortByDeps(libraries) {
2207
- return libraries;
2357
+ /* */
2358
+ /* */
2359
+ /* */
2360
+ /* */
2361
+ /* */
2362
+ /* */
2363
+ /* */
2364
+ /* */
2365
+ /* */
2366
+ /* */
2367
+ /* */
2368
+ /* */
2369
+ /* */
2370
+ /* */
2371
+ /* */
2372
+ /* */
2373
+ /* */
2374
+ /* */
2375
+ /* */
2376
+ /* */
2377
+ /* */
2378
+ /* */
2379
+ /* */
2380
+ /* */
2381
+ /* */
2382
+ /* */
2383
+ return (void 0);
2208
2384
  }
2209
2385
  /**
2210
2386
  * Use cases:
@@ -2217,7 +2393,35 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2217
2393
  * 5. build selected libraries in watch mode
2218
2394
  * (skip normal build for not selected libraries)
2219
2395
  */
2220
- async selectAndSaveLibraries({ libs: selectedLibs, watch, watchBuildSupported, }) {
2396
+ async selectAndSaveLibraries({ selectedLibs, watch, watchBuildSupported, skipAllLibsQuestion, useLastUserConfiguration, }) {
2397
+ /* */
2398
+ /* */
2399
+ /* */
2400
+ /* */
2401
+ /* */
2402
+ /* */
2403
+ /* */
2404
+ /* */
2405
+ /* */
2406
+ /* */
2407
+ /* */
2408
+ /* */
2409
+ /* */
2410
+ /* */
2411
+ /* */
2412
+ /* */
2413
+ /* */
2414
+ /* */
2415
+ /* */
2416
+ /* */
2417
+ /* */
2418
+ /* */
2419
+ /* */
2420
+ /* */
2421
+ /* */
2422
+ /* */
2423
+ /* */
2424
+ /* */
2221
2425
  /* */
2222
2426
  /* */
2223
2427
  /* */
@@ -2305,6 +2509,13 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2305
2509
  /* */
2306
2510
  /* */
2307
2511
  /* */
2512
+ /* */
2513
+ /* */
2514
+ /* */
2515
+ /* */
2516
+ return (void 0);
2517
+ }
2518
+ getLibraries() {
2308
2519
  /* */
2309
2520
  /* */
2310
2521
  /* */
@@ -2321,7 +2532,12 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2321
2532
  /* */
2322
2533
  return (void 0);
2323
2534
  }
2324
- async selectLibraries({ watch, watchBuildSupported, }) {
2535
+ /**
2536
+ * Angular library build
2537
+ */
2538
+ async buildLibraries({ watch = false, strategy, releaseBuild = false, buildType, copylink_to_node_modules, outputLineReplace, libraries, useLastUserConfiguration, } = {}) {
2539
+ /* */
2540
+ /* */
2325
2541
  /* */
2326
2542
  /* */
2327
2543
  /* */
@@ -2345,12 +2561,6 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2345
2561
  /* */
2346
2562
  /* */
2347
2563
  /* */
2348
- return (void 0);
2349
- }
2350
- /**
2351
- * Angular library build
2352
- */
2353
- async buildLibraries({ watch = false, strategy, releaseBuild = false, buildType, copylink_to_node_modules, } = {}) {
2354
2564
  /* */
2355
2565
  /* */
2356
2566
  /* */
@@ -2443,6 +2653,9 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2443
2653
  /* */
2444
2654
  /* */
2445
2655
  /* */
2656
+ }
2657
+ async libWatchBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }) {
2658
+ /* */
2446
2659
  /* */
2447
2660
  /* */
2448
2661
  /* */
@@ -2486,6 +2699,11 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2486
2699
  /* */
2487
2700
  /* */
2488
2701
  /* */
2702
+ /* */
2703
+ /* */
2704
+ return (void 0);
2705
+ }
2706
+ async libNormalBuildProcess({ lib, locationsForNodeModules, strategy, buildType, outputLineReplace, }) {
2489
2707
  /* */
2490
2708
  /* */
2491
2709
  /* */
@@ -2528,6 +2746,42 @@ class BaseLibraryBuild extends BaseFeatureForProject {
2528
2746
  /* */
2529
2747
  /* */
2530
2748
  /* */
2749
+ /* */
2750
+ /* */
2751
+ /* */
2752
+ /* */
2753
+ /* */
2754
+ /* */
2755
+ /* */
2756
+ /* */
2757
+ /* */
2758
+ /* */
2759
+ /* */
2760
+ /* */
2761
+ /* */
2762
+ /* */
2763
+ /* */
2764
+ /* */
2765
+ /* */
2766
+ /* */
2767
+ /* */
2768
+ /* */
2769
+ /* */
2770
+ /* */
2771
+ /* */
2772
+ /* */
2773
+ /* */
2774
+ /* */
2775
+ /* */
2776
+ /* */
2777
+ /* */
2778
+ /* */
2779
+ /* */
2780
+ /* */
2781
+ /* */
2782
+ /* */
2783
+ /* */
2784
+ return (void 0);
2531
2785
  }
2532
2786
  getLibraryBuildComamnd(options) {
2533
2787
  /* */
@@ -2649,7 +2903,7 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2649
2903
  /**
2650
2904
  * @deprecated use updateDep
2651
2905
  */
2652
- updateDependency({ packageName, version, updateFiredevJsonFirst, }) {
2906
+ updateDependency({ packageName, version, updateTaonJsonFirst, }) {
2653
2907
  /* */
2654
2908
  /* */
2655
2909
  /* */
@@ -2691,7 +2945,10 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2691
2945
  /**
2692
2946
  * Update dependency in package.json
2693
2947
  */
2694
- async updateDep({ packageName, version, updateFiredevJsonFirst, addIfNotExists, }) {
2948
+ async updateDep({ packageName, version, updateTaonJsonFirst, addIfNotExists, }) {
2949
+ /* */
2950
+ /* */
2951
+ /* */
2695
2952
  /* */
2696
2953
  /* */
2697
2954
  /* */
@@ -2896,13 +3153,42 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2896
3153
  }
2897
3154
  async makeSureNodeModulesInstalled(options) {
2898
3155
  if (this.emptyNodeModules) {
2899
- this.reinstalNodeModules(options);
3156
+ await this.reinstallNodeModules(options);
2900
3157
  }
2901
3158
  }
2902
3159
  deleteNodeModules() {
2903
3160
  this.project.remove(config.folder.node_modules);
2904
3161
  }
2905
- async reinstallNodeModules(forcerRemoveNodeModules = false) {
3162
+ async reinstallNodeModules(options) {
3163
+ /* */
3164
+ /* */
3165
+ /* */
3166
+ /* */
3167
+ /* */
3168
+ /* */
3169
+ /* */
3170
+ /* */
3171
+ /* */
3172
+ /* */
3173
+ /* */
3174
+ /* */
3175
+ /* */
3176
+ /* */
3177
+ /* */
3178
+ /* */
3179
+ /* */
3180
+ /* */
3181
+ /* */
3182
+ /* */
3183
+ /* */
3184
+ /* */
3185
+ /* */
3186
+ /* */
3187
+ /* */
3188
+ /* */
3189
+ /* */
3190
+ /* */
3191
+ /* */
2906
3192
  /* */
2907
3193
  /* */
2908
3194
  /* */
@@ -2923,9 +3209,6 @@ class BaseNpmHelpers extends BaseFeatureForProject {
2923
3209
  /* */
2924
3210
  /* */
2925
3211
  /* */
2926
- return (void 0);
2927
- }
2928
- reinstalNodeModules(options) {
2929
3212
  /* */
2930
3213
  /* */
2931
3214
  /* */
@@ -3044,8 +3327,8 @@ class BaseNpmHelpers extends BaseFeatureForProject {
3044
3327
  biggerBuffer: true,
3045
3328
  });
3046
3329
  }
3047
- async prepareCommand(optiosn) {
3048
- let { pkg, remove, silent, useYarn, force, removeYarnOrPackageJsonLock, generateYarnOrPackageJsonLock, ignoreOptional, } = optiosn || {};
3330
+ async prepareCommand(options) {
3331
+ let { pkg, silent, useYarn, force, removeYarnOrPackageJsonLock, generateYarnOrPackageJsonLock, } = options || {};
3049
3332
  force = true; // TODO QUICK_FIX
3050
3333
  let command = '';
3051
3334
  const commonOptions = `--ignore-engines`;
@@ -3053,10 +3336,10 @@ class BaseNpmHelpers extends BaseFeatureForProject {
3053
3336
  const argsForFasterInstall = `${force ? '--force' : ''} ${commonOptions} `;
3054
3337
  command =
3055
3338
  `${removeYarnOrPackageJsonLock
3056
- ? `rm ${config.file.yarn_lock} ` +
3339
+ ? `(rm ${config.file.yarn_lock} || true) ` +
3057
3340
  `&& touch ${config.file.yarn_lock} && `
3058
3341
  : ''}` +
3059
- `yarn ${pkg ? (remove ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
3342
+ `yarn ${pkg ? (pkg?.installType === 'remove' ? 'remove' : 'add') : 'install'} ${pkg ? pkg.name : ''} ` +
3060
3343
  ` ${generateYarnOrPackageJsonLock ? '' : '--no-lockfile'} ` +
3061
3344
  ` ${argsForFasterInstall} ` +
3062
3345
  ` ${pkg && pkg.installType && pkg.installType === '--save-dev' ? '-dev' : ''} `;
@@ -3066,16 +3349,20 @@ class BaseNpmHelpers extends BaseFeatureForProject {
3066
3349
  `${silent ? '--silent --no-progress' : ''} `;
3067
3350
  command =
3068
3351
  `${removeYarnOrPackageJsonLock
3069
- ? `rm ${config.file.package_lock_json} ` +
3352
+ ? `(rm ${config.file.package_lock_json} || true) ` +
3070
3353
  `&& touch ${config.file.package_lock_json} && `
3071
3354
  : ''}` +
3072
3355
  `npx --node-options=--max-old-space-size=8000 npm ` +
3073
- `${remove ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
3356
+ `${pkg?.installType === 'remove' ? 'uninstall' : 'install'} ${pkg ? pkg.name : ''} ` +
3074
3357
  ` ${generateYarnOrPackageJsonLock ? '' : '--no-package-lock'} ` +
3075
- ` ${ignoreOptional ? '--ignore-optional' : ''} ` +
3076
3358
  ` ${pkg && pkg.installType ? pkg.installType : ''} ` +
3077
3359
  ` ${argsForFasterInstall} `;
3078
3360
  }
3361
+ Helpers.info(`Command for npm install:
3362
+
3363
+ ${command}
3364
+
3365
+ `);
3079
3366
  return command;
3080
3367
  }
3081
3368
  /**
@@ -3535,7 +3822,7 @@ class BaseGit extends BaseFeatureForProject {
3535
3822
  /* */
3536
3823
  return (void 0);
3537
3824
  }
3538
- fetch() {
3825
+ fetch(all = false) {
3539
3826
  /* */
3540
3827
  /* */
3541
3828
  return (void 0);
@@ -4198,9 +4485,9 @@ class BaseGit extends BaseFeatureForProject {
4198
4485
  /**
4199
4486
  * only needed when push github
4200
4487
  * and I forgot to add my username before issue
4201
- * firedev pfix proper input my-repo#344
4488
+ * taon pfix proper input my-repo#344
4202
4489
  * that should be
4203
- * firedev pfix proper input my-username/my-repo#344
4490
+ * taon pfix proper input my-username/my-repo#344
4204
4491
  */
4205
4492
  currentOrigin) {
4206
4493
  /* */
@@ -4254,7 +4541,7 @@ class BaseGit extends BaseFeatureForProject {
4254
4541
  return (void 0);
4255
4542
  }
4256
4543
  /**
4257
- * This will prevent accidental branch change for firedev projects
4544
+ * This will prevent accidental branch change for taon projects
4258
4545
  * @returns branch name
4259
4546
  */
4260
4547
  duringPushWarnIfProjectNotOnSpecyficDevBranch() {
@@ -4337,7 +4624,7 @@ class BaseReleaseProcess extends BaseFeatureForProject {
4337
4624
  }
4338
4625
  async reinstallNodeModules() {
4339
4626
  Helpers.taskStarted(`Reinstalling node_modules to recreate package-lock.json`);
4340
- this.project.npmHelpers.reinstalNodeModules();
4627
+ await this.project.npmHelpers.reinstallNodeModules();
4341
4628
  Helpers.taskDone(`Reinstalling node_modules to recreate package-lock.json`);
4342
4629
  }
4343
4630
  async selectChangelogCommits() {
@@ -5325,7 +5612,7 @@ class CommitData {
5325
5612
  return (void 0);
5326
5613
  }
5327
5614
  /**
5328
- * ex. firedev/GH-12 darekf77/tnp-helpers/GH-4
5615
+ * ex. taon/GH-12 darekf77/tnp-helpers/GH-4
5329
5616
  */
5330
5617
  get issuesFromOtherProjects() {
5331
5618
  return this.__issuesFromOtherProjects;
@@ -5689,18 +5976,18 @@ const BaseProjectTypeArr = core.CoreModels.BaseProjectTypeArr;
5689
5976
  ({}); // @--end-of-file-for-module=tnp-helpers lib/models.ts
5690
5977
 
5691
5978
  /**
5692
- * Firedev helpers
5979
+ * Taon helpers
5693
5980
  */ // @ts-ignore
5694
- const Helpers = HelpersFiredev.Instance;
5981
+ const Helpers = HelpersTaon.Instance;
5695
5982
  /* */
5696
5983
  /* */
5697
5984
  ;
5698
5985
  ({}); // @--end-of-file-for-module=tnp-helpers lib/index.ts
5699
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxjQUFjLHlCQUF5QixDQUFDO0FBRXhDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUd0RSxjQUFjLFNBQVMsQ0FBQztBQUN4QixPQUFPLEVBQUUsY0FBYyxJQUFJLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQzNEOztHQUVHLENBQUMsYUFBYTtBQUNqQixNQUFNLENBQUMsTUFBTSxPQUFPLEdBQVMsSUFBSSxDQUFDLFFBQWdCLENBQUM7QUFDbkQsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxVQUFVLENBQUM7QUFDekIsS0FBSztBQUNMLEtBQUs7QUFHSixDQUFDO0FBQUEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLHFEQUFxRCIsInNvdXJjZXNDb250ZW50IjpbIlxuXG5leHBvcnQgKiBmcm9tICcuL3ZhbGlkYXRvcnMvdmFsaWRhdG9ycyc7XG5cbmV4cG9ydCB7IEhlbHBlcnNBbmd1bGFyIH0gZnJvbSAnLi9oZWxwZXJzL2Zvci1icm93c2VyL2FuZ3VsYXIuaGVscGVyJztcblxuXG5leHBvcnQgKiBmcm9tICcuL3V0aWxzJztcbmltcG9ydCB7IEhlbHBlcnNGaXJlZGV2IGFzIEJhc2UgfSBmcm9tICcuL2hlbHBlcnMvaGVscGVycyc7XG4vKipcbiAqIEZpcmVkZXYgaGVscGVyc1xuICovIC8vIEB0cy1pZ25vcmVcbmV4cG9ydCBjb25zdCBIZWxwZXJzOiBCYXNlID0gQmFzZS5JbnN0YW5jZSBhcyBCYXNlO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vbW9kZWxzJztcbi8qICovXG4vKiAqL1xuICBcblxuIDsoe30pOyAvLyBALS1lbmQtb2YtZmlsZS1mb3ItbW9kdWxlPXRucC1oZWxwZXJzIGxpYi9pbmRleC50cyJdfQ==
5986
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi90bXAtbGlicy1mb3ItZGlzdC13ZWJzcWwvdG5wLWhlbHBlcnMvcHJvamVjdHMvdG5wLWhlbHBlcnMvc3JjL2xpYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxjQUFjLHlCQUF5QixDQUFDO0FBRXhDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQ0FBc0MsQ0FBQztBQUd0RSxjQUFjLFNBQVMsQ0FBQztBQUN4QixPQUFPLEVBQUUsV0FBVyxJQUFJLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3hEOztHQUVHLENBQUMsYUFBYTtBQUNqQixNQUFNLENBQUMsTUFBTSxPQUFPLEdBQVMsSUFBSSxDQUFDLFFBQWdCLENBQUM7QUFDbkQsY0FBYyxRQUFRLENBQUM7QUFDdkIsY0FBYyxVQUFVLENBQUM7QUFDekIsS0FBSztBQUNMLEtBQUs7QUFHSixDQUFDO0FBQUEsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLHFEQUFxRCIsInNvdXJjZXNDb250ZW50IjpbIlxuXG5leHBvcnQgKiBmcm9tICcuL3ZhbGlkYXRvcnMvdmFsaWRhdG9ycyc7XG5cbmV4cG9ydCB7IEhlbHBlcnNBbmd1bGFyIH0gZnJvbSAnLi9oZWxwZXJzL2Zvci1icm93c2VyL2FuZ3VsYXIuaGVscGVyJztcblxuXG5leHBvcnQgKiBmcm9tICcuL3V0aWxzJztcbmltcG9ydCB7IEhlbHBlcnNUYW9uIGFzIEJhc2UgfSBmcm9tICcuL2hlbHBlcnMvaGVscGVycyc7XG4vKipcbiAqIFRhb24gaGVscGVyc1xuICovIC8vIEB0cy1pZ25vcmVcbmV4cG9ydCBjb25zdCBIZWxwZXJzOiBCYXNlID0gQmFzZS5JbnN0YW5jZSBhcyBCYXNlO1xuZXhwb3J0ICogZnJvbSAnLi9iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vbW9kZWxzJztcbi8qICovXG4vKiAqL1xuICBcblxuIDsoe30pOyAvLyBALS1lbmQtb2YtZmlsZS1mb3ItbW9kdWxlPXRucC1oZWxwZXJzIGxpYi9pbmRleC50cyJdfQ==
5700
5987
 
5701
5988
  /**
5702
5989
  * Generated bundle index. Do not edit.
5703
5990
  */
5704
5991
 
5705
- export { BaseFeatureForProject, BaseGit, BaseLibraryBuild, BaseLinkedProjects, BaseNpmHelpers, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseReleaseProcess, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, UtilsNpm, Validators };
5992
+ export { BaseFeatureForProject, BaseGit, BaseLibraryBuild, BaseLinkedProjects, BaseNpmHelpers, BaseProject, BaseProjectResolver, BaseProjectTypeArr, BaseReleaseProcess, CommitData, CoreAngularProject, CoreProject, CoreTypescriptProject, Helpers, HelpersAngular, LinkedPorjectsConfig, LinkedProject, UtilsNpm, UtilsTerminal, Validators };
5706
5993
  //# sourceMappingURL=tnp-helpers.mjs.map