@gluhar/cli 3.0.0 → 3.0.2

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 (427) hide show
  1. package/CHANGELOG.md +628 -0
  2. package/README.md +11 -0
  3. package/package.json +46 -46
  4. package/src/GlobalOptions.ts +8 -0
  5. package/src/commands/blank/BlankOptions.ts +3 -0
  6. package/src/commands/blank/blank.ts +6 -0
  7. package/src/commands/blank/index.ts +8 -0
  8. package/src/commands/blank/log.ts +3 -0
  9. package/src/commands/build/BuildOptions.ts +3 -0
  10. package/src/commands/build/build.ts +24 -0
  11. package/src/commands/build/index.ts +8 -0
  12. package/src/commands/build/log.ts +3 -0
  13. package/src/commands/deinstall/DeinstallOptions.ts +3 -0
  14. package/src/commands/deinstall/deinstall.ts +19 -0
  15. package/src/commands/deinstall/index.ts +11 -0
  16. package/src/commands/deinstall/log.ts +3 -0
  17. package/src/commands/deploy/DeployOptions.ts +6 -0
  18. package/src/commands/deploy/deploy.ts +39 -0
  19. package/src/commands/deploy/deployIos.ts +48 -0
  20. package/src/commands/deploy/index.ts +20 -0
  21. package/src/commands/deploy/log.ts +3 -0
  22. package/src/commands/deploy/setSsr.ts +25 -0
  23. package/src/commands/dev/DevOptions.ts +4 -0
  24. package/src/commands/dev/dev.ts +15 -0
  25. package/src/commands/dev/devIos.ts +23 -0
  26. package/src/commands/dev/index.ts +12 -0
  27. package/src/commands/dev/log.ts +3 -0
  28. package/src/commands/generate/GenerateOptions.ts +9 -0
  29. package/src/commands/generate/generate.ts +29 -0
  30. package/src/commands/generate/generateCommand.ts +46 -0
  31. package/src/commands/generate/generateProject.ts +115 -0
  32. package/src/commands/generate/index.ts +19 -0
  33. package/src/commands/generate/log.ts +3 -0
  34. package/src/commands/index.ts +21 -0
  35. package/src/commands/reinstall/ReinstallOptions.ts +3 -0
  36. package/src/commands/reinstall/index.ts +11 -0
  37. package/src/commands/reinstall/log.ts +3 -0
  38. package/src/commands/reinstall/reinstall.ts +13 -0
  39. package/src/commands/release/ReleaseOptions.ts +8 -0
  40. package/src/commands/release/index.ts +40 -0
  41. package/src/commands/release/log.ts +3 -0
  42. package/src/commands/release/publish.ts +18 -0
  43. package/src/commands/release/release.ts +24 -0
  44. package/src/commands/release/tag.ts +119 -0
  45. package/src/commands/upgrade/UpgradeOptions.ts +3 -0
  46. package/src/commands/upgrade/index.ts +10 -0
  47. package/src/commands/upgrade/log.ts +3 -0
  48. package/src/commands/upgrade/upgrade.ts +10 -0
  49. package/src/commands/version/VersionOptions.ts +7 -0
  50. package/src/commands/version/getPreid.ts +7 -0
  51. package/src/commands/version/index.ts +18 -0
  52. package/src/commands/version/log.ts +3 -0
  53. package/src/commands/version/pimpChangelogs.ts +43 -0
  54. package/src/commands/version/version.ts +33 -0
  55. package/src/constants.ts +5 -0
  56. package/src/index.ts +24 -0
  57. package/src/preAction.ts +93 -0
  58. package/src/scripts/cmd/cd.ts +9 -0
  59. package/src/scripts/cmd/{executeBash.d.ts → executeBash.ts} +20 -10
  60. package/src/scripts/cmd/executeCmd.ts +23 -0
  61. package/src/scripts/cmd/{getBashOutput.d.ts → getBashOutput.ts} +23 -10
  62. package/src/scripts/cmd/getCmdOutput.ts +26 -0
  63. package/src/scripts/cmd/{index.d.ts → index.ts} +10 -8
  64. package/src/scripts/cmd/log.ts +3 -0
  65. package/src/scripts/cmd/parseArgs.ts +44 -0
  66. package/src/scripts/cmd/parseBashArgs.ts +21 -0
  67. package/src/scripts/cmd/types.ts +13 -0
  68. package/src/scripts/filesystem/copyDir.ts +29 -0
  69. package/src/scripts/filesystem/copyFiles.ts +75 -0
  70. package/src/scripts/filesystem/findFile.ts +29 -0
  71. package/src/scripts/filesystem/index.ts +15 -0
  72. package/src/scripts/filesystem/loadJsonFile.ts +17 -0
  73. package/src/scripts/filesystem/log.ts +3 -0
  74. package/src/scripts/filesystem/readDirRecursive.ts +21 -0
  75. package/src/scripts/git/branch/branchDelete.ts +32 -0
  76. package/src/scripts/git/branch/branchExists.ts +14 -0
  77. package/src/scripts/git/branch/checkout.ts +19 -0
  78. package/src/scripts/git/branch/getCurrentBranch.ts +37 -0
  79. package/src/scripts/git/clone.ts +20 -0
  80. package/src/scripts/git/commit.sh +0 -0
  81. package/src/scripts/git/getRepo.ts +11 -0
  82. package/src/scripts/git/index.ts +44 -0
  83. package/src/scripts/git/log.ts +3 -0
  84. package/src/scripts/git/openPr.ts +21 -0
  85. package/src/scripts/git/remoteStatus.ts +28 -0
  86. package/src/scripts/git/tag/createTag.ts +28 -0
  87. package/src/scripts/git/tag/deleteTag.ts +11 -0
  88. package/src/scripts/git/tag/getTags.ts +6 -0
  89. package/src/scripts/git/tag/pushAllTags.ts +6 -0
  90. package/src/scripts/git/tag/renameTag.ts +12 -0
  91. package/src/scripts/lerna/changed.ts +11 -0
  92. package/src/scripts/lerna/constants.ts +6 -0
  93. package/src/scripts/lerna/filterByDependency.ts +21 -0
  94. package/src/scripts/lerna/getConfig.ts +12 -0
  95. package/src/scripts/lerna/getDependencies.ts +25 -0
  96. package/src/scripts/lerna/getDetails.ts +44 -0
  97. package/src/scripts/lerna/index.ts +18 -0
  98. package/src/scripts/lerna/log.ts +3 -0
  99. package/src/scripts/lerna/publish.sh +0 -0
  100. package/src/scripts/lerna/types.ts +64 -0
  101. package/src/scripts/lerna/version.sh +1 -1
  102. package/src/utils/chalk.ts +4 -0
  103. package/src/utils/common.ts +16 -0
  104. package/src/utils/{index.d.ts → index.ts} +3 -4
  105. package/src/utils/inquirer.ts +20 -0
  106. package/src/utils/logger.ts +51 -0
  107. package/tsconfig.json +28 -0
  108. package/src/GlobalOptions.d.ts +0 -8
  109. package/src/GlobalOptions.d.ts.map +0 -1
  110. package/src/GlobalOptions.js +0 -2
  111. package/src/commands/blank/BlankOptions.d.ts +0 -4
  112. package/src/commands/blank/BlankOptions.d.ts.map +0 -1
  113. package/src/commands/blank/BlankOptions.js +0 -2
  114. package/src/commands/blank/blank.d.ts +0 -3
  115. package/src/commands/blank/blank.d.ts.map +0 -1
  116. package/src/commands/blank/blank.js +0 -8
  117. package/src/commands/blank/index.d.ts +0 -4
  118. package/src/commands/blank/index.d.ts.map +0 -1
  119. package/src/commands/blank/index.js +0 -9
  120. package/src/commands/blank/log.d.ts +0 -2
  121. package/src/commands/blank/log.d.ts.map +0 -1
  122. package/src/commands/blank/log.js +0 -5
  123. package/src/commands/build/BuildOptions.d.ts +0 -4
  124. package/src/commands/build/BuildOptions.d.ts.map +0 -1
  125. package/src/commands/build/BuildOptions.js +0 -2
  126. package/src/commands/build/build.d.ts +0 -3
  127. package/src/commands/build/build.d.ts.map +0 -1
  128. package/src/commands/build/build.js +0 -22
  129. package/src/commands/build/index.d.ts +0 -4
  130. package/src/commands/build/index.d.ts.map +0 -1
  131. package/src/commands/build/index.js +0 -9
  132. package/src/commands/build/log.d.ts +0 -2
  133. package/src/commands/build/log.d.ts.map +0 -1
  134. package/src/commands/build/log.js +0 -5
  135. package/src/commands/danka/DankaOptions.d.ts +0 -4
  136. package/src/commands/danka/DankaOptions.d.ts.map +0 -1
  137. package/src/commands/danka/DankaOptions.js +0 -2
  138. package/src/commands/danka/danka.d.ts +0 -3
  139. package/src/commands/danka/danka.d.ts.map +0 -1
  140. package/src/commands/danka/danka.js +0 -8
  141. package/src/commands/danka/index.d.ts +0 -4
  142. package/src/commands/danka/index.d.ts.map +0 -1
  143. package/src/commands/danka/index.js +0 -9
  144. package/src/commands/danka/log.d.ts +0 -2
  145. package/src/commands/danka/log.d.ts.map +0 -1
  146. package/src/commands/danka/log.js +0 -5
  147. package/src/commands/deinstall/DeinstallOptions.d.ts +0 -4
  148. package/src/commands/deinstall/DeinstallOptions.d.ts.map +0 -1
  149. package/src/commands/deinstall/DeinstallOptions.js +0 -2
  150. package/src/commands/deinstall/deinstall.d.ts +0 -3
  151. package/src/commands/deinstall/deinstall.d.ts.map +0 -1
  152. package/src/commands/deinstall/deinstall.js +0 -21
  153. package/src/commands/deinstall/index.d.ts +0 -4
  154. package/src/commands/deinstall/index.d.ts.map +0 -1
  155. package/src/commands/deinstall/index.js +0 -9
  156. package/src/commands/deinstall/log.d.ts +0 -2
  157. package/src/commands/deinstall/log.d.ts.map +0 -1
  158. package/src/commands/deinstall/log.js +0 -5
  159. package/src/commands/deploy/DeployOptions.d.ts +0 -7
  160. package/src/commands/deploy/DeployOptions.d.ts.map +0 -1
  161. package/src/commands/deploy/DeployOptions.js +0 -2
  162. package/src/commands/deploy/deploy.d.ts +0 -3
  163. package/src/commands/deploy/deploy.d.ts.map +0 -1
  164. package/src/commands/deploy/deploy.js +0 -33
  165. package/src/commands/deploy/deployIos.d.ts +0 -2
  166. package/src/commands/deploy/deployIos.d.ts.map +0 -1
  167. package/src/commands/deploy/deployIos.js +0 -44
  168. package/src/commands/deploy/index.d.ts +0 -4
  169. package/src/commands/deploy/index.d.ts.map +0 -1
  170. package/src/commands/deploy/index.js +0 -12
  171. package/src/commands/deploy/log.d.ts +0 -2
  172. package/src/commands/deploy/log.d.ts.map +0 -1
  173. package/src/commands/deploy/log.js +0 -5
  174. package/src/commands/deploy/setSsr.d.ts +0 -2
  175. package/src/commands/deploy/setSsr.d.ts.map +0 -1
  176. package/src/commands/deploy/setSsr.js +0 -25
  177. package/src/commands/dev/DevOptions.d.ts +0 -5
  178. package/src/commands/dev/DevOptions.d.ts.map +0 -1
  179. package/src/commands/dev/DevOptions.js +0 -2
  180. package/src/commands/dev/dev.d.ts +0 -3
  181. package/src/commands/dev/dev.d.ts.map +0 -1
  182. package/src/commands/dev/dev.js +0 -16
  183. package/src/commands/dev/devIos.d.ts +0 -3
  184. package/src/commands/dev/devIos.d.ts.map +0 -1
  185. package/src/commands/dev/devIos.js +0 -26
  186. package/src/commands/dev/index.d.ts +0 -4
  187. package/src/commands/dev/index.d.ts.map +0 -1
  188. package/src/commands/dev/index.js +0 -10
  189. package/src/commands/dev/log.d.ts +0 -2
  190. package/src/commands/dev/log.d.ts.map +0 -1
  191. package/src/commands/dev/log.js +0 -5
  192. package/src/commands/generate/GenerateOptions.d.ts +0 -9
  193. package/src/commands/generate/GenerateOptions.d.ts.map +0 -1
  194. package/src/commands/generate/GenerateOptions.js +0 -4
  195. package/src/commands/generate/generate.d.ts +0 -3
  196. package/src/commands/generate/generate.d.ts.map +0 -1
  197. package/src/commands/generate/generate.js +0 -22
  198. package/src/commands/generate/generateCommand.d.ts +0 -2
  199. package/src/commands/generate/generateCommand.d.ts.map +0 -1
  200. package/src/commands/generate/generateCommand.js +0 -36
  201. package/src/commands/generate/generateProject.d.ts +0 -3
  202. package/src/commands/generate/generateProject.d.ts.map +0 -1
  203. package/src/commands/generate/generateProject.js +0 -83
  204. package/src/commands/generate/index.d.ts +0 -4
  205. package/src/commands/generate/index.d.ts.map +0 -1
  206. package/src/commands/generate/index.js +0 -14
  207. package/src/commands/generate/log.d.ts +0 -2
  208. package/src/commands/generate/log.d.ts.map +0 -1
  209. package/src/commands/generate/log.js +0 -5
  210. package/src/commands/index.d.ts +0 -3
  211. package/src/commands/index.d.ts.map +0 -1
  212. package/src/commands/index.js +0 -25
  213. package/src/commands/kiss/KissOptions.d.ts +0 -4
  214. package/src/commands/kiss/KissOptions.d.ts.map +0 -1
  215. package/src/commands/kiss/KissOptions.js +0 -2
  216. package/src/commands/kiss/index.d.ts +0 -4
  217. package/src/commands/kiss/index.d.ts.map +0 -1
  218. package/src/commands/kiss/index.js +0 -9
  219. package/src/commands/kiss/kiss.d.ts +0 -3
  220. package/src/commands/kiss/kiss.d.ts.map +0 -1
  221. package/src/commands/kiss/kiss.js +0 -8
  222. package/src/commands/kiss/log.d.ts +0 -2
  223. package/src/commands/kiss/log.d.ts.map +0 -1
  224. package/src/commands/kiss/log.js +0 -5
  225. package/src/commands/reinstall/ReinstallOptions.d.ts +0 -4
  226. package/src/commands/reinstall/ReinstallOptions.d.ts.map +0 -1
  227. package/src/commands/reinstall/ReinstallOptions.js +0 -2
  228. package/src/commands/reinstall/index.d.ts +0 -4
  229. package/src/commands/reinstall/index.d.ts.map +0 -1
  230. package/src/commands/reinstall/index.js +0 -9
  231. package/src/commands/reinstall/log.d.ts +0 -2
  232. package/src/commands/reinstall/log.d.ts.map +0 -1
  233. package/src/commands/reinstall/log.js +0 -5
  234. package/src/commands/reinstall/reinstall.d.ts +0 -3
  235. package/src/commands/reinstall/reinstall.d.ts.map +0 -1
  236. package/src/commands/reinstall/reinstall.js +0 -14
  237. package/src/commands/release/ReleaseOptions.d.ts +0 -9
  238. package/src/commands/release/ReleaseOptions.d.ts.map +0 -1
  239. package/src/commands/release/ReleaseOptions.js +0 -2
  240. package/src/commands/release/index.d.ts +0 -4
  241. package/src/commands/release/index.d.ts.map +0 -1
  242. package/src/commands/release/index.js +0 -22
  243. package/src/commands/release/log.d.ts +0 -2
  244. package/src/commands/release/log.d.ts.map +0 -1
  245. package/src/commands/release/log.js +0 -5
  246. package/src/commands/release/publish.d.ts +0 -3
  247. package/src/commands/release/publish.d.ts.map +0 -1
  248. package/src/commands/release/publish.js +0 -18
  249. package/src/commands/release/release.d.ts +0 -3
  250. package/src/commands/release/release.d.ts.map +0 -1
  251. package/src/commands/release/release.js +0 -24
  252. package/src/commands/release/tag.d.ts +0 -23
  253. package/src/commands/release/tag.d.ts.map +0 -1
  254. package/src/commands/release/tag.js +0 -90
  255. package/src/commands/upgrade/UpgradeOptions.d.ts +0 -4
  256. package/src/commands/upgrade/UpgradeOptions.d.ts.map +0 -1
  257. package/src/commands/upgrade/UpgradeOptions.js +0 -2
  258. package/src/commands/upgrade/index.d.ts +0 -4
  259. package/src/commands/upgrade/index.d.ts.map +0 -1
  260. package/src/commands/upgrade/index.js +0 -9
  261. package/src/commands/upgrade/log.d.ts +0 -2
  262. package/src/commands/upgrade/log.d.ts.map +0 -1
  263. package/src/commands/upgrade/log.js +0 -5
  264. package/src/commands/upgrade/upgrade.d.ts +0 -3
  265. package/src/commands/upgrade/upgrade.d.ts.map +0 -1
  266. package/src/commands/upgrade/upgrade.js +0 -11
  267. package/src/commands/version/VersionOptions.d.ts +0 -8
  268. package/src/commands/version/VersionOptions.d.ts.map +0 -1
  269. package/src/commands/version/VersionOptions.js +0 -2
  270. package/src/commands/version/getPreid.d.ts +0 -2
  271. package/src/commands/version/getPreid.d.ts.map +0 -1
  272. package/src/commands/version/getPreid.js +0 -10
  273. package/src/commands/version/index.d.ts +0 -4
  274. package/src/commands/version/index.d.ts.map +0 -1
  275. package/src/commands/version/index.js +0 -12
  276. package/src/commands/version/log.d.ts +0 -2
  277. package/src/commands/version/log.d.ts.map +0 -1
  278. package/src/commands/version/log.js +0 -5
  279. package/src/commands/version/pimpChangelogs.d.ts +0 -2
  280. package/src/commands/version/pimpChangelogs.d.ts.map +0 -1
  281. package/src/commands/version/pimpChangelogs.js +0 -37
  282. package/src/commands/version/version.d.ts +0 -3
  283. package/src/commands/version/version.d.ts.map +0 -1
  284. package/src/commands/version/version.js +0 -33
  285. package/src/constants.d.ts +0 -4
  286. package/src/constants.d.ts.map +0 -1
  287. package/src/constants.js +0 -7
  288. package/src/index.d.ts +0 -3
  289. package/src/index.d.ts.map +0 -1
  290. package/src/index.js +0 -24
  291. package/src/preAction.d.ts +0 -3
  292. package/src/preAction.d.ts.map +0 -1
  293. package/src/preAction.js +0 -76
  294. package/src/scripts/cmd/cd.d.ts +0 -2
  295. package/src/scripts/cmd/cd.d.ts.map +0 -1
  296. package/src/scripts/cmd/cd.js +0 -15
  297. package/src/scripts/cmd/executeBash.d.ts.map +0 -1
  298. package/src/scripts/cmd/executeBash.js +0 -21
  299. package/src/scripts/cmd/executeCmd.d.ts +0 -9
  300. package/src/scripts/cmd/executeCmd.d.ts.map +0 -1
  301. package/src/scripts/cmd/executeCmd.js +0 -23
  302. package/src/scripts/cmd/getBashOutput.d.ts.map +0 -1
  303. package/src/scripts/cmd/getBashOutput.js +0 -19
  304. package/src/scripts/cmd/getCmdOutput.d.ts +0 -10
  305. package/src/scripts/cmd/getCmdOutput.d.ts.map +0 -1
  306. package/src/scripts/cmd/getCmdOutput.js +0 -26
  307. package/src/scripts/cmd/index.d.ts.map +0 -1
  308. package/src/scripts/cmd/index.js +0 -25
  309. package/src/scripts/cmd/log.d.ts +0 -2
  310. package/src/scripts/cmd/log.d.ts.map +0 -1
  311. package/src/scripts/cmd/log.js +0 -5
  312. package/src/scripts/cmd/parseArgs.d.ts +0 -3
  313. package/src/scripts/cmd/parseArgs.d.ts.map +0 -1
  314. package/src/scripts/cmd/parseArgs.js +0 -41
  315. package/src/scripts/cmd/parseBashArgs.d.ts +0 -3
  316. package/src/scripts/cmd/parseBashArgs.d.ts.map +0 -1
  317. package/src/scripts/cmd/parseBashArgs.js +0 -16
  318. package/src/scripts/cmd/types.d.ts +0 -12
  319. package/src/scripts/cmd/types.d.ts.map +0 -1
  320. package/src/scripts/cmd/types.js +0 -2
  321. package/src/scripts/filesystem/copyDir.d.ts +0 -9
  322. package/src/scripts/filesystem/copyDir.d.ts.map +0 -1
  323. package/src/scripts/filesystem/copyDir.js +0 -26
  324. package/src/scripts/filesystem/copyFiles.d.ts +0 -11
  325. package/src/scripts/filesystem/copyFiles.d.ts.map +0 -1
  326. package/src/scripts/filesystem/copyFiles.js +0 -59
  327. package/src/scripts/filesystem/findFile.d.ts +0 -2
  328. package/src/scripts/filesystem/findFile.d.ts.map +0 -1
  329. package/src/scripts/filesystem/findFile.js +0 -24
  330. package/src/scripts/filesystem/index.d.ts +0 -10
  331. package/src/scripts/filesystem/index.d.ts.map +0 -1
  332. package/src/scripts/filesystem/index.js +0 -17
  333. package/src/scripts/filesystem/loadJsonFile.d.ts +0 -2
  334. package/src/scripts/filesystem/loadJsonFile.d.ts.map +0 -1
  335. package/src/scripts/filesystem/loadJsonFile.js +0 -18
  336. package/src/scripts/filesystem/log.d.ts +0 -2
  337. package/src/scripts/filesystem/log.d.ts.map +0 -1
  338. package/src/scripts/filesystem/log.js +0 -5
  339. package/src/scripts/filesystem/readDirRecursive.d.ts +0 -2
  340. package/src/scripts/filesystem/readDirRecursive.d.ts.map +0 -1
  341. package/src/scripts/filesystem/readDirRecursive.js +0 -16
  342. package/src/scripts/git/branch/branchDelete.d.ts +0 -6
  343. package/src/scripts/git/branch/branchDelete.d.ts.map +0 -1
  344. package/src/scripts/git/branch/branchDelete.js +0 -24
  345. package/src/scripts/git/branch/branchExists.d.ts +0 -5
  346. package/src/scripts/git/branch/branchExists.d.ts.map +0 -1
  347. package/src/scripts/git/branch/branchExists.js +0 -15
  348. package/src/scripts/git/branch/checkout.d.ts +0 -5
  349. package/src/scripts/git/branch/checkout.d.ts.map +0 -1
  350. package/src/scripts/git/branch/checkout.js +0 -15
  351. package/src/scripts/git/branch/getCurrentBranch.d.ts +0 -11
  352. package/src/scripts/git/branch/getCurrentBranch.d.ts.map +0 -1
  353. package/src/scripts/git/branch/getCurrentBranch.js +0 -28
  354. package/src/scripts/git/clone.d.ts +0 -10
  355. package/src/scripts/git/clone.d.ts.map +0 -1
  356. package/src/scripts/git/clone.js +0 -14
  357. package/src/scripts/git/getRepo.d.ts +0 -2
  358. package/src/scripts/git/getRepo.d.ts.map +0 -1
  359. package/src/scripts/git/getRepo.js +0 -13
  360. package/src/scripts/git/index.d.ts +0 -29
  361. package/src/scripts/git/index.d.ts.map +0 -1
  362. package/src/scripts/git/index.js +0 -40
  363. package/src/scripts/git/log.d.ts +0 -2
  364. package/src/scripts/git/log.d.ts.map +0 -1
  365. package/src/scripts/git/log.js +0 -5
  366. package/src/scripts/git/openPr.d.ts +0 -2
  367. package/src/scripts/git/openPr.d.ts.map +0 -1
  368. package/src/scripts/git/openPr.js +0 -20
  369. package/src/scripts/git/remoteStatus.d.ts +0 -3
  370. package/src/scripts/git/remoteStatus.d.ts.map +0 -1
  371. package/src/scripts/git/remoteStatus.js +0 -22
  372. package/src/scripts/git/tag/createTag.d.ts +0 -18
  373. package/src/scripts/git/tag/createTag.d.ts.map +0 -1
  374. package/src/scripts/git/tag/createTag.js +0 -18
  375. package/src/scripts/git/tag/deleteTag.d.ts +0 -2
  376. package/src/scripts/git/tag/deleteTag.d.ts.map +0 -1
  377. package/src/scripts/git/tag/deleteTag.js +0 -13
  378. package/src/scripts/git/tag/getTags.d.ts +0 -2
  379. package/src/scripts/git/tag/getTags.d.ts.map +0 -1
  380. package/src/scripts/git/tag/getTags.js +0 -8
  381. package/src/scripts/git/tag/pushAllTags.d.ts +0 -2
  382. package/src/scripts/git/tag/pushAllTags.d.ts.map +0 -1
  383. package/src/scripts/git/tag/pushAllTags.js +0 -8
  384. package/src/scripts/git/tag/renameTag.d.ts +0 -2
  385. package/src/scripts/git/tag/renameTag.d.ts.map +0 -1
  386. package/src/scripts/git/tag/renameTag.js +0 -14
  387. package/src/scripts/lerna/changed.d.ts +0 -3
  388. package/src/scripts/lerna/changed.d.ts.map +0 -1
  389. package/src/scripts/lerna/changed.js +0 -13
  390. package/src/scripts/lerna/constants.d.ts +0 -5
  391. package/src/scripts/lerna/constants.d.ts.map +0 -1
  392. package/src/scripts/lerna/constants.js +0 -7
  393. package/src/scripts/lerna/filterByDependency.d.ts +0 -7
  394. package/src/scripts/lerna/filterByDependency.d.ts.map +0 -1
  395. package/src/scripts/lerna/filterByDependency.js +0 -18
  396. package/src/scripts/lerna/getConfig.d.ts +0 -3
  397. package/src/scripts/lerna/getConfig.d.ts.map +0 -1
  398. package/src/scripts/lerna/getConfig.js +0 -13
  399. package/src/scripts/lerna/getDependencies.d.ts +0 -9
  400. package/src/scripts/lerna/getDependencies.d.ts.map +0 -1
  401. package/src/scripts/lerna/getDependencies.js +0 -23
  402. package/src/scripts/lerna/getDetails.d.ts +0 -3
  403. package/src/scripts/lerna/getDetails.d.ts.map +0 -1
  404. package/src/scripts/lerna/getDetails.js +0 -38
  405. package/src/scripts/lerna/index.d.ts +0 -14
  406. package/src/scripts/lerna/index.d.ts.map +0 -1
  407. package/src/scripts/lerna/index.js +0 -19
  408. package/src/scripts/lerna/log.d.ts +0 -2
  409. package/src/scripts/lerna/log.d.ts.map +0 -1
  410. package/src/scripts/lerna/log.js +0 -5
  411. package/src/scripts/lerna/types.d.ts +0 -62
  412. package/src/scripts/lerna/types.d.ts.map +0 -1
  413. package/src/scripts/lerna/types.js +0 -2
  414. package/src/utils/chalk.d.ts +0 -4
  415. package/src/utils/chalk.d.ts.map +0 -1
  416. package/src/utils/chalk.js +0 -9
  417. package/src/utils/common.d.ts +0 -2
  418. package/src/utils/common.d.ts.map +0 -1
  419. package/src/utils/common.js +0 -5
  420. package/src/utils/index.d.ts.map +0 -1
  421. package/src/utils/index.js +0 -19
  422. package/src/utils/inquirer.d.ts +0 -5
  423. package/src/utils/inquirer.d.ts.map +0 -1
  424. package/src/utils/inquirer.js +0 -21
  425. package/src/utils/logger.d.ts +0 -9
  426. package/src/utils/logger.d.ts.map +0 -1
  427. package/src/utils/logger.js +0 -36
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadJsonFile = void 0;
4
- const fs_1 = require("fs");
5
- const log_1 = require("./log");
6
- const loadJsonFile = (filePath) => {
7
- log_1.log.verbose('Try to load JSON file:', filePath);
8
- const invalidPath = !filePath || !(0, fs_1.existsSync)(filePath);
9
- if (invalidPath) {
10
- log_1.log.verbose('Invalid file path:', filePath);
11
- return null;
12
- }
13
- const json = (0, fs_1.readFileSync)(filePath).toString();
14
- const result = JSON.parse(json);
15
- log_1.log.verbose('Successfully loaded JSON file:', filePath);
16
- return result;
17
- };
18
- exports.loadJsonFile = loadJsonFile;
@@ -1,2 +0,0 @@
1
- export declare const log: import("../../utils").Logger;
2
- //# sourceMappingURL=log.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/filesystem/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAuB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.log = void 0;
4
- const utils_1 = require("../../utils");
5
- exports.log = (0, utils_1.logger)('filesystem');
@@ -1,2 +0,0 @@
1
- export declare const readDirRecursive: (dirPath: string) => string[];
2
- //# sourceMappingURL=readDirRecursive.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"readDirRecursive.d.ts","sourceRoot":"","sources":["../../../../src/scripts/filesystem/readDirRecursive.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB,YAAa,MAAM,KAAG,MAAM,EAC/B,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readDirRecursive = void 0;
4
- const fs_extra_1 = require("fs-extra");
5
- const path_1 = require("path");
6
- const readDirStep = (absoluteDirPath, relativeDirPath) => (0, fs_extra_1.readdirSync)(absoluteDirPath).reduce((result, current) => {
7
- const absPath = (0, path_1.resolve)(absoluteDirPath, current);
8
- const relPath = (0, path_1.join)(relativeDirPath, current);
9
- const isDirectory = (0, fs_extra_1.statSync)(absPath).isDirectory();
10
- if (isDirectory) {
11
- return [...result, ...readDirStep(absPath, relPath)];
12
- }
13
- return [...result, relPath];
14
- }, []);
15
- const readDirRecursive = (dirPath) => readDirStep(dirPath, '');
16
- exports.readDirRecursive = readDirRecursive;
@@ -1,6 +0,0 @@
1
- export interface BranchDeleteOptions {
2
- local?: boolean;
3
- remote?: boolean;
4
- }
5
- export declare const branchDelete: (branch: string, options?: BranchDeleteOptions) => void;
6
- //# sourceMappingURL=branchDelete.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branchDelete.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/branchDelete.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,YAAY,WACf,MAAM,YACL,mBAAmB,SAa7B,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- // BRANCH=${npm_config_branch};
3
- // LOCAL=$(git branch --list $BRANCH);
4
- // if [ $LOCAL ];
5
- // then git branch -D $BRANCH; fi;
6
- // REMOTE=$(git ls-remote --heads origin $BRANCH);
7
- // if [ $REMOTE ];
8
- // then git push origin -d $BRANCH; fi
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.branchDelete = void 0;
11
- const cmd_1 = require("../../../scripts/cmd");
12
- const log_1 = require("../log");
13
- const branchDelete = (branch, options = {}) => {
14
- const { local, remote } = options;
15
- if (local) {
16
- log_1.log.verbose('Delete local branch:', branch);
17
- (0, cmd_1.executeCmd)(`git branch -D ${branch}`);
18
- }
19
- if (remote) {
20
- log_1.log.verbose('Delete remote branch:', branch);
21
- (0, cmd_1.executeCmd)(`git push origin -d ${branch}`);
22
- }
23
- };
24
- exports.branchDelete = branchDelete;
@@ -1,5 +0,0 @@
1
- export declare const branchExists: (branchName: string) => {
2
- local: boolean;
3
- remote: boolean;
4
- };
5
- //# sourceMappingURL=branchExists.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branchExists.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/branchExists.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,eAAgB,MAAM;;;CAU9C,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.branchExists = void 0;
4
- const cmd_1 = require("../../../scripts/cmd");
5
- const log_1 = require("../log");
6
- const branchExists = (branchName) => {
7
- const local = !!(0, cmd_1.getCmdOutput)(`git branch --list ${branchName}`);
8
- const remote = !!(0, cmd_1.getCmdOutput)(`git ls-remote --heads origin ${branchName}`);
9
- log_1.log.verbose('branchExists:', { local, remote });
10
- return {
11
- local,
12
- remote,
13
- };
14
- };
15
- exports.branchExists = branchExists;
@@ -1,5 +0,0 @@
1
- export interface CheckoutOptions {
2
- newBranch?: boolean;
3
- }
4
- export declare const checkout: (branchName: string, opt?: CheckoutOptions) => import("child_process").SpawnSyncReturns<Buffer>;
5
- //# sourceMappingURL=checkout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/checkout.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ,eAAgB,MAAM,QAAO,eAAe,qDAYhE,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.checkout = void 0;
4
- const cmd_1 = require("../../../scripts/cmd");
5
- const checkout = (branchName, opt = {}) => {
6
- const { newBranch = false } = opt;
7
- const cmd = ['git checkout'];
8
- if (newBranch) {
9
- cmd.push('-b');
10
- }
11
- cmd.push(branchName);
12
- const fullCmd = cmd.join(' ');
13
- return (0, cmd_1.executeCmd)(fullCmd);
14
- };
15
- exports.checkout = checkout;
@@ -1,11 +0,0 @@
1
- export interface BranchInfo {
2
- fullName: string;
3
- type?: 'dev' | 'prep' | 'release' | string;
4
- name: string;
5
- isDev: boolean;
6
- isPrep: boolean;
7
- isRelease: boolean;
8
- isOther: boolean;
9
- }
10
- export declare const getCurrentBranch: () => BranchInfo;
11
- //# sourceMappingURL=getCurrentBranch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCurrentBranch.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/branch/getCurrentBranch.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,gBAAgB,QAAO,UAuBnC,CAAC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCurrentBranch = void 0;
4
- const cmd_1 = require("../../../scripts/cmd");
5
- const log_1 = require("../log");
6
- const getCurrentBranch = () => {
7
- const fullName = (0, cmd_1.getCmdOutput)('git rev-parse --abbrev-ref HEAD');
8
- let [type, name] = fullName.split('/');
9
- if (!name) {
10
- name = type;
11
- type = undefined;
12
- }
13
- const isDev = type === 'dev';
14
- const isPrep = type === 'prep';
15
- const isRelease = type === 'release';
16
- const isOther = !isDev && !isPrep && !isRelease;
17
- log_1.log.verbose('Current branch:', fullName);
18
- return {
19
- fullName,
20
- type,
21
- name,
22
- isDev,
23
- isPrep,
24
- isRelease,
25
- isOther,
26
- };
27
- };
28
- exports.getCurrentBranch = getCurrentBranch;
@@ -1,10 +0,0 @@
1
- export interface CloneOptions {
2
- branch?: string;
3
- singleBranch?: boolean;
4
- }
5
- /**
6
- * Clone a repo.
7
- * @param repo The repo name in the format: 'gluharry/starters'.
8
- */
9
- export declare const clone: (repo: string, dir?: string, options?: CloneOptions) => void;
10
- //# sourceMappingURL=clone.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clone.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/clone.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,SACV,MAAM,QACP,MAAM,YACF,YAAY,SAItB,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.clone = void 0;
4
- const cmd_1 = require("../../scripts/cmd");
5
- const log_1 = require("./log");
6
- /**
7
- * Clone a repo.
8
- * @param repo The repo name in the format: 'gluharry/starters'.
9
- */
10
- const clone = (repo, dir = "", options = {}) => {
11
- log_1.log.verbose("Cloning:", repo, dir, options);
12
- (0, cmd_1.executeCmd)(`git clone https://github.com/${repo}.git ${dir}`, options);
13
- };
14
- exports.clone = clone;
@@ -1,2 +0,0 @@
1
- export declare const getRepo: () => string;
2
- //# sourceMappingURL=getRepo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepo.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/getRepo.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,MAQ1B,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRepo = void 0;
4
- const cmd_1 = require("../cmd");
5
- const getRepo = () => {
6
- const url = (0, cmd_1.getCmdOutput)("git remote get-url origin");
7
- const urlParts = url.split("/");
8
- // "dev-tools.git"
9
- const lastPart = urlParts[urlParts.length - 1];
10
- // "dev-tools"
11
- return lastPart.split(".")[0];
12
- };
13
- exports.getRepo = getRepo;
@@ -1,29 +0,0 @@
1
- import type { Args } from "../cmd/types";
2
- export declare const git: {
3
- openPr: (sourceBranch: string, destinationBranch: string) => void;
4
- getRepo: () => string;
5
- remoteStatus: (branch?: string, upstream?: string) => import("./remoteStatus").RemoteStatus;
6
- commit: (args: Args) => import("child_process").SpawnSyncReturns<Buffer>;
7
- push: (branchOrTag: string, remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
8
- pull: (branchName: string, remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
9
- merge: (branchName: string, y?: boolean) => import("child_process").SpawnSyncReturns<Buffer>;
10
- branch: {
11
- exists: (branchName: string) => {
12
- local: boolean;
13
- remote: boolean;
14
- };
15
- delete: (branch: string, options?: import("./branch/branchDelete").BranchDeleteOptions) => void;
16
- getCurrent: () => import("./branch/getCurrentBranch").BranchInfo;
17
- checkout: (branchName: string, opt?: import("./branch/checkout").CheckoutOptions) => import("child_process").SpawnSyncReturns<Buffer>;
18
- };
19
- tag: {
20
- getAll: () => string[];
21
- create: (name: string, options?: import("./tag/createTag").TagCreateOptions) => void;
22
- delete: (name: string) => void;
23
- rename: (oldTagName: string, newTagName: string) => void;
24
- pushAll: (remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
25
- };
26
- clone: (repo: string, dir?: string, options?: import("./clone").CloneOptions) => void;
27
- };
28
- export type { BranchInfo } from "./branch/getCurrentBranch";
29
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAQzC,eAAO,MAAM,GAAG;;;;mBAIC,IAAI;wBACC,MAAM;uBAEP,MAAM;wBAEL,MAAM,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAgBxC,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.git = void 0;
4
- const cmd_1 = require("../../scripts/cmd");
5
- const branchDelete_1 = require("./branch/branchDelete");
6
- const openPr_1 = require("./openPr");
7
- const remoteStatus_1 = require("./remoteStatus");
8
- const getCurrentBranch_1 = require("./branch/getCurrentBranch");
9
- const checkout_1 = require("./branch/checkout");
10
- const branchExists_1 = require("./branch/branchExists");
11
- const createTag_1 = require("./tag/createTag");
12
- const getRepo_1 = require("./getRepo");
13
- const getTags_1 = require("./tag/getTags");
14
- const pushAllTags_1 = require("./tag/pushAllTags");
15
- const deleteTag_1 = require("./tag/deleteTag");
16
- const renameTag_1 = require("./tag/renameTag");
17
- const clone_1 = require("./clone");
18
- exports.git = {
19
- openPr: openPr_1.openPr,
20
- getRepo: getRepo_1.getRepo,
21
- remoteStatus: remoteStatus_1.remoteStatus,
22
- commit: (args) => (0, cmd_1.executeBash)(`git/commit`, args),
23
- push: (branchOrTag, remote = "origin") => (0, cmd_1.executeCmd)(`git push ${remote} ${branchOrTag}`),
24
- pull: (branchName, remote = "origin") => (0, cmd_1.executeCmd)(`git pull ${remote} ${branchName}`),
25
- merge: (branchName, y) => (0, cmd_1.executeCmd)(`git merge ${branchName}${y ? " --no-edit" : ""}`),
26
- branch: {
27
- exists: branchExists_1.branchExists,
28
- delete: branchDelete_1.branchDelete,
29
- getCurrent: getCurrentBranch_1.getCurrentBranch,
30
- checkout: checkout_1.checkout,
31
- },
32
- tag: {
33
- getAll: getTags_1.getTags,
34
- create: createTag_1.createTag,
35
- delete: deleteTag_1.deleteTag,
36
- rename: renameTag_1.renameTag,
37
- pushAll: pushAllTags_1.pushAllTags,
38
- },
39
- clone: clone_1.clone,
40
- };
@@ -1,2 +0,0 @@
1
- export declare const log: import("../../utils").Logger;
2
- //# sourceMappingURL=log.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,4BAAgB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.log = void 0;
4
- const utils_1 = require("../../utils");
5
- exports.log = (0, utils_1.logger)('git');
@@ -1,2 +0,0 @@
1
- export declare const openPr: (sourceBranch: string, destinationBranch: string) => void;
2
- //# sourceMappingURL=openPr.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openPr.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/openPr.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,iBAAkB,MAAM,qBAAqB,MAAM,SAgBrE,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.openPr = void 0;
4
- const log_1 = require("./log");
5
- const getRepo_1 = require("./getRepo");
6
- const openPr = (sourceBranch, destinationBranch) => {
7
- const repo = (0, getRepo_1.getRepo)();
8
- const link = [
9
- "https://bitbucket.org/pezak/",
10
- repo,
11
- "/pull-requests/new?",
12
- `source=${sourceBranch}`,
13
- "&",
14
- `dest=${destinationBranch}`,
15
- ].join("");
16
- log_1.log.verbose("Open PR Link:", link);
17
- log_1.log.error("Har: This command does not work for the moment.");
18
- // shell.open(link);
19
- };
20
- exports.openPr = openPr;
@@ -1,3 +0,0 @@
1
- export type RemoteStatus = 'up-to-date' | 'need-to-pull' | 'need-to-push' | 'diverged';
2
- export declare const remoteStatus: (branch?: string, upstream?: string) => RemoteStatus;
3
- //# sourceMappingURL=remoteStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remoteStatus.d.ts","sourceRoot":"","sources":["../../../../src/scripts/git/remoteStatus.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,cAAc,GACd,cAAc,GACd,UAAU,CAAC;AAEf,eAAO,MAAM,YAAY,0CAAsC,YAkB9D,CAAC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.remoteStatus = void 0;
4
- const cmd_1 = require("../../scripts/cmd");
5
- const log_1 = require("./log");
6
- const remoteStatus = (branch = '@', upstream = '@{u}') => {
7
- const local = (0, cmd_1.getCmdOutput)(`git rev-parse ${branch}`);
8
- const remote = (0, cmd_1.getCmdOutput)(`git rev-parse ${upstream}`);
9
- const base = (0, cmd_1.getCmdOutput)(`git merge-base ${branch} ${upstream}`);
10
- log_1.log.verbose('remoteStatus:', { local, remote, base });
11
- if (local === remote) {
12
- return 'up-to-date';
13
- }
14
- if (local === base) {
15
- return 'need-to-pull';
16
- }
17
- if (remote === base) {
18
- return 'need-to-push';
19
- }
20
- return 'diverged';
21
- };
22
- exports.remoteStatus = remoteStatus;
@@ -1,18 +0,0 @@
1
- export interface TagCreateOptions {
2
- /**
3
- * The object that the new tag will refer to, usually a commit.
4
- * Defaults to HEAD.
5
- */
6
- object?: string;
7
- /**
8
- * Replace an existing tag with the given name (instead of failing)
9
- */
10
- force?: boolean;
11
- }
12
- /**
13
- * Create a new annotated tag. Doesn't push it to the remote.
14
- * @param name The name of the tag to create.
15
- * @param object The object that the new tag will refer to, usually a commit. Defaults to HEAD.
16
- */
17
- export declare const createTag: (name: string, options?: TagCreateOptions) => void;
18
- //# sourceMappingURL=createTag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/createTag.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,SAAU,MAAM,YAAW,gBAAgB,SAOhE,CAAC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTag = void 0;
4
- const cmd_1 = require("../../cmd");
5
- /**
6
- * Create a new annotated tag. Doesn't push it to the remote.
7
- * @param name The name of the tag to create.
8
- * @param object The object that the new tag will refer to, usually a commit. Defaults to HEAD.
9
- */
10
- const createTag = (name, options = {}) => {
11
- const { object = '', force } = options;
12
- (0, cmd_1.executeCmd)(`git tag ${name} ${object}`, {
13
- force,
14
- annotate: true,
15
- message: '',
16
- });
17
- };
18
- exports.createTag = createTag;
@@ -1,2 +0,0 @@
1
- export declare const deleteTag: (name: string) => void;
2
- //# sourceMappingURL=deleteTag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/deleteTag.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,SAAU,MAAM,SAOrC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteTag = void 0;
4
- const cmd_1 = require("../../../scripts/cmd");
5
- const log_1 = require("../log");
6
- const deleteTag = (name) => {
7
- log_1.log.verbose('Deleting tag locally and from remote:', name);
8
- (0, cmd_1.executeCmd)('git tag', {
9
- d: name,
10
- });
11
- (0, cmd_1.executeCmd)(`git push origin :${name}`);
12
- };
13
- exports.deleteTag = deleteTag;
@@ -1,2 +0,0 @@
1
- export declare const getTags: () => string[];
2
- //# sourceMappingURL=getTags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTags.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/getTags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAO,MAAM,EAGR,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTags = void 0;
4
- const cmd_1 = require("../../cmd");
5
- const getTags = () => (0, cmd_1.getCmdOutput)('git tag', { list: true })
6
- .split('\n')
7
- .map((t) => t.trim());
8
- exports.getTags = getTags;
@@ -1,2 +0,0 @@
1
- export declare const pushAllTags: (remote?: string) => import("child_process").SpawnSyncReturns<Buffer>;
2
- //# sourceMappingURL=pushAllTags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pushAllTags.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/pushAllTags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,uEAGpB,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pushAllTags = void 0;
4
- const cmd_1 = require("../../../scripts/cmd");
5
- const pushAllTags = (remote = 'origin') => (0, cmd_1.executeCmd)(`git push ${remote}`, {
6
- tags: true,
7
- });
8
- exports.pushAllTags = pushAllTags;
@@ -1,2 +0,0 @@
1
- export declare const renameTag: (oldTagName: string, newTagName: string) => void;
2
- //# sourceMappingURL=renameTag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"renameTag.d.ts","sourceRoot":"","sources":["../../../../../src/scripts/git/tag/renameTag.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,eAAgB,MAAM,cAAc,MAAM,SAO/D,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renameTag = void 0;
4
- const log_1 = require("../log");
5
- const createTag_1 = require("./createTag");
6
- const deleteTag_1 = require("./deleteTag");
7
- const renameTag = (oldTagName, newTagName) => {
8
- log_1.log.verbose('Renaming tag ', oldTagName, ' -> ', newTagName);
9
- (0, createTag_1.createTag)(newTagName, {
10
- object: `${oldTagName}^{}`,
11
- });
12
- (0, deleteTag_1.deleteTag)(oldTagName);
13
- };
14
- exports.renameTag = renameTag;
@@ -1,3 +0,0 @@
1
- import type { LernaPackage } from './types';
2
- export declare const changed: () => LernaPackage[];
3
- //# sourceMappingURL=changed.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"changed.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/changed.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,OAAO,QAAO,YAAY,EAOtC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.changed = void 0;
4
- const cmd_1 = require("../cmd");
5
- const changed = () => {
6
- const jsonResult = (0, cmd_1.getCmdOutput)('npx lerna changed --json');
7
- if (!jsonResult) {
8
- return [];
9
- }
10
- const result = JSON.parse(jsonResult);
11
- return result;
12
- };
13
- exports.changed = changed;
@@ -1,5 +0,0 @@
1
- export declare const lernaJson = "lerna.json";
2
- export declare const INDEPENDENT_VERSION = "independent";
3
- export declare const packagesDir = "packages";
4
- export declare const packagesPrefix = "@pezak/";
5
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,cAAc,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.packagesPrefix = exports.packagesDir = exports.INDEPENDENT_VERSION = exports.lernaJson = void 0;
4
- exports.lernaJson = "lerna.json";
5
- exports.INDEPENDENT_VERSION = "independent";
6
- exports.packagesDir = "packages";
7
- exports.packagesPrefix = "@pezak/";
@@ -1,7 +0,0 @@
1
- /**
2
- * Get packages that have a given dependency.
3
- * @param dependency Name of the dependency.
4
- * @returns List of package names, that have the given dependency.
5
- */
6
- export declare function filterByDependency(dependency: string, excludePrivate?: boolean): string[];
7
- //# sourceMappingURL=filterByDependency.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterByDependency.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/filterByDependency.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,cAAc,UAAO,GACpB,MAAM,EAAE,CASV"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterByDependency = filterByDependency;
4
- const getDependencies_1 = require("./getDependencies");
5
- const log_1 = require("./log");
6
- /**
7
- * Get packages that have a given dependency.
8
- * @param dependency Name of the dependency.
9
- * @returns List of package names, that have the given dependency.
10
- */
11
- function filterByDependency(dependency, excludePrivate = true) {
12
- log_1.log.verbose('getConfig', dependency, excludePrivate);
13
- const allPackages = (0, getDependencies_1.getDependencies)(excludePrivate);
14
- return Object.keys(allPackages).filter((name) => {
15
- const deps = allPackages[name];
16
- return deps.includes(dependency);
17
- });
18
- }
@@ -1,3 +0,0 @@
1
- import type { LernaConfig } from './types';
2
- export declare const getConfig: () => LernaConfig | null;
3
- //# sourceMappingURL=getConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/scripts/lerna/getConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAI3C,eAAO,MAAM,SAAS,0BAKrB,CAAC"}