@depup/lerna 9.0.5-depup.0

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 (258) hide show
  1. package/README.md +88 -0
  2. package/dist/cli.js +50 -0
  3. package/dist/commands/changed/command.js +5806 -0
  4. package/dist/commands/changed/index.js +5195 -0
  5. package/dist/commands/clean/command.js +6271 -0
  6. package/dist/commands/clean/index.js +6157 -0
  7. package/dist/commands/diff/command.js +5313 -0
  8. package/dist/commands/diff/index.js +4742 -0
  9. package/dist/commands/diff/lib/get-last-commit.js +4240 -0
  10. package/dist/commands/diff/lib/has-commit.js +4233 -0
  11. package/dist/commands/exec/command.js +6010 -0
  12. package/dist/commands/exec/index.js +5337 -0
  13. package/dist/commands/import/command.js +5500 -0
  14. package/dist/commands/import/index.js +4931 -0
  15. package/dist/commands/info/command.js +5229 -0
  16. package/dist/commands/info/index.js +4685 -0
  17. package/dist/commands/init/command.js +5440 -0
  18. package/dist/commands/init/index.js +4872 -0
  19. package/dist/commands/list/command.js +5974 -0
  20. package/dist/commands/list/index.js +5309 -0
  21. package/dist/commands/publish/command.js +9271 -0
  22. package/dist/commands/publish/index.js +8771 -0
  23. package/dist/commands/publish/lib/create-temp-licenses.js +64 -0
  24. package/dist/commands/publish/lib/fetch-config.js +4763 -0
  25. package/dist/commands/publish/lib/get-current-sha.js +4764 -0
  26. package/dist/commands/publish/lib/get-current-tags.js +4776 -0
  27. package/dist/commands/publish/lib/get-npm-username.js +4886 -0
  28. package/dist/commands/publish/lib/get-packages-without-license.js +53 -0
  29. package/dist/commands/publish/lib/get-profile-data.js +4802 -0
  30. package/dist/commands/publish/lib/get-two-factor-auth-required.js +4855 -0
  31. package/dist/commands/publish/lib/get-whoami.js +4798 -0
  32. package/dist/commands/publish/lib/git-checkout.js +4761 -0
  33. package/dist/commands/publish/lib/remove-temp-licenses.js +54 -0
  34. package/dist/commands/publish/lib/verify-npm-package-access.js +4848 -0
  35. package/dist/commands/run/command.js +6229 -0
  36. package/dist/commands/run/index.js +5534 -0
  37. package/dist/commands/version/command.js +7415 -0
  38. package/dist/commands/version/index.js +7100 -0
  39. package/dist/commands/version/lib/create-release.js +4892 -0
  40. package/dist/commands/version/lib/get-current-branch.js +4764 -0
  41. package/dist/commands/version/lib/git-add.js +4817 -0
  42. package/dist/commands/version/lib/git-commit.js +4788 -0
  43. package/dist/commands/version/lib/git-push.js +4769 -0
  44. package/dist/commands/version/lib/git-tag.js +4771 -0
  45. package/dist/commands/version/lib/is-anything-committed.js +4765 -0
  46. package/dist/commands/version/lib/is-behind-upstream.js +4780 -0
  47. package/dist/commands/version/lib/is-breaking-change.js +61 -0
  48. package/dist/commands/version/lib/prompt-version.js +4833 -0
  49. package/dist/commands/version/lib/remote-branch-exists.js +4768 -0
  50. package/dist/commands/version/lib/update-lockfile-version.js +4791 -0
  51. package/dist/index.js +13093 -0
  52. package/dist/libs/child-process/src/forked-strong-log-transformer.d.ts +19 -0
  53. package/dist/libs/child-process/src/index.d.ts +46 -0
  54. package/dist/libs/child-process/src/set-exit-code.d.ts +1 -0
  55. package/dist/libs/commands/changed/src/command.d.ts +6 -0
  56. package/dist/libs/commands/changed/src/index.d.ts +15 -0
  57. package/dist/libs/commands/clean/src/command.d.ts +6 -0
  58. package/dist/libs/commands/diff/src/command.d.ts +6 -0
  59. package/dist/libs/commands/diff/src/index.d.ts +12 -0
  60. package/dist/libs/commands/diff/src/lib/get-last-commit.d.ts +7 -0
  61. package/dist/libs/commands/diff/src/lib/has-commit.d.ts +7 -0
  62. package/dist/libs/commands/exec/src/command.d.ts +6 -0
  63. package/dist/libs/commands/exec/src/index.d.ts +35 -0
  64. package/dist/libs/commands/import/src/command.d.ts +6 -0
  65. package/dist/libs/commands/import/src/index.d.ts +36 -0
  66. package/dist/libs/commands/info/src/command.d.ts +6 -0
  67. package/dist/libs/commands/info/src/index.d.ts +6 -0
  68. package/dist/libs/commands/init/src/command.d.ts +6 -0
  69. package/dist/libs/commands/init/src/index.d.ts +37 -0
  70. package/dist/libs/commands/list/src/command.d.ts +6 -0
  71. package/dist/libs/commands/list/src/index.d.ts +8 -0
  72. package/dist/libs/commands/publish/src/command.d.ts +6 -0
  73. package/dist/libs/commands/run/src/command.d.ts +7 -0
  74. package/dist/libs/commands/run/src/index.d.ts +39 -0
  75. package/dist/libs/commands/version/src/command.d.ts +6 -0
  76. package/dist/libs/core/src/index.d.ts +46 -0
  77. package/dist/libs/core/src/lib/add-dependencies.d.ts +2 -0
  78. package/dist/libs/core/src/lib/add-dependents.d.ts +2 -0
  79. package/dist/libs/core/src/lib/check-working-tree.d.ts +12 -0
  80. package/dist/libs/core/src/lib/cli.d.ts +14 -0
  81. package/dist/libs/core/src/lib/collect-uncommitted.d.ts +12 -0
  82. package/dist/libs/core/src/lib/collect-updates/collect-project-updates.d.ts +29 -0
  83. package/dist/libs/core/src/lib/collect-updates/has-tags.d.ts +6 -0
  84. package/dist/libs/core/src/lib/collect-updates/index.d.ts +1 -0
  85. package/dist/libs/core/src/lib/collect-updates/make-diff-predicate.d.ts +3 -0
  86. package/dist/libs/core/src/lib/command/clean-stack.d.ts +1 -0
  87. package/dist/libs/core/src/lib/command/create-project-graph-with-packages.d.ts +5 -0
  88. package/dist/libs/core/src/lib/command/default-options.d.ts +2 -0
  89. package/dist/libs/core/src/lib/command/detect-projects.d.ts +6 -0
  90. package/dist/libs/core/src/lib/command/index.d.ts +80 -0
  91. package/dist/libs/core/src/lib/command/is-git-initialized.d.ts +1 -0
  92. package/dist/libs/core/src/lib/command/log-package-error.d.ts +1 -0
  93. package/dist/libs/core/src/lib/command/warn-if-hanging.d.ts +1 -0
  94. package/dist/libs/core/src/lib/conventional-commits/apply-build-metadata.d.ts +4 -0
  95. package/dist/libs/core/src/lib/conventional-commits/constants.d.ts +17 -0
  96. package/dist/libs/core/src/lib/conventional-commits/get-changelog-config.d.ts +2 -0
  97. package/dist/libs/core/src/lib/conventional-commits/index.d.ts +3 -0
  98. package/dist/libs/core/src/lib/conventional-commits/make-bump-only-filter.d.ts +2 -0
  99. package/dist/libs/core/src/lib/conventional-commits/read-existing-changelog.d.ts +6 -0
  100. package/dist/libs/core/src/lib/conventional-commits/recommend-version.d.ts +6 -0
  101. package/dist/libs/core/src/lib/conventional-commits/update-changelog.d.ts +8 -0
  102. package/dist/libs/core/src/lib/corepack/exec-package-manager.d.ts +4 -0
  103. package/dist/libs/core/src/lib/corepack/index.d.ts +1 -0
  104. package/dist/libs/core/src/lib/corepack/is-corepack-enabled.d.ts +1 -0
  105. package/dist/libs/core/src/lib/cycles/get-cycles.d.ts +6 -0
  106. package/dist/libs/core/src/lib/cycles/index.d.ts +3 -0
  107. package/dist/libs/core/src/lib/cycles/merge-overlapping-cycles.d.ts +6 -0
  108. package/dist/libs/core/src/lib/cycles/report-cycles.d.ts +1 -0
  109. package/dist/libs/core/src/lib/describe-ref.d.ts +17 -0
  110. package/dist/libs/core/src/lib/filter-options.d.ts +15 -0
  111. package/dist/libs/core/src/lib/filter-projects.d.ts +4 -0
  112. package/dist/libs/core/src/lib/get-npm-exec-opts.d.ts +11 -0
  113. package/dist/libs/core/src/lib/get-package-manifest-path.d.ts +2 -0
  114. package/dist/libs/core/src/lib/get-packages-for-option.d.ts +4 -0
  115. package/dist/libs/core/src/lib/get-packed.d.ts +1 -0
  116. package/dist/libs/core/src/lib/git-checkout.d.ts +7 -0
  117. package/dist/libs/core/src/lib/has-npm-version.d.ts +1 -0
  118. package/dist/libs/core/src/lib/listable-format-projects.d.ts +24 -0
  119. package/dist/libs/core/src/lib/listable-options.d.ts +54 -0
  120. package/dist/libs/core/src/lib/log-packed.d.ts +14 -0
  121. package/dist/libs/core/src/lib/npm-conf/conf.d.ts +22 -0
  122. package/dist/libs/core/src/lib/npm-conf/env-replace.d.ts +1 -0
  123. package/dist/libs/core/src/lib/npm-conf/find-prefix.d.ts +1 -0
  124. package/dist/libs/core/src/lib/npm-conf/nerf-dart.d.ts +1 -0
  125. package/dist/libs/core/src/lib/npm-conf/parse-field.d.ts +1 -0
  126. package/dist/libs/core/src/lib/npm-install.d.ts +2 -0
  127. package/dist/libs/core/src/lib/npm-publish.d.ts +20 -0
  128. package/dist/libs/core/src/lib/npm-run-script.d.ts +2 -0
  129. package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-base.d.ts +6 -0
  130. package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-group.d.ts +21 -0
  131. package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-stream.d.ts +14 -0
  132. package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker.d.ts +10 -0
  133. package/dist/libs/core/src/lib/npmlog/gauge/index.d.ts +43 -0
  134. package/dist/libs/core/src/lib/npmlog/index.d.ts +76 -0
  135. package/dist/libs/core/src/lib/oidc.d.ts +25 -0
  136. package/dist/libs/core/src/lib/otplease.d.ts +15 -0
  137. package/dist/libs/core/src/lib/output.d.ts +1 -0
  138. package/dist/libs/core/src/lib/pack-directory.d.ts +30 -0
  139. package/dist/libs/core/src/lib/package.d.ts +128 -0
  140. package/dist/libs/core/src/lib/prerelease-id-from-version.d.ts +1 -0
  141. package/dist/libs/core/src/lib/profiler.d.ts +20 -0
  142. package/dist/libs/core/src/lib/project/apply-extends.d.ts +4 -0
  143. package/dist/libs/core/src/lib/project/index.d.ts +82 -0
  144. package/dist/libs/core/src/lib/project/make-file-finder.d.ts +2 -0
  145. package/dist/libs/core/src/lib/project/shallow-extend.d.ts +1 -0
  146. package/dist/libs/core/src/lib/project-graph-with-packages.d.ts +23 -0
  147. package/dist/libs/core/src/lib/prompt.d.ts +19 -0
  148. package/dist/libs/core/src/lib/pulse-till-done.d.ts +2 -0
  149. package/dist/libs/core/src/lib/rimraf-dir.d.ts +1 -0
  150. package/dist/libs/core/src/lib/run-lifecycle.d.ts +21 -0
  151. package/dist/libs/core/src/lib/run-projects-topologically.d.ts +10 -0
  152. package/dist/libs/core/src/lib/scm-clients/github/create-github-client.d.ts +4 -0
  153. package/dist/libs/core/src/lib/scm-clients/gitlab/create-gitlab-client.d.ts +11 -0
  154. package/dist/libs/core/src/lib/scm-clients/gitlab/gitlab-client.d.ts +13 -0
  155. package/dist/libs/core/src/lib/scm-clients/index.d.ts +2 -0
  156. package/dist/libs/core/src/lib/temp-write.d.ts +5 -0
  157. package/dist/libs/core/src/lib/timer.d.ts +1 -0
  158. package/dist/libs/core/src/lib/toposort-projects.d.ts +2 -0
  159. package/dist/libs/core/src/lib/validation-error.d.ts +4 -0
  160. package/dist/libs/core/src/lib/write-log-file.d.ts +1 -0
  161. package/dist/libs/legacy-core/src/index.d.ts +10 -0
  162. package/dist/libs/legacy-core/src/lib/collect-updates/collect-dependents.d.ts +5 -0
  163. package/dist/libs/legacy-core/src/lib/collect-updates/collect-packages.d.ts +10 -0
  164. package/dist/libs/legacy-core/src/lib/collect-updates/has-tags.d.ts +5 -0
  165. package/dist/libs/legacy-core/src/lib/collect-updates/index.d.ts +19 -0
  166. package/dist/libs/legacy-core/src/lib/collect-updates/make-diff-predicate.d.ts +7 -0
  167. package/dist/libs/legacy-core/src/lib/command/clean-stack.d.ts +1 -0
  168. package/dist/libs/legacy-core/src/lib/command/default-options.d.ts +2 -0
  169. package/dist/libs/legacy-core/src/lib/command/index.d.ts +40 -0
  170. package/dist/libs/legacy-core/src/lib/command/log-package-error.d.ts +1 -0
  171. package/dist/libs/legacy-core/src/lib/command/warn-if-hanging.d.ts +1 -0
  172. package/dist/libs/legacy-core/src/lib/create-symlink.d.ts +4 -0
  173. package/dist/libs/legacy-core/src/lib/filter-packages.d.ts +13 -0
  174. package/dist/libs/legacy-core/src/lib/get-filtered-packages.d.ts +7 -0
  175. package/dist/libs/legacy-core/src/lib/listable-format.d.ts +8 -0
  176. package/dist/libs/legacy-core/src/lib/package-graph/cyclic-package-graph-node.d.ts +37 -0
  177. package/dist/libs/legacy-core/src/lib/package-graph/index.d.ts +74 -0
  178. package/dist/libs/legacy-core/src/lib/package-graph/package-graph-node.d.ts +32 -0
  179. package/dist/libs/legacy-core/src/lib/package-graph/report-cycles.d.ts +1 -0
  180. package/dist/libs/legacy-core/src/lib/query-graph.d.ts +27 -0
  181. package/dist/libs/legacy-core/src/lib/resolve-symlink.d.ts +1 -0
  182. package/dist/libs/legacy-core/src/lib/run-topologically.d.ts +16 -0
  183. package/dist/libs/legacy-core/src/lib/symlink-binary/index.d.ts +5 -0
  184. package/dist/libs/legacy-core/src/lib/symlink-dependencies.d.ts +9 -0
  185. package/dist/libs/legacy-core/src/lib/write-log-file.d.ts +1 -0
  186. package/dist/migrations/add-schema-config/add-schema-config.js +34 -0
  187. package/dist/migrations/remove-invalid-init-config/remove-invalid-init-config.js +34 -0
  188. package/dist/migrations/remove-invalid-lerna-config/remove-invalid-lerna-config.js +34 -0
  189. package/dist/migrations/remove-invalid-use-workspaces/remove-invalid-use-workspaces.js +34 -0
  190. package/dist/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.js +34 -0
  191. package/dist/migrations/update-options-from-legacy-deprecate-config/update-options-from-legacy-deprecate-config.js +96 -0
  192. package/dist/packages/lerna/src/commands/add-caching/command.d.ts +6 -0
  193. package/dist/packages/lerna/src/commands/add-caching/index.d.ts +1 -0
  194. package/dist/packages/lerna/src/commands/changed/command.d.ts +1 -0
  195. package/dist/packages/lerna/src/commands/changed/index.d.ts +1 -0
  196. package/dist/packages/lerna/src/commands/clean/command.d.ts +0 -0
  197. package/dist/packages/lerna/src/commands/clean/index.d.ts +1 -0
  198. package/dist/packages/lerna/src/commands/diff/command.d.ts +1 -0
  199. package/dist/packages/lerna/src/commands/diff/index.d.ts +1 -0
  200. package/dist/packages/lerna/src/commands/diff/lib/get-last-commit.d.ts +1 -0
  201. package/dist/packages/lerna/src/commands/diff/lib/has-commit.d.ts +1 -0
  202. package/dist/packages/lerna/src/commands/exec/command.d.ts +1 -0
  203. package/dist/packages/lerna/src/commands/exec/index.d.ts +1 -0
  204. package/dist/packages/lerna/src/commands/import/command.d.ts +1 -0
  205. package/dist/packages/lerna/src/commands/import/index.d.ts +1 -0
  206. package/dist/packages/lerna/src/commands/info/command.d.ts +1 -0
  207. package/dist/packages/lerna/src/commands/info/index.d.ts +1 -0
  208. package/dist/packages/lerna/src/commands/init/command.d.ts +1 -0
  209. package/dist/packages/lerna/src/commands/init/index.d.ts +1 -0
  210. package/dist/packages/lerna/src/commands/list/command.d.ts +1 -0
  211. package/dist/packages/lerna/src/commands/list/index.d.ts +1 -0
  212. package/dist/packages/lerna/src/commands/publish/command.d.ts +0 -0
  213. package/dist/packages/lerna/src/commands/publish/index.d.ts +1 -0
  214. package/dist/packages/lerna/src/commands/publish/lib/create-temp-licenses.d.ts +0 -0
  215. package/dist/packages/lerna/src/commands/publish/lib/fetch-config.d.ts +0 -0
  216. package/dist/packages/lerna/src/commands/publish/lib/get-current-sha.d.ts +0 -0
  217. package/dist/packages/lerna/src/commands/publish/lib/get-current-tags.d.ts +0 -0
  218. package/dist/packages/lerna/src/commands/publish/lib/get-npm-username.d.ts +0 -0
  219. package/dist/packages/lerna/src/commands/publish/lib/get-packages-without-license.d.ts +0 -0
  220. package/dist/packages/lerna/src/commands/publish/lib/get-profile-data.d.ts +0 -0
  221. package/dist/packages/lerna/src/commands/publish/lib/get-two-factor-auth-required.d.ts +0 -0
  222. package/dist/packages/lerna/src/commands/publish/lib/get-whoami.d.ts +0 -0
  223. package/dist/packages/lerna/src/commands/publish/lib/git-checkout.d.ts +0 -0
  224. package/dist/packages/lerna/src/commands/publish/lib/remove-temp-licenses.d.ts +0 -0
  225. package/dist/packages/lerna/src/commands/publish/lib/verify-npm-package-access.d.ts +0 -0
  226. package/dist/packages/lerna/src/commands/repair/command.d.ts +6 -0
  227. package/dist/packages/lerna/src/commands/repair/index.d.ts +1 -0
  228. package/dist/packages/lerna/src/commands/run/command.d.ts +1 -0
  229. package/dist/packages/lerna/src/commands/run/index.d.ts +1 -0
  230. package/dist/packages/lerna/src/commands/version/command.d.ts +0 -0
  231. package/dist/packages/lerna/src/commands/version/index.d.ts +1 -0
  232. package/dist/packages/lerna/src/commands/version/lib/create-release.d.ts +0 -0
  233. package/dist/packages/lerna/src/commands/version/lib/get-current-branch.d.ts +0 -0
  234. package/dist/packages/lerna/src/commands/version/lib/git-add.d.ts +0 -0
  235. package/dist/packages/lerna/src/commands/version/lib/git-commit.d.ts +0 -0
  236. package/dist/packages/lerna/src/commands/version/lib/git-push.d.ts +0 -0
  237. package/dist/packages/lerna/src/commands/version/lib/git-tag.d.ts +0 -0
  238. package/dist/packages/lerna/src/commands/version/lib/is-anything-committed.d.ts +0 -0
  239. package/dist/packages/lerna/src/commands/version/lib/is-behind-upstream.d.ts +0 -0
  240. package/dist/packages/lerna/src/commands/version/lib/is-breaking-change.d.ts +0 -0
  241. package/dist/packages/lerna/src/commands/version/lib/prompt-version.d.ts +0 -0
  242. package/dist/packages/lerna/src/commands/version/lib/remote-branch-exists.d.ts +0 -0
  243. package/dist/packages/lerna/src/commands/version/lib/update-lockfile-version.d.ts +0 -0
  244. package/dist/packages/lerna/src/commands/watch/command.d.ts +6 -0
  245. package/dist/packages/lerna/src/commands/watch/index.d.ts +1 -0
  246. package/dist/packages/lerna/src/index.d.ts +1 -0
  247. package/dist/packages/lerna/src/migrations/add-schema-config/add-schema-config.d.ts +2 -0
  248. package/dist/packages/lerna/src/migrations/remove-invalid-init-config/remove-invalid-init-config.d.ts +2 -0
  249. package/dist/packages/lerna/src/migrations/remove-invalid-lerna-config/remove-invalid-lerna-config.d.ts +2 -0
  250. package/dist/packages/lerna/src/migrations/remove-invalid-use-workspaces/remove-invalid-use-workspaces.d.ts +2 -0
  251. package/dist/packages/lerna/src/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.d.ts +2 -0
  252. package/dist/packages/lerna/src/migrations/update-options-from-legacy-deprecate-config/update-options-from-legacy-deprecate-config.d.ts +9 -0
  253. package/dist/packages/lerna/src/utils/detect-projects.d.ts +4 -0
  254. package/dist/packages/lerna/src/utils/index.d.ts +1 -0
  255. package/dist/utils/index.js +4362 -0
  256. package/migrations.json +40 -0
  257. package/package.json +376 -0
  258. package/schemas/lerna-schema.json +1855 -0
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Internal fork of the unmaintained strong-log-transformer package.
3
+ * https://github.com/strongloop/strong-log-transformer/blob/3315d59bc4c912d025e15a6ca22a600a85406f14/lib/logger.js
4
+ *
5
+ * Notable changes:
6
+ * - replaced the dependency on duplexer, which has been deprecated for a long time, with inline createDuplex()
7
+ * - modernized core node.js imports and removed the usage of deprecated node:util._extend()
8
+ */
9
+ import stream from "node:stream";
10
+ export default Logger;
11
+ declare function Logger(options?: any): stream.Duplex;
12
+ declare namespace Logger {
13
+ var DEFAULTS: {
14
+ format: string;
15
+ tag: string;
16
+ mergeMultiline: boolean;
17
+ timeStamp: boolean;
18
+ };
19
+ }
@@ -0,0 +1,46 @@
1
+ import execa from "execa";
2
+ type withPkg<T> = T & {
3
+ pkg?: unknown;
4
+ };
5
+ export type LernaChildProcess = withPkg<execa.ExecaChildProcess<string>>;
6
+ export type LernaReturnValue = withPkg<execa.ExecaReturnValue<string>>;
7
+ export type LernaOptions = withPkg<execa.Options>;
8
+ /**
9
+ * Execute a command asynchronously, piping stdio by default.
10
+ * @param command
11
+ * @param args
12
+ * @param opts
13
+ * @returns
14
+ */
15
+ export declare function exec(command: string, args: string[], opts?: LernaOptions): Promise<LernaReturnValue>;
16
+ /**
17
+ * Execute a command synchronously.
18
+ * @param command
19
+ * @param args
20
+ * @param opts
21
+ */
22
+ export declare function execSync(command: string, args: string[], opts?: import("execa").SyncOptions): string;
23
+ /**
24
+ * Spawn a command asynchronously, _always_ inheriting stdio.
25
+ * @param command
26
+ * @param args
27
+ * @param opts
28
+ */
29
+ export declare function spawn(command: string, args: string[], opts?: LernaOptions): Promise<LernaReturnValue>;
30
+ /**
31
+ * Spawn a command asynchronously, streaming stdio with optional prefix.
32
+ * @param command
33
+ * @param args
34
+ * @param opts
35
+ * @param prefix
36
+ */
37
+ export declare function spawnStreaming(command: string, args: string[], opts?: LernaOptions, prefix?: string): Promise<LernaReturnValue>;
38
+ export declare function getChildProcessCount(): number;
39
+ /**
40
+ * @param result
41
+ * @returns
42
+ */
43
+ export declare function getExitCode(result: execa.ExecaError<string> & {
44
+ code?: string | number;
45
+ }): number | undefined;
46
+ export {};
@@ -0,0 +1 @@
1
+ export declare function setExitCode(code: number): void;
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,15 @@
1
+ import { Arguments, Command, CommandConfigOptions, listableFormatProjects } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<ChangedCommandOptions>): ChangedCommand;
3
+ interface ChangedCommandOptions extends CommandConfigOptions {
4
+ conventionalCommits?: boolean;
5
+ conventionalGraduate?: boolean | string;
6
+ forceConventionalGraduate?: boolean;
7
+ forcePublish?: boolean | string;
8
+ }
9
+ export declare class ChangedCommand extends Command<ChangedCommandOptions> {
10
+ result?: ReturnType<typeof listableFormatProjects>;
11
+ get otherCommandConfigs(): string[];
12
+ initialize(): boolean;
13
+ execute(): void;
14
+ }
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,12 @@
1
+ import { Arguments, Command, CommandConfigOptions } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<DiffCommandOptions>): DiffCommand;
3
+ interface DiffCommandOptions extends CommandConfigOptions {
4
+ pkgName?: string;
5
+ ignoreChanges?: string[];
6
+ }
7
+ export declare class DiffCommand extends Command<DiffCommandOptions> {
8
+ private args;
9
+ initialize(): void;
10
+ execute(): Promise<void | import("@lerna/child-process").LernaReturnValue>;
11
+ }
12
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ExecOptions } from "@lerna/core";
2
+ /**
3
+ *
4
+ * @param execOpts
5
+ * @returns
6
+ */
7
+ export declare function getLastCommit(execOpts?: ExecOptions): string;
@@ -0,0 +1,7 @@
1
+ import { ExecOptions } from "@lerna/core";
2
+ /**
3
+ *
4
+ * @param opts
5
+ * @returns
6
+ */
7
+ export declare function hasCommit(opts?: ExecOptions): boolean;
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,35 @@
1
+ import { Arguments, Command, CommandConfigOptions, Package, ProjectGraphProjectNodeWithPackage } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<ExecCommandConfigOptions>): ExecCommand;
3
+ interface ExecCommandConfigOptions extends CommandConfigOptions {
4
+ cmd?: string;
5
+ args?: string[];
6
+ bail?: boolean;
7
+ prefix?: boolean;
8
+ parallel?: boolean;
9
+ profile?: boolean;
10
+ profileLocation?: string;
11
+ rejectCycles?: boolean;
12
+ "--"?: string[];
13
+ }
14
+ export declare class ExecCommand extends Command<ExecCommandConfigOptions> {
15
+ command?: string;
16
+ args?: string[];
17
+ bail?: boolean;
18
+ prefix?: boolean;
19
+ env?: NodeJS.ProcessEnv;
20
+ filteredProjects: ProjectGraphProjectNodeWithPackage[];
21
+ count?: number;
22
+ packagePlural?: string;
23
+ joinedCommand?: string;
24
+ get requiresGit(): boolean;
25
+ initialize(): Promise<void>;
26
+ execute(): Promise<void>;
27
+ private getOpts;
28
+ private getRunner;
29
+ private runCommandInPackagesTopological;
30
+ runCommandInPackagesParallel(): Promise<any[]>;
31
+ runCommandInPackagesLexical(): Promise<any[]>;
32
+ runCommandInPackageStreaming(pkg: Package): any;
33
+ runCommandInPackageCapturing(pkg: Package): any;
34
+ }
35
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,36 @@
1
+ import { Arguments, Command, CommandConfigOptions } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<ImportCommandOptions>): ImportCommand;
3
+ interface ImportCommandOptions extends CommandConfigOptions {
4
+ dir?: string;
5
+ dest?: string;
6
+ flatten?: boolean;
7
+ preserveCommit?: boolean;
8
+ yes?: boolean;
9
+ }
10
+ export declare class ImportCommand extends Command<ImportCommandOptions> {
11
+ private externalExecOpts;
12
+ private targetDirRelativeToGitRoot?;
13
+ private commits;
14
+ private origGitEmail?;
15
+ private origGitName?;
16
+ private preImportHead?;
17
+ gitParamsForTargetCommits(): string[];
18
+ initialize(): true | Promise<boolean>;
19
+ getPackageDirectories(): string[];
20
+ getTargetBase(): string;
21
+ getCurrentSHA(): string;
22
+ getWorkspaceRoot(): string;
23
+ execSync(cmd: string, args: string[]): string;
24
+ externalExecSync(cmd: string, args: string[]): string;
25
+ createPatchForCommit(sha: string): string;
26
+ getGitUserFromSha(sha: string): {
27
+ email: string;
28
+ name: string;
29
+ };
30
+ configureGitUser({ email, name }: {
31
+ email?: string;
32
+ name?: string;
33
+ }): void;
34
+ execute(): Promise<void>;
35
+ }
36
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,6 @@
1
+ import { Arguments, Command, CommandConfigOptions } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<CommandConfigOptions>): InfoCommand;
3
+ export declare class InfoCommand extends Command {
4
+ initialize(): void;
5
+ execute(): void;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,37 @@
1
+ import { Arguments, CommandConfigOptions, LernaLogger } from "@lerna/core";
2
+ import { PackageManager } from "@nx/devkit";
3
+ import { Tree } from "nx/src/generators/tree";
4
+ interface InitCommandOptions extends CommandConfigOptions {
5
+ lernaVersion?: string;
6
+ packages?: string[];
7
+ exact?: boolean;
8
+ loglevel?: string;
9
+ independent?: boolean;
10
+ dryRun?: boolean;
11
+ skipInstall?: boolean;
12
+ }
13
+ export declare function factory(args: Arguments<InitCommandOptions>): InitCommand;
14
+ export declare class InitCommand {
15
+ #private;
16
+ private args;
17
+ name: string;
18
+ logger: LernaLogger;
19
+ cwd: string;
20
+ packageManager: PackageManager;
21
+ runner: Promise<void>;
22
+ constructor(args: Arguments<InitCommandOptions>);
23
+ execute(): Promise<void>;
24
+ then(onResolved: () => void, onRejected: (err: string | Error) => void): Promise<void>;
25
+ catch(onRejected: (err: string | Error) => void): Promise<void>;
26
+ generate(tree: Tree): Promise<void | (() => Promise<void>)>;
27
+ private detectPackageManager;
28
+ /**
29
+ * Detects which package manager was used to invoke lerna init command
30
+ * based on the main Module process that invokes the command
31
+ * - npx returns 'npm'
32
+ * - pnpx returns 'pnpm'
33
+ * - yarn create returns 'yarn'
34
+ */
35
+ private detectInvokedPackageManager;
36
+ }
37
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,8 @@
1
+ import { Arguments, Command, CommandConfigOptions } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<CommandConfigOptions>): ListCommand;
3
+ export declare class ListCommand extends Command {
4
+ private result?;
5
+ get requiresGit(): boolean;
6
+ initialize(): Promise<void>;
7
+ execute(): void;
8
+ }
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,7 @@
1
+ import type { CommandModule } from "yargs";
2
+ import { RunCommandConfigOptions } from ".";
3
+ /**
4
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
5
+ */
6
+ declare const command: CommandModule<object, RunCommandConfigOptions>;
7
+ export = command;
@@ -0,0 +1,39 @@
1
+ import { Command, CommandConfigOptions, FilterOptions, ProjectGraphProjectNodeWithPackage, Arguments } from "@lerna/core";
2
+ export declare function factory(argv: Arguments<RunCommandConfigOptions>): RunCommand;
3
+ export interface RunCommandConfigOptions extends CommandConfigOptions, FilterOptions {
4
+ script: string | string[];
5
+ profile?: boolean;
6
+ profileLocation?: string;
7
+ bail?: boolean;
8
+ prefix?: boolean;
9
+ loadEnvFiles?: boolean;
10
+ parallel?: boolean;
11
+ rejectCycles?: boolean;
12
+ skipNxCache?: boolean;
13
+ "--"?: string[];
14
+ }
15
+ export declare class RunCommand extends Command<RunCommandConfigOptions> {
16
+ script: string | string[];
17
+ args?: string[];
18
+ npmClient?: string;
19
+ bail?: boolean;
20
+ prefix?: boolean;
21
+ projectsWithScript: ProjectGraphProjectNodeWithPackage[];
22
+ count?: number;
23
+ packagePlural?: string;
24
+ joinedCommand?: string;
25
+ get requiresGit(): boolean;
26
+ initialize(): Promise<boolean>;
27
+ execute(): Promise<void>;
28
+ private getOpts;
29
+ private getRunner;
30
+ private runScriptInPackagesTopological;
31
+ private runScriptInPackagesParallel;
32
+ private runScriptInPackagesLexical;
33
+ private runScriptInPackageStreaming;
34
+ private runScriptInPackageCapturing;
35
+ private runScriptsUsingNx;
36
+ private addQuotesAroundScriptNameIfItHasAColon;
37
+ private prepNxOptions;
38
+ private configureNxOutput;
39
+ }
@@ -0,0 +1,6 @@
1
+ import type { CommandModule } from "yargs";
2
+ /**
3
+ * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md#providing-a-command-module
4
+ */
5
+ declare const command: CommandModule;
6
+ export = command;
@@ -0,0 +1,46 @@
1
+ export { addDependencies } from "./lib/add-dependencies";
2
+ export { addDependents } from "./lib/add-dependents";
3
+ export { checkWorkingTree, throwIfUncommitted } from "./lib/check-working-tree";
4
+ export * from "./lib/cli";
5
+ export { ProjectCollectorOptions, ProjectUpdateCollectorOptions, collectProjectUpdates, collectProjects, } from "./lib/collect-updates";
6
+ export { Command, ExecOptions, LernaLogger, PreInitializedProjectData, Arguments } from "./lib/command";
7
+ export { detectProjects } from "./lib/command/detect-projects";
8
+ export { isGitInitialized } from "./lib/command/is-git-initialized";
9
+ export { applyBuildMetadata, recommendVersion, updateChangelog } from "./lib/conventional-commits";
10
+ export * from "./lib/corepack";
11
+ export { describeRef, describeRefSync } from "./lib/describe-ref";
12
+ export { FilterOptions, filterOptions } from "./lib/filter-options";
13
+ export { filterProjects } from "./lib/filter-projects";
14
+ export { getPackageManifestPath } from "./lib/get-package-manifest-path";
15
+ export * from "./lib/get-packages-for-option";
16
+ export { gitCheckout } from "./lib/git-checkout";
17
+ export { hasNpmVersion } from "./lib/has-npm-version";
18
+ export { formatJSON, listableFormatProjects } from "./lib/listable-format-projects";
19
+ export { ListableOptions, listableOptions } from "./lib/listable-options";
20
+ export { logPacked } from "./lib/log-packed";
21
+ export { Conf } from "./lib/npm-conf/conf";
22
+ export { npmInstall, npmInstallDependencies } from "./lib/npm-install";
23
+ export { npmPublish } from "./lib/npm-publish";
24
+ export { npmRunScript, npmRunScriptStreaming } from "./lib/npm-run-script";
25
+ export { getOneTimePassword } from "./lib/otplease";
26
+ export { output } from "./lib/output";
27
+ export { Packed, packDirectory } from "./lib/pack-directory";
28
+ export { AssetDefinition, ExtendedNpaResult, Package, RawManifest } from "./lib/package";
29
+ export { prereleaseIdFromVersion } from "./lib/prerelease-id-from-version";
30
+ export { Profiler, generateProfileOutputPath } from "./lib/profiler";
31
+ export { CommandConfigOptions, LernaConfig, Project, getPackages } from "./lib/project";
32
+ export { ProjectGraphProjectNodeWithPackage, ProjectGraphWithPackages, ProjectGraphWorkspacePackageDependency, getPackage, isExternalNpmDependency, } from "./lib/project-graph-with-packages";
33
+ export { promptConfirmation, promptSelectOne, promptTextInput } from "./lib/prompt";
34
+ export { pulseTillDone } from "./lib/pulse-till-done";
35
+ export { rimrafDir } from "./lib/rimraf-dir";
36
+ export { createRunner, runLifecycle } from "./lib/run-lifecycle";
37
+ export { runProjectsTopologically } from "./lib/run-projects-topologically";
38
+ export { createGitHubClient, createGitLabClient, parseGitRepo } from "./lib/scm-clients";
39
+ export { default as tempWrite } from "./lib/temp-write";
40
+ export { timer } from "./lib/timer";
41
+ export { toposortProjects } from "./lib/toposort-projects";
42
+ export { ValidationError } from "./lib/validation-error";
43
+ export { default as log, Logger } from "./lib/npmlog";
44
+ export { npmConf, npmDistTag };
45
+ declare const npmConf: any;
46
+ declare const npmDistTag: any;
@@ -0,0 +1,2 @@
1
+ import { ProjectGraphProjectNodeWithPackage, ProjectGraphWithPackages } from "./project-graph-with-packages";
2
+ export declare function addDependencies(projects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages): ProjectGraphProjectNodeWithPackage[];
@@ -0,0 +1,2 @@
1
+ import { ProjectGraphProjectNodeWithPackage, ProjectGraphWithPackages } from "./project-graph-with-packages";
2
+ export declare function addDependents(projects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages): ProjectGraphProjectNodeWithPackage[];
@@ -0,0 +1,12 @@
1
+ export declare function checkWorkingTree({ cwd }?: {
2
+ cwd?: string | URL;
3
+ }): Promise<void>;
4
+ export declare function throwIfReleased({ refCount }: {
5
+ refCount: any;
6
+ }): void;
7
+ export declare function mkThrowIfUncommitted(options?: {}): (opts: {
8
+ isDirty?: boolean;
9
+ }) => Promise<never> | undefined;
10
+ export declare const throwIfUncommitted: (opts: {
11
+ isDirty?: boolean;
12
+ }) => Promise<never> | undefined;
@@ -0,0 +1,14 @@
1
+ import yargs from "yargs";
2
+ /**
3
+ * A factory that returns a yargs() instance configured with everything except commands.
4
+ * Chain .parse() from this method to invoke.
5
+ */
6
+ export declare function lernaCLI(argv?: string | readonly string[], cwd?: string): yargs.Argv<yargs.Omit<yargs.Omit<{}, string | number> & yargs.InferredOptionTypes<{
7
+ [key: string]: yargs.Options;
8
+ }>, "ci"> & {
9
+ ci: boolean | undefined;
10
+ } & {
11
+ help: unknown;
12
+ } & {
13
+ version: unknown;
14
+ }>;
@@ -0,0 +1,12 @@
1
+ import npmlog from "./npmlog";
2
+ interface UncommittedConfig {
3
+ cwd: string;
4
+ log?: typeof npmlog;
5
+ }
6
+ export declare function collectUncommitted({ cwd, log }: UncommittedConfig): Promise<string[]>;
7
+ /**
8
+ * Report uncommitted files. (sync)
9
+ * @returns A list of uncommitted files
10
+ */
11
+ export declare function collectUncommittedSync({ cwd, log }: UncommittedConfig): string[];
12
+ export {};
@@ -0,0 +1,29 @@
1
+ import { ExecOptions } from "child_process";
2
+ import { ProjectGraphProjectNodeWithPackage, ProjectGraphWithPackages } from "../project-graph-with-packages";
3
+ export interface ProjectUpdateCollectorOptions {
4
+ bump?: string;
5
+ canary?: boolean;
6
+ ignoreChanges?: string[];
7
+ includeMergedTags?: boolean;
8
+ forcePublish?: boolean | string | string[];
9
+ since?: string;
10
+ conventionalCommits?: boolean;
11
+ conventionalGraduate?: string | boolean;
12
+ forceConventionalGraduate?: boolean;
13
+ excludeDependents?: boolean;
14
+ tagVersionSeparator?: string;
15
+ }
16
+ /**
17
+ * Create a list of graph nodes representing projects changed since the previous release, tagged or otherwise.
18
+ */
19
+ export declare function collectProjectUpdates(filteredProjects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages, execOpts: ExecOptions, commandOptions: ProjectUpdateCollectorOptions): ProjectGraphProjectNodeWithPackage[];
20
+ export interface ProjectCollectorOptions {
21
+ isCandidate?: (node: ProjectGraphProjectNodeWithPackage, packageName: string) => boolean;
22
+ onInclude?: (packageName: string) => void;
23
+ excludeDependents?: boolean;
24
+ }
25
+ export declare function collectProjects(projects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages, { isCandidate, onInclude, excludeDependents }?: ProjectCollectorOptions): ProjectGraphProjectNodeWithPackage[];
26
+ /**
27
+ * Build a set of nodes that are dependents of the input set.
28
+ */
29
+ export declare function collectDependents(nodes: Record<string, ProjectGraphProjectNodeWithPackage>, projectGraph: ProjectGraphWithPackages): Set<ProjectGraphProjectNodeWithPackage>;
@@ -0,0 +1,6 @@
1
+ import { ExecOptions } from "child_process";
2
+ /**
3
+ * Determine if any git tags are reachable.
4
+ * @param {import("@lerna/child-process").ExecOpts} opts
5
+ */
6
+ export declare function hasTags(opts?: ExecOptions): boolean;
@@ -0,0 +1 @@
1
+ export { collectProjects, collectProjectUpdates, ProjectCollectorOptions, ProjectUpdateCollectorOptions, } from "./collect-project-updates";
@@ -0,0 +1,3 @@
1
+ import { ExecOptions } from "child_process";
2
+ import { ProjectGraphProjectNodeWithPackage } from "../project-graph-with-packages";
3
+ export declare function makeDiffPredicate(committish: string, execOpts: ExecOptions, ignorePatterns?: string[]): (node: ProjectGraphProjectNodeWithPackage) => boolean;
@@ -0,0 +1 @@
1
+ export declare function cleanStack(err: string | Error, className: string): string;
@@ -0,0 +1,5 @@
1
+ import { ProjectFileMap, ProjectGraph } from "@nx/devkit";
2
+ import { ExtendedNpaResult } from "../package";
3
+ import { ProjectGraphWithPackages } from "../project-graph-with-packages";
4
+ export declare function createProjectGraphWithPackages(projectGraph: ProjectGraph, projectFileMap: ProjectFileMap, packageConfigs: string[]): Promise<ProjectGraphWithPackages>;
5
+ export declare const resolvePackage: (name: string, version: string, spec: string, location?: string) => ExtendedNpaResult;
@@ -0,0 +1,2 @@
1
+ import { CommandConfigOptions } from "../project";
2
+ export declare function defaultOptions<T extends CommandConfigOptions>(...sources: any[]): T;
@@ -0,0 +1,6 @@
1
+ import { ProjectFileMap } from "@nx/devkit";
2
+ import { ProjectGraphWithPackages } from "../project-graph-with-packages";
3
+ export declare function detectProjects(packageConfigs: string[]): Promise<{
4
+ projectGraph: ProjectGraphWithPackages;
5
+ projectFileMap: ProjectFileMap;
6
+ }>;
@@ -0,0 +1,80 @@
1
+ import { ProjectFileMap } from "@nx/devkit";
2
+ import { ExecOptions as NodeExecOptions } from "child_process";
3
+ import yargs from "yargs";
4
+ import { Logger } from "../npmlog";
5
+ import { CommandConfigOptions, Project } from "../project";
6
+ import { ProjectGraphWithPackages } from "../project-graph-with-packages";
7
+ /**
8
+ * Execa compatible options type
9
+ *
10
+ * Current used execa version options type uses```cwd: string``` and not
11
+ * ``` cwd?: string | URL ```
12
+ *
13
+ * Can be removed when latest execa version is used!!!
14
+ * */
15
+ export type ExecOptions = Omit<NodeExecOptions, "cwd"> & {
16
+ cwd?: string;
17
+ };
18
+ /**
19
+ * Specific logger with log-level success enabled in order to use function without index signature
20
+ */
21
+ export interface LernaLogger extends Logger {
22
+ /**
23
+ * Log with level success
24
+ * @param prefix
25
+ * @param message
26
+ * @param args
27
+ */
28
+ success(prefix: string, message: string, ...args: any[]): void;
29
+ }
30
+ export interface PreInitializedProjectData {
31
+ projectFileMap: ProjectFileMap;
32
+ projectGraph: ProjectGraphWithPackages;
33
+ }
34
+ export type Arguments<T extends CommandConfigOptions = CommandConfigOptions> = {
35
+ cwd?: string;
36
+ composed?: string;
37
+ lernaVersion?: string;
38
+ onResolved?: (value: unknown) => unknown;
39
+ onRejected?: (reason: unknown) => unknown;
40
+ } & yargs.ArgumentsCamelCase<T>;
41
+ export declare class Command<T extends CommandConfigOptions = CommandConfigOptions> {
42
+ readonly _argv: Arguments<T>;
43
+ name: string;
44
+ composed: boolean;
45
+ options: T;
46
+ runner: Promise<unknown>;
47
+ concurrency: number;
48
+ toposort: boolean;
49
+ execOpts: ExecOptions;
50
+ logger: LernaLogger;
51
+ envDefaults: any;
52
+ argv: Arguments<T>;
53
+ projectGraph: ProjectGraphWithPackages;
54
+ projectFileMap: ProjectFileMap;
55
+ private _project?;
56
+ get project(): Project;
57
+ set project(project: Project);
58
+ constructor(_argv: Arguments<T>, { skipValidations, preInitializedProjectData, }?: {
59
+ skipValidations: boolean;
60
+ preInitializedProjectData?: PreInitializedProjectData;
61
+ });
62
+ static createLogger(name: string, loglevel?: string): LernaLogger;
63
+ then(onResolved: () => void, onRejected: (err: string | Error) => void): Promise<void>;
64
+ catch(onRejected: (err: string | Error) => void): Promise<unknown>;
65
+ get requiresGit(): boolean;
66
+ get otherCommandConfigs(): string[];
67
+ detectProjects(): Promise<void>;
68
+ configureEnvironment(): void;
69
+ configureOptions(): void;
70
+ configureProperties(): void;
71
+ enableProgressBar(): void;
72
+ runValidations(): void;
73
+ runPreparations(): void;
74
+ runCommand(): Promise<unknown>;
75
+ initialize(): void | boolean | Promise<void | boolean>;
76
+ /**
77
+ * The execute() method can return a value in some cases (e.g. on the version command)
78
+ */
79
+ execute(): void | Promise<unknown>;
80
+ }
@@ -0,0 +1 @@
1
+ export declare function isGitInitialized(cwd: string): boolean;
@@ -0,0 +1 @@
1
+ export declare function logPackageError(err: any, stream?: boolean): void;
@@ -0,0 +1 @@
1
+ export declare function warnIfHanging(): void;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Append build metadata to version.
3
+ */
4
+ export declare function applyBuildMetadata(version: string, buildMetadata: string): string;