@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.
- package/README.md +88 -0
- package/dist/cli.js +50 -0
- package/dist/commands/changed/command.js +5806 -0
- package/dist/commands/changed/index.js +5195 -0
- package/dist/commands/clean/command.js +6271 -0
- package/dist/commands/clean/index.js +6157 -0
- package/dist/commands/diff/command.js +5313 -0
- package/dist/commands/diff/index.js +4742 -0
- package/dist/commands/diff/lib/get-last-commit.js +4240 -0
- package/dist/commands/diff/lib/has-commit.js +4233 -0
- package/dist/commands/exec/command.js +6010 -0
- package/dist/commands/exec/index.js +5337 -0
- package/dist/commands/import/command.js +5500 -0
- package/dist/commands/import/index.js +4931 -0
- package/dist/commands/info/command.js +5229 -0
- package/dist/commands/info/index.js +4685 -0
- package/dist/commands/init/command.js +5440 -0
- package/dist/commands/init/index.js +4872 -0
- package/dist/commands/list/command.js +5974 -0
- package/dist/commands/list/index.js +5309 -0
- package/dist/commands/publish/command.js +9271 -0
- package/dist/commands/publish/index.js +8771 -0
- package/dist/commands/publish/lib/create-temp-licenses.js +64 -0
- package/dist/commands/publish/lib/fetch-config.js +4763 -0
- package/dist/commands/publish/lib/get-current-sha.js +4764 -0
- package/dist/commands/publish/lib/get-current-tags.js +4776 -0
- package/dist/commands/publish/lib/get-npm-username.js +4886 -0
- package/dist/commands/publish/lib/get-packages-without-license.js +53 -0
- package/dist/commands/publish/lib/get-profile-data.js +4802 -0
- package/dist/commands/publish/lib/get-two-factor-auth-required.js +4855 -0
- package/dist/commands/publish/lib/get-whoami.js +4798 -0
- package/dist/commands/publish/lib/git-checkout.js +4761 -0
- package/dist/commands/publish/lib/remove-temp-licenses.js +54 -0
- package/dist/commands/publish/lib/verify-npm-package-access.js +4848 -0
- package/dist/commands/run/command.js +6229 -0
- package/dist/commands/run/index.js +5534 -0
- package/dist/commands/version/command.js +7415 -0
- package/dist/commands/version/index.js +7100 -0
- package/dist/commands/version/lib/create-release.js +4892 -0
- package/dist/commands/version/lib/get-current-branch.js +4764 -0
- package/dist/commands/version/lib/git-add.js +4817 -0
- package/dist/commands/version/lib/git-commit.js +4788 -0
- package/dist/commands/version/lib/git-push.js +4769 -0
- package/dist/commands/version/lib/git-tag.js +4771 -0
- package/dist/commands/version/lib/is-anything-committed.js +4765 -0
- package/dist/commands/version/lib/is-behind-upstream.js +4780 -0
- package/dist/commands/version/lib/is-breaking-change.js +61 -0
- package/dist/commands/version/lib/prompt-version.js +4833 -0
- package/dist/commands/version/lib/remote-branch-exists.js +4768 -0
- package/dist/commands/version/lib/update-lockfile-version.js +4791 -0
- package/dist/index.js +13093 -0
- package/dist/libs/child-process/src/forked-strong-log-transformer.d.ts +19 -0
- package/dist/libs/child-process/src/index.d.ts +46 -0
- package/dist/libs/child-process/src/set-exit-code.d.ts +1 -0
- package/dist/libs/commands/changed/src/command.d.ts +6 -0
- package/dist/libs/commands/changed/src/index.d.ts +15 -0
- package/dist/libs/commands/clean/src/command.d.ts +6 -0
- package/dist/libs/commands/diff/src/command.d.ts +6 -0
- package/dist/libs/commands/diff/src/index.d.ts +12 -0
- package/dist/libs/commands/diff/src/lib/get-last-commit.d.ts +7 -0
- package/dist/libs/commands/diff/src/lib/has-commit.d.ts +7 -0
- package/dist/libs/commands/exec/src/command.d.ts +6 -0
- package/dist/libs/commands/exec/src/index.d.ts +35 -0
- package/dist/libs/commands/import/src/command.d.ts +6 -0
- package/dist/libs/commands/import/src/index.d.ts +36 -0
- package/dist/libs/commands/info/src/command.d.ts +6 -0
- package/dist/libs/commands/info/src/index.d.ts +6 -0
- package/dist/libs/commands/init/src/command.d.ts +6 -0
- package/dist/libs/commands/init/src/index.d.ts +37 -0
- package/dist/libs/commands/list/src/command.d.ts +6 -0
- package/dist/libs/commands/list/src/index.d.ts +8 -0
- package/dist/libs/commands/publish/src/command.d.ts +6 -0
- package/dist/libs/commands/run/src/command.d.ts +7 -0
- package/dist/libs/commands/run/src/index.d.ts +39 -0
- package/dist/libs/commands/version/src/command.d.ts +6 -0
- package/dist/libs/core/src/index.d.ts +46 -0
- package/dist/libs/core/src/lib/add-dependencies.d.ts +2 -0
- package/dist/libs/core/src/lib/add-dependents.d.ts +2 -0
- package/dist/libs/core/src/lib/check-working-tree.d.ts +12 -0
- package/dist/libs/core/src/lib/cli.d.ts +14 -0
- package/dist/libs/core/src/lib/collect-uncommitted.d.ts +12 -0
- package/dist/libs/core/src/lib/collect-updates/collect-project-updates.d.ts +29 -0
- package/dist/libs/core/src/lib/collect-updates/has-tags.d.ts +6 -0
- package/dist/libs/core/src/lib/collect-updates/index.d.ts +1 -0
- package/dist/libs/core/src/lib/collect-updates/make-diff-predicate.d.ts +3 -0
- package/dist/libs/core/src/lib/command/clean-stack.d.ts +1 -0
- package/dist/libs/core/src/lib/command/create-project-graph-with-packages.d.ts +5 -0
- package/dist/libs/core/src/lib/command/default-options.d.ts +2 -0
- package/dist/libs/core/src/lib/command/detect-projects.d.ts +6 -0
- package/dist/libs/core/src/lib/command/index.d.ts +80 -0
- package/dist/libs/core/src/lib/command/is-git-initialized.d.ts +1 -0
- package/dist/libs/core/src/lib/command/log-package-error.d.ts +1 -0
- package/dist/libs/core/src/lib/command/warn-if-hanging.d.ts +1 -0
- package/dist/libs/core/src/lib/conventional-commits/apply-build-metadata.d.ts +4 -0
- package/dist/libs/core/src/lib/conventional-commits/constants.d.ts +17 -0
- package/dist/libs/core/src/lib/conventional-commits/get-changelog-config.d.ts +2 -0
- package/dist/libs/core/src/lib/conventional-commits/index.d.ts +3 -0
- package/dist/libs/core/src/lib/conventional-commits/make-bump-only-filter.d.ts +2 -0
- package/dist/libs/core/src/lib/conventional-commits/read-existing-changelog.d.ts +6 -0
- package/dist/libs/core/src/lib/conventional-commits/recommend-version.d.ts +6 -0
- package/dist/libs/core/src/lib/conventional-commits/update-changelog.d.ts +8 -0
- package/dist/libs/core/src/lib/corepack/exec-package-manager.d.ts +4 -0
- package/dist/libs/core/src/lib/corepack/index.d.ts +1 -0
- package/dist/libs/core/src/lib/corepack/is-corepack-enabled.d.ts +1 -0
- package/dist/libs/core/src/lib/cycles/get-cycles.d.ts +6 -0
- package/dist/libs/core/src/lib/cycles/index.d.ts +3 -0
- package/dist/libs/core/src/lib/cycles/merge-overlapping-cycles.d.ts +6 -0
- package/dist/libs/core/src/lib/cycles/report-cycles.d.ts +1 -0
- package/dist/libs/core/src/lib/describe-ref.d.ts +17 -0
- package/dist/libs/core/src/lib/filter-options.d.ts +15 -0
- package/dist/libs/core/src/lib/filter-projects.d.ts +4 -0
- package/dist/libs/core/src/lib/get-npm-exec-opts.d.ts +11 -0
- package/dist/libs/core/src/lib/get-package-manifest-path.d.ts +2 -0
- package/dist/libs/core/src/lib/get-packages-for-option.d.ts +4 -0
- package/dist/libs/core/src/lib/get-packed.d.ts +1 -0
- package/dist/libs/core/src/lib/git-checkout.d.ts +7 -0
- package/dist/libs/core/src/lib/has-npm-version.d.ts +1 -0
- package/dist/libs/core/src/lib/listable-format-projects.d.ts +24 -0
- package/dist/libs/core/src/lib/listable-options.d.ts +54 -0
- package/dist/libs/core/src/lib/log-packed.d.ts +14 -0
- package/dist/libs/core/src/lib/npm-conf/conf.d.ts +22 -0
- package/dist/libs/core/src/lib/npm-conf/env-replace.d.ts +1 -0
- package/dist/libs/core/src/lib/npm-conf/find-prefix.d.ts +1 -0
- package/dist/libs/core/src/lib/npm-conf/nerf-dart.d.ts +1 -0
- package/dist/libs/core/src/lib/npm-conf/parse-field.d.ts +1 -0
- package/dist/libs/core/src/lib/npm-install.d.ts +2 -0
- package/dist/libs/core/src/lib/npm-publish.d.ts +20 -0
- package/dist/libs/core/src/lib/npm-run-script.d.ts +2 -0
- package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-base.d.ts +6 -0
- package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-group.d.ts +21 -0
- package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker-stream.d.ts +14 -0
- package/dist/libs/core/src/lib/npmlog/are-we-there-yet/tracker.d.ts +10 -0
- package/dist/libs/core/src/lib/npmlog/gauge/index.d.ts +43 -0
- package/dist/libs/core/src/lib/npmlog/index.d.ts +76 -0
- package/dist/libs/core/src/lib/oidc.d.ts +25 -0
- package/dist/libs/core/src/lib/otplease.d.ts +15 -0
- package/dist/libs/core/src/lib/output.d.ts +1 -0
- package/dist/libs/core/src/lib/pack-directory.d.ts +30 -0
- package/dist/libs/core/src/lib/package.d.ts +128 -0
- package/dist/libs/core/src/lib/prerelease-id-from-version.d.ts +1 -0
- package/dist/libs/core/src/lib/profiler.d.ts +20 -0
- package/dist/libs/core/src/lib/project/apply-extends.d.ts +4 -0
- package/dist/libs/core/src/lib/project/index.d.ts +82 -0
- package/dist/libs/core/src/lib/project/make-file-finder.d.ts +2 -0
- package/dist/libs/core/src/lib/project/shallow-extend.d.ts +1 -0
- package/dist/libs/core/src/lib/project-graph-with-packages.d.ts +23 -0
- package/dist/libs/core/src/lib/prompt.d.ts +19 -0
- package/dist/libs/core/src/lib/pulse-till-done.d.ts +2 -0
- package/dist/libs/core/src/lib/rimraf-dir.d.ts +1 -0
- package/dist/libs/core/src/lib/run-lifecycle.d.ts +21 -0
- package/dist/libs/core/src/lib/run-projects-topologically.d.ts +10 -0
- package/dist/libs/core/src/lib/scm-clients/github/create-github-client.d.ts +4 -0
- package/dist/libs/core/src/lib/scm-clients/gitlab/create-gitlab-client.d.ts +11 -0
- package/dist/libs/core/src/lib/scm-clients/gitlab/gitlab-client.d.ts +13 -0
- package/dist/libs/core/src/lib/scm-clients/index.d.ts +2 -0
- package/dist/libs/core/src/lib/temp-write.d.ts +5 -0
- package/dist/libs/core/src/lib/timer.d.ts +1 -0
- package/dist/libs/core/src/lib/toposort-projects.d.ts +2 -0
- package/dist/libs/core/src/lib/validation-error.d.ts +4 -0
- package/dist/libs/core/src/lib/write-log-file.d.ts +1 -0
- package/dist/libs/legacy-core/src/index.d.ts +10 -0
- package/dist/libs/legacy-core/src/lib/collect-updates/collect-dependents.d.ts +5 -0
- package/dist/libs/legacy-core/src/lib/collect-updates/collect-packages.d.ts +10 -0
- package/dist/libs/legacy-core/src/lib/collect-updates/has-tags.d.ts +5 -0
- package/dist/libs/legacy-core/src/lib/collect-updates/index.d.ts +19 -0
- package/dist/libs/legacy-core/src/lib/collect-updates/make-diff-predicate.d.ts +7 -0
- package/dist/libs/legacy-core/src/lib/command/clean-stack.d.ts +1 -0
- package/dist/libs/legacy-core/src/lib/command/default-options.d.ts +2 -0
- package/dist/libs/legacy-core/src/lib/command/index.d.ts +40 -0
- package/dist/libs/legacy-core/src/lib/command/log-package-error.d.ts +1 -0
- package/dist/libs/legacy-core/src/lib/command/warn-if-hanging.d.ts +1 -0
- package/dist/libs/legacy-core/src/lib/create-symlink.d.ts +4 -0
- package/dist/libs/legacy-core/src/lib/filter-packages.d.ts +13 -0
- package/dist/libs/legacy-core/src/lib/get-filtered-packages.d.ts +7 -0
- package/dist/libs/legacy-core/src/lib/listable-format.d.ts +8 -0
- package/dist/libs/legacy-core/src/lib/package-graph/cyclic-package-graph-node.d.ts +37 -0
- package/dist/libs/legacy-core/src/lib/package-graph/index.d.ts +74 -0
- package/dist/libs/legacy-core/src/lib/package-graph/package-graph-node.d.ts +32 -0
- package/dist/libs/legacy-core/src/lib/package-graph/report-cycles.d.ts +1 -0
- package/dist/libs/legacy-core/src/lib/query-graph.d.ts +27 -0
- package/dist/libs/legacy-core/src/lib/resolve-symlink.d.ts +1 -0
- package/dist/libs/legacy-core/src/lib/run-topologically.d.ts +16 -0
- package/dist/libs/legacy-core/src/lib/symlink-binary/index.d.ts +5 -0
- package/dist/libs/legacy-core/src/lib/symlink-dependencies.d.ts +9 -0
- package/dist/libs/legacy-core/src/lib/write-log-file.d.ts +1 -0
- package/dist/migrations/add-schema-config/add-schema-config.js +34 -0
- package/dist/migrations/remove-invalid-init-config/remove-invalid-init-config.js +34 -0
- package/dist/migrations/remove-invalid-lerna-config/remove-invalid-lerna-config.js +34 -0
- package/dist/migrations/remove-invalid-use-workspaces/remove-invalid-use-workspaces.js +34 -0
- package/dist/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.js +34 -0
- package/dist/migrations/update-options-from-legacy-deprecate-config/update-options-from-legacy-deprecate-config.js +96 -0
- package/dist/packages/lerna/src/commands/add-caching/command.d.ts +6 -0
- package/dist/packages/lerna/src/commands/add-caching/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/changed/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/changed/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/clean/command.d.ts +0 -0
- package/dist/packages/lerna/src/commands/clean/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/diff/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/diff/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/diff/lib/get-last-commit.d.ts +1 -0
- package/dist/packages/lerna/src/commands/diff/lib/has-commit.d.ts +1 -0
- package/dist/packages/lerna/src/commands/exec/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/exec/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/import/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/import/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/info/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/info/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/init/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/init/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/list/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/list/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/publish/command.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/publish/lib/create-temp-licenses.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/fetch-config.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-current-sha.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-current-tags.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-npm-username.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-packages-without-license.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-profile-data.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-two-factor-auth-required.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/get-whoami.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/git-checkout.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/remove-temp-licenses.d.ts +0 -0
- package/dist/packages/lerna/src/commands/publish/lib/verify-npm-package-access.d.ts +0 -0
- package/dist/packages/lerna/src/commands/repair/command.d.ts +6 -0
- package/dist/packages/lerna/src/commands/repair/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/run/command.d.ts +1 -0
- package/dist/packages/lerna/src/commands/run/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/version/command.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/index.d.ts +1 -0
- package/dist/packages/lerna/src/commands/version/lib/create-release.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/get-current-branch.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/git-add.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/git-commit.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/git-push.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/git-tag.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/is-anything-committed.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/is-behind-upstream.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/is-breaking-change.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/prompt-version.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/remote-branch-exists.d.ts +0 -0
- package/dist/packages/lerna/src/commands/version/lib/update-lockfile-version.d.ts +0 -0
- package/dist/packages/lerna/src/commands/watch/command.d.ts +6 -0
- package/dist/packages/lerna/src/commands/watch/index.d.ts +1 -0
- package/dist/packages/lerna/src/index.d.ts +1 -0
- package/dist/packages/lerna/src/migrations/add-schema-config/add-schema-config.d.ts +2 -0
- package/dist/packages/lerna/src/migrations/remove-invalid-init-config/remove-invalid-init-config.d.ts +2 -0
- package/dist/packages/lerna/src/migrations/remove-invalid-lerna-config/remove-invalid-lerna-config.d.ts +2 -0
- package/dist/packages/lerna/src/migrations/remove-invalid-use-workspaces/remove-invalid-use-workspaces.d.ts +2 -0
- package/dist/packages/lerna/src/migrations/remove-unnecessary-use-nx/remove-unnecessary-use-nx.d.ts +2 -0
- package/dist/packages/lerna/src/migrations/update-options-from-legacy-deprecate-config/update-options-from-legacy-deprecate-config.d.ts +9 -0
- package/dist/packages/lerna/src/utils/detect-projects.d.ts +4 -0
- package/dist/packages/lerna/src/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4362 -0
- package/migrations.json +40 -0
- package/package.json +376 -0
- 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,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,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,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,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,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,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,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,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,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 @@
|
|
|
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,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;
|