@lerna-lite/core 1.3.0 → 1.4.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 +13 -12
- package/dist/child-process.d.ts +62 -62
- package/dist/child-process.js +165 -165
- package/dist/command.d.ts +37 -35
- package/dist/command.js +266 -266
- package/dist/command.js.map +1 -1
- package/dist/conventional-commits/constants.d.ts +4 -4
- package/dist/conventional-commits/constants.js +12 -12
- package/dist/conventional-commits/get-changelog-config.d.ts +12 -12
- package/dist/conventional-commits/get-changelog-config.js +98 -98
- package/dist/conventional-commits/index.d.ts +6 -6
- package/dist/conventional-commits/index.js +22 -22
- package/dist/conventional-commits/make-bump-only-filter.d.ts +6 -6
- package/dist/conventional-commits/make-bump-only-filter.js +22 -22
- package/dist/conventional-commits/read-existing-changelog.d.ts +7 -7
- package/dist/conventional-commits/read-existing-changelog.js +32 -32
- package/dist/conventional-commits/recommend-version.d.ts +11 -11
- package/dist/conventional-commits/recommend-version.js +86 -86
- package/dist/conventional-commits/update-changelog.d.ts +11 -11
- package/dist/conventional-commits/update-changelog.js +83 -83
- package/dist/git-clients/GitLabClient.d.ts +8 -8
- package/dist/git-clients/GitLabClient.js +39 -39
- package/dist/git-clients/github-client.d.ts +6 -6
- package/dist/git-clients/github-client.js +40 -40
- package/dist/git-clients/gitlab-client.d.ts +6 -6
- package/dist/git-clients/gitlab-client.js +21 -21
- package/dist/git-clients/index.d.ts +2 -2
- package/dist/git-clients/index.js +18 -18
- package/dist/index.d.ts +12 -12
- package/dist/index.js +30 -30
- package/dist/models/command-options.d.ts +206 -0
- package/dist/models/command-options.js +3 -0
- package/dist/models/command-options.js.map +1 -0
- package/dist/models/index.d.ts +2 -186
- package/dist/models/index.js +18 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/interfaces.d.ts +201 -0
- package/dist/models/interfaces.js +3 -0
- package/dist/models/interfaces.js.map +1 -0
- package/dist/otplease.d.ts +14 -14
- package/dist/otplease.js +108 -108
- package/dist/package-graph/index.d.ts +2 -2
- package/dist/package-graph/index.js +18 -18
- package/dist/package-graph/lib/cyclic-package-graph-node.d.ts +42 -42
- package/dist/package-graph/lib/cyclic-package-graph-node.js +97 -97
- package/dist/package-graph/lib/index.d.ts +3 -3
- package/dist/package-graph/lib/index.js +19 -19
- package/dist/package-graph/lib/package-graph-node.d.ts +33 -33
- package/dist/package-graph/lib/package-graph-node.js +58 -58
- package/dist/package-graph/lib/report-cycles.d.ts +1 -1
- package/dist/package-graph/lib/report-cycles.js +19 -19
- package/dist/package-graph/package-graph.d.ts +79 -79
- package/dist/package-graph/package-graph.js +276 -276
- package/dist/package.d.ts +91 -85
- package/dist/package.js +282 -276
- package/dist/package.js.map +1 -1
- package/dist/project/index.d.ts +2 -2
- package/dist/project/index.js +18 -18
- package/dist/project/lib/apply-extends.d.ts +10 -10
- package/dist/project/lib/apply-extends.js +37 -37
- package/dist/project/lib/index.d.ts +3 -3
- package/dist/project/lib/index.js +19 -19
- package/dist/project/lib/make-file-finder.d.ts +3 -3
- package/dist/project/lib/make-file-finder.js +71 -71
- package/dist/project/lib/shallow-extend.d.ts +11 -11
- package/dist/project/lib/shallow-extend.js +24 -24
- package/dist/project/project.d.ts +45 -45
- package/dist/project/project.js +195 -195
- package/dist/prompt.d.ts +23 -23
- package/dist/prompt.js +75 -75
- package/dist/utils/check-working-tree.d.ts +8 -8
- package/dist/utils/check-working-tree.js +41 -41
- package/dist/utils/clean-stack.d.ts +5 -5
- package/dist/utils/clean-stack.js +18 -18
- package/dist/utils/collect-uncommitted.d.ts +18 -18
- package/dist/utils/collect-uncommitted.js +40 -40
- package/dist/utils/collect-updates/collect-updates.d.ts +11 -11
- package/dist/utils/collect-updates/collect-updates.js +82 -82
- package/dist/utils/collect-updates/index.d.ts +2 -2
- package/dist/utils/collect-updates/index.js +18 -18
- package/dist/utils/collect-updates/lib/collect-dependents.d.ts +11 -11
- package/dist/utils/collect-updates/lib/collect-dependents.js +45 -45
- package/dist/utils/collect-updates/lib/collect-packages.d.ts +13 -13
- package/dist/utils/collect-updates/lib/collect-packages.js +33 -33
- package/dist/utils/collect-updates/lib/get-packages-for-option.d.ts +5 -5
- package/dist/utils/collect-updates/lib/get-packages-for-option.js +30 -30
- package/dist/utils/collect-updates/lib/has-tags.d.ts +5 -5
- package/dist/utils/collect-updates/lib/has-tags.js +26 -26
- package/dist/utils/collect-updates/lib/index.d.ts +5 -5
- package/dist/utils/collect-updates/lib/index.js +21 -21
- package/dist/utils/collect-updates/lib/make-diff-predicate.d.ts +7 -7
- package/dist/utils/collect-updates/lib/make-diff-predicate.js +64 -64
- package/dist/utils/conf.d.ts +25 -25
- package/dist/utils/conf.js +255 -255
- package/dist/utils/defaults.d.ts +1 -1
- package/dist/utils/defaults.js +182 -182
- package/dist/utils/defaults.js.map +1 -1
- package/dist/utils/describe-ref.d.ts +37 -37
- package/dist/utils/describe-ref.js +80 -80
- package/dist/utils/env-replace.d.ts +1 -1
- package/dist/utils/env-replace.js +22 -22
- package/dist/utils/find-prefix.d.ts +2 -2
- package/dist/utils/find-prefix.js +48 -48
- package/dist/utils/index.d.ts +23 -22
- package/dist/utils/index.js +39 -38
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/log-package-error.d.ts +5 -5
- package/dist/utils/log-package-error.js +35 -35
- package/dist/utils/nerf-dart.d.ts +1 -1
- package/dist/utils/nerf-dart.js +18 -18
- package/dist/utils/npm-conf.d.ts +4 -4
- package/dist/utils/npm-conf.js +55 -55
- package/dist/utils/output.d.ts +1 -1
- package/dist/utils/output.js +13 -13
- package/dist/utils/parse-field.d.ts +1 -1
- package/dist/utils/parse-field.js +65 -65
- package/dist/utils/prerelease-id-from-version.d.ts +5 -5
- package/dist/utils/prerelease-id-from-version.js +15 -15
- package/dist/utils/pulse-till-done.d.ts +1 -1
- package/dist/utils/pulse-till-done.js +40 -40
- package/dist/utils/query-graph.d.ts +36 -36
- package/dist/utils/query-graph.js +77 -77
- package/dist/utils/query-graph.js.map +1 -1
- package/dist/utils/run-lifecycle.d.ts +10 -10
- package/dist/utils/run-lifecycle.js +131 -107
- package/dist/utils/run-lifecycle.js.map +1 -1
- package/dist/utils/run-topologically.d.ts +12 -12
- package/dist/utils/run-topologically.js +36 -36
- package/dist/utils/temp-write.d.ts +13 -0
- package/dist/utils/temp-write.js +50 -0
- package/dist/utils/temp-write.js.map +1 -0
- package/dist/utils/types.d.ts +131 -129
- package/dist/utils/types.js +138 -138
- package/dist/utils/warn-if-hanging.d.ts +1 -1
- package/dist/utils/warn-if-hanging.js +17 -17
- package/dist/utils/write-log-file.d.ts +1 -1
- package/dist/utils/write-log-file.js +32 -32
- package/dist/validation-error.d.ts +4 -4
- package/dist/validation-error.js +18 -18
- package/package.json +14 -10
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export interface ExecCommandOption {
|
|
2
|
+
/** command to execute by the command */
|
|
3
|
+
cmd?: string;
|
|
4
|
+
/** exec command arguments */
|
|
5
|
+
args?: any;
|
|
6
|
+
/** Displays the execution command that would be performed without executing it. */
|
|
7
|
+
cmdDryRun?: boolean;
|
|
8
|
+
/** Stream output with lines prefixed by originating package name. */
|
|
9
|
+
stream?: boolean;
|
|
10
|
+
/** Execute command with unlimited concurrency, streaming prefixed output. */
|
|
11
|
+
parallel?: boolean;
|
|
12
|
+
/** Continue executing command despite non-zero exit in a given package. */
|
|
13
|
+
noBail?: boolean;
|
|
14
|
+
/** proxy for --no-bail */
|
|
15
|
+
bail?: boolean;
|
|
16
|
+
/** Do not prefix streaming output. */
|
|
17
|
+
noPrefix?: boolean;
|
|
18
|
+
/** proxy for --no-prefix */
|
|
19
|
+
prefix?: boolean;
|
|
20
|
+
/** Profile command executions and output performance profile to default location. */
|
|
21
|
+
profile?: boolean;
|
|
22
|
+
/** Output performance profile to custom location instead of default project root. */
|
|
23
|
+
profileLocation?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface InitCommandOption {
|
|
26
|
+
/** specify lerna dependency version in package.json without a caret (^) */
|
|
27
|
+
exact?: boolean;
|
|
28
|
+
/** version packages independently */
|
|
29
|
+
independent?: boolean;
|
|
30
|
+
/** enables integration with Yarn or other package manager that use `workspaces` property in `package.json` */
|
|
31
|
+
useWorkspaces?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface ListCommandOption {
|
|
34
|
+
/** Show private packages that are hidden by default. */
|
|
35
|
+
all?: boolean;
|
|
36
|
+
/** Show dependency graph as a JSON-formatted [adjacency list](https://en.wikipedia.org/wiki/Adjacency_list). */
|
|
37
|
+
graph?: boolean;
|
|
38
|
+
/** Show information as a JSON array. */
|
|
39
|
+
json?: boolean;
|
|
40
|
+
/** Show extended information. */
|
|
41
|
+
long?: boolean;
|
|
42
|
+
/** Show information as [newline-delimited JSON](http://ndjson.org/). */
|
|
43
|
+
ndjson?: boolean;
|
|
44
|
+
/** Show parseable output instead of columnified view. */
|
|
45
|
+
parseable?: boolean;
|
|
46
|
+
/** Sort packages in topological order (dependencies before dependents) instead of lexical by directory. */
|
|
47
|
+
toposort?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface PublishCommandOption extends VersionCommandOption {
|
|
50
|
+
/** alias to '--canary' */
|
|
51
|
+
c?: boolean;
|
|
52
|
+
/** Publish packages after every successful merge using the sha as part of the tag. */
|
|
53
|
+
canary?: boolean;
|
|
54
|
+
/** Specify the prerelease identifier when publishing a prerelease */
|
|
55
|
+
preid?: string;
|
|
56
|
+
/** Subdirectory to publish. Must apply to ALL packages. */
|
|
57
|
+
contents?: string;
|
|
58
|
+
/** Publish packages with the specified npm dist-tag */
|
|
59
|
+
distTag?: string;
|
|
60
|
+
/** Legacy Base64 Encoded username and password. */
|
|
61
|
+
legacyAuth?: string;
|
|
62
|
+
/** Publish prerelease packages with the specified npm dist-tag */
|
|
63
|
+
preDistTag?: string;
|
|
64
|
+
/** Explicit SHA to set as gitHead when packing tarballs, only allowed with "from-package" positional. */
|
|
65
|
+
gitHead?: string;
|
|
66
|
+
/** Type of dependency to use when determining package hierarchy. */
|
|
67
|
+
graphType: 'all' | 'dependencies';
|
|
68
|
+
/** Disable deprecated "prepublish" lifecycle script */
|
|
69
|
+
ignorePrepublish?: boolean;
|
|
70
|
+
/** Disable all lifecycle scripts */
|
|
71
|
+
ignoreScripts?: boolean;
|
|
72
|
+
/** Do not reset changes file-by-file, but globally. */
|
|
73
|
+
noGranularPathspec?: boolean;
|
|
74
|
+
/** proxy for --no-granular-pathspec */
|
|
75
|
+
granularPathspec?: boolean;
|
|
76
|
+
/** Supply a one-time password for publishing with two-factor authentication. */
|
|
77
|
+
otp?: string;
|
|
78
|
+
/** Use the specified registry for all npm client operations. */
|
|
79
|
+
registry?: string;
|
|
80
|
+
/** Execute ./scripts/prepublish.js and ./scripts/postpublish.js, relative to package root. */
|
|
81
|
+
requireScripts?: boolean;
|
|
82
|
+
/** Do not reset changes to working tree after publishing is complete. */
|
|
83
|
+
noGitReset?: boolean;
|
|
84
|
+
gitReset?: boolean;
|
|
85
|
+
/** Create a temporary tag while publishing. */
|
|
86
|
+
tempTag?: boolean;
|
|
87
|
+
/** Do not verify package read-write access for current npm user. */
|
|
88
|
+
noVerifyAccess?: boolean;
|
|
89
|
+
/** proxy for --no-verify-access */
|
|
90
|
+
verifyAccess?: boolean;
|
|
91
|
+
/** alias to '--yes' */
|
|
92
|
+
y?: boolean;
|
|
93
|
+
/** Skip all confirmation prompts. */
|
|
94
|
+
yes?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface VersionCommandOption {
|
|
97
|
+
/** Specify which branches to allow versioning from. */
|
|
98
|
+
allowBranch?: string[];
|
|
99
|
+
/** Amend the existing commit, instead of generating a new one. */
|
|
100
|
+
amend?: boolean;
|
|
101
|
+
/** conventional commit version bump type */
|
|
102
|
+
bump: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease' | 'from-git' | 'from-package';
|
|
103
|
+
/** Use conventional-changelog to determine version bump and generate CHANGELOG. */
|
|
104
|
+
conventionalCommits?: boolean;
|
|
105
|
+
/** Version currently prereleased packages to a non-prerelease version. */
|
|
106
|
+
conventionalGraduate?: boolean | string;
|
|
107
|
+
/** Version changed packages as prereleases when using --conventional-commits. */
|
|
108
|
+
conventionalPrerelease?: boolean | string;
|
|
109
|
+
/** Add a custom message at the top of your "changelog.md" which is located in the root of your project. This option only works when using --conventional-commits. */
|
|
110
|
+
changelogHeaderMessage?: string;
|
|
111
|
+
/** Add a custom message as a prefix to each new version in your "changelog.md" which is located in the root of your project. This option only works when using --conventional-commits. */
|
|
112
|
+
changelogVersionMessage?: string;
|
|
113
|
+
/** Defaults 'angular', custom conventional-changelog preset. */
|
|
114
|
+
changelogPreset?: string;
|
|
115
|
+
/** Specify cross-dependency version numbers exactly rather than with a caret (^). */
|
|
116
|
+
exact?: boolean;
|
|
117
|
+
/** Always include targeted packages in versioning operations, skipping default logic. */
|
|
118
|
+
forcePublish?: boolean | string;
|
|
119
|
+
/** Displays the process command that would be performed without executing it. */
|
|
120
|
+
gitDryRun?: boolean;
|
|
121
|
+
/** Defaults to 'origin', push git changes to the specified remote. */
|
|
122
|
+
gitRemote: string;
|
|
123
|
+
/** Create an official GitHub or GitLab release for every version. */
|
|
124
|
+
createRelease?: 'gitlab' | 'github';
|
|
125
|
+
/**
|
|
126
|
+
* Ignore changes in files matched by glob(s) when detecting changed packages.
|
|
127
|
+
* Pass --no-ignore-changes to completely disable.
|
|
128
|
+
*/
|
|
129
|
+
ignoreChanges?: string[];
|
|
130
|
+
/** Disable all lifecycle scripts */
|
|
131
|
+
ignoreScripts?: boolean;
|
|
132
|
+
/** Include tags from merged branches when detecting changed packages. */
|
|
133
|
+
includeMergedTags?: boolean;
|
|
134
|
+
/** alias to '--message' */
|
|
135
|
+
m?: string;
|
|
136
|
+
/** Use a custom commit message when creating the version commit. */
|
|
137
|
+
message?: string;
|
|
138
|
+
/** Do not generate CHANGELOG.md files when using --conventional-commits. */
|
|
139
|
+
noChangelog?: boolean;
|
|
140
|
+
/** proxy for --no-changelog */
|
|
141
|
+
changelog?: boolean;
|
|
142
|
+
/** Do not run git commit hooks when committing version changes. */
|
|
143
|
+
noCommitHooks?: boolean;
|
|
144
|
+
/** proxy for --no-commit-hooks */
|
|
145
|
+
commitHooks?: boolean;
|
|
146
|
+
/** Do not commit or tag version changes. */
|
|
147
|
+
noGitTagVersion?: boolean;
|
|
148
|
+
/** proxy for --no-git-tag-version */
|
|
149
|
+
gitTagVersion?: boolean;
|
|
150
|
+
/** Do not stage changes file-by-file, but globally. */
|
|
151
|
+
noGranularPathspec?: boolean;
|
|
152
|
+
/** Stage changes file-by-file, not globally. Proxy for --no-granular-pathspec */
|
|
153
|
+
granularPathspec?: boolean;
|
|
154
|
+
/** Do not version private packages. */
|
|
155
|
+
noPrivate?: boolean;
|
|
156
|
+
/** proxy for --no-private */
|
|
157
|
+
private?: boolean;
|
|
158
|
+
/** Do not push tagged commit to git remote. */
|
|
159
|
+
noPush?: boolean;
|
|
160
|
+
/** proxy for --no-push */
|
|
161
|
+
push?: boolean;
|
|
162
|
+
/** Defaults to 'alpha', specify the prerelease identifier when versioning a prerelease */
|
|
163
|
+
preid?: string;
|
|
164
|
+
/** Pass the `--gpg-sign` flag to `git commit`. */
|
|
165
|
+
signGitCommit?: boolean;
|
|
166
|
+
/** Pass the `--signoff` flag to `git commit`. */
|
|
167
|
+
signoffGitCommit?: boolean;
|
|
168
|
+
/** Pass the `--sign` flag to `git tag`. */
|
|
169
|
+
signGitTag?: boolean;
|
|
170
|
+
/** Pass the `--force` flag to `git tag`. */
|
|
171
|
+
forceGitTag?: boolean;
|
|
172
|
+
/** Defaults to 'v', customize the tag prefix. To remove entirely, pass an empty string. */
|
|
173
|
+
tagVersionPrefix?: string;
|
|
174
|
+
/** Strict match transform version numbers to an exact range (like "1.2.3") rather than with a caret (like ^1.2.3) when using `workspace:*`. */
|
|
175
|
+
workspaceStrictMatch?: boolean;
|
|
176
|
+
/** alias to '--yes' */
|
|
177
|
+
y?: boolean;
|
|
178
|
+
/** Skip all confirmation prompts. */
|
|
179
|
+
yes?: boolean;
|
|
180
|
+
}
|
|
181
|
+
export interface RunCommandOption {
|
|
182
|
+
/** Displays the process command that would be performed without executing it. */
|
|
183
|
+
cmdDryRun?: boolean;
|
|
184
|
+
/** Defaults to 'npm', executable used to run scripts (npm, yarn, pnpm, ...). */
|
|
185
|
+
npmClient?: string;
|
|
186
|
+
/** Stream output with lines prefixed by package. */
|
|
187
|
+
stream?: boolean;
|
|
188
|
+
/** Run script with unlimited concurrency, streaming prefixed output. */
|
|
189
|
+
parallel?: boolean;
|
|
190
|
+
/** Continue running script despite non-zero exit in a given package. */
|
|
191
|
+
noBail?: boolean;
|
|
192
|
+
/** proxy for --no-bail */
|
|
193
|
+
bail?: boolean;
|
|
194
|
+
/** Do not prefix streaming output. */
|
|
195
|
+
noPrefix?: boolean;
|
|
196
|
+
/** proxy for --no-prefix */
|
|
197
|
+
prefix?: boolean;
|
|
198
|
+
/** Profile script executions and output performance profile to default location. */
|
|
199
|
+
profile?: boolean;
|
|
200
|
+
/** Output performance profile to custom location instead of default project root. */
|
|
201
|
+
profileLocation?: string;
|
|
202
|
+
/** npm script to run by the command */
|
|
203
|
+
script: string;
|
|
204
|
+
/** Enables integration with [Nx](https://nx.dev) */
|
|
205
|
+
useNx?: boolean;
|
|
206
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-options.js","sourceRoot":"","sources":["../../src/models/command-options.ts"],"names":[],"mappings":""}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,186 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Package } from '../package';
|
|
4
|
-
export declare type VersioningStrategy = 'fixed' | 'independent';
|
|
5
|
-
export declare type ChangelogType = 'fixed' | 'independent' | 'root';
|
|
6
|
-
export declare type ChangelogPresetConfig = string | {
|
|
7
|
-
name: string;
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
};
|
|
10
|
-
export interface BaseChangelogOptions {
|
|
11
|
-
changelogPreset?: ChangelogPresetConfig;
|
|
12
|
-
rootPath?: string;
|
|
13
|
-
tagPrefix?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface CommandOptions {
|
|
16
|
-
rollPublish?: boolean;
|
|
17
|
-
rollVersion?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare type CommandType = '' | 'exec' | 'info' | 'init' | 'publish' | 'version' | 'run';
|
|
20
|
-
export interface DescribeRefOptions {
|
|
21
|
-
cwd?: string;
|
|
22
|
-
match?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface DescribeRefFallbackResult {
|
|
25
|
-
isDirty: boolean;
|
|
26
|
-
refCount: string;
|
|
27
|
-
sha: string;
|
|
28
|
-
}
|
|
29
|
-
export interface DescribeRefDetailedResult {
|
|
30
|
-
lastTagName: string;
|
|
31
|
-
lastVersion: string;
|
|
32
|
-
isDirty: boolean;
|
|
33
|
-
refCount: string;
|
|
34
|
-
sha: string;
|
|
35
|
-
}
|
|
36
|
-
/** Provided to any execa-based call */
|
|
37
|
-
export interface ExecOpts {
|
|
38
|
-
cwd: string;
|
|
39
|
-
maxBuffer?: number;
|
|
40
|
-
}
|
|
41
|
-
export interface LifecycleConfig {
|
|
42
|
-
log?: typeof log;
|
|
43
|
-
ignorePrepublish?: boolean;
|
|
44
|
-
ignoreScripts?: boolean;
|
|
45
|
-
nodeOptions?: string;
|
|
46
|
-
scriptShell?: string;
|
|
47
|
-
scriptsPrependNodePath?: boolean;
|
|
48
|
-
snapshot?: any;
|
|
49
|
-
unsafePerm?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface Manifest {
|
|
52
|
-
name: string;
|
|
53
|
-
location: string;
|
|
54
|
-
manifest: Package;
|
|
55
|
-
version: string;
|
|
56
|
-
}
|
|
57
|
-
export interface UpdateChangelogOption {
|
|
58
|
-
changelogHeaderMessage?: string;
|
|
59
|
-
changelogVersionMessage?: string;
|
|
60
|
-
changelogPreset?: string;
|
|
61
|
-
rootPath?: string;
|
|
62
|
-
tagPrefix?: string;
|
|
63
|
-
version?: string;
|
|
64
|
-
}
|
|
65
|
-
export interface FetchConfig {
|
|
66
|
-
fetchRetries: number;
|
|
67
|
-
log: typeof log;
|
|
68
|
-
registry: string;
|
|
69
|
-
username: string;
|
|
70
|
-
}
|
|
71
|
-
export interface PackConfig {
|
|
72
|
-
log: typeof log;
|
|
73
|
-
lernaCommand?: string;
|
|
74
|
-
ignorePrepublish?: boolean;
|
|
75
|
-
}
|
|
76
|
-
export interface ProfileData {
|
|
77
|
-
tfa: {
|
|
78
|
-
pending: boolean;
|
|
79
|
-
mode: 'auth-and-writes' | 'auth-only';
|
|
80
|
-
};
|
|
81
|
-
name: string;
|
|
82
|
-
username: string;
|
|
83
|
-
email: string;
|
|
84
|
-
email_verified: boolean;
|
|
85
|
-
created: string;
|
|
86
|
-
updated: string;
|
|
87
|
-
fullname?: string;
|
|
88
|
-
twitter?: string;
|
|
89
|
-
github?: string;
|
|
90
|
-
}
|
|
91
|
-
export interface QueryGraphConfig {
|
|
92
|
-
/** "dependencies" excludes devDependencies from graph */
|
|
93
|
-
graphType?: 'allDependencies' | 'dependencies';
|
|
94
|
-
/** Treatment of local sibling dependencies, default "auto" */
|
|
95
|
-
localDependencies?: 'auto' | 'force' | 'explicit';
|
|
96
|
-
/** Whether or not to reject dependency cycles */
|
|
97
|
-
rejectCycles?: boolean;
|
|
98
|
-
}
|
|
99
|
-
export interface TopologicalConfig extends QueryGraphConfig {
|
|
100
|
-
concurrency?: number;
|
|
101
|
-
}
|
|
102
|
-
export interface GitClientRelease {
|
|
103
|
-
owner: string;
|
|
104
|
-
repo: string;
|
|
105
|
-
tag_name: string;
|
|
106
|
-
name: string;
|
|
107
|
-
body: string;
|
|
108
|
-
draft?: boolean;
|
|
109
|
-
prerelease?: boolean;
|
|
110
|
-
}
|
|
111
|
-
export declare type GitCreateReleaseFn = () => Promise<{
|
|
112
|
-
ok: boolean;
|
|
113
|
-
status: string;
|
|
114
|
-
statusText: string;
|
|
115
|
-
}>;
|
|
116
|
-
export interface GitClient {
|
|
117
|
-
createRelease: (opts: GitClientRelease) => Promise<void>;
|
|
118
|
-
}
|
|
119
|
-
export declare type NpaResolveResult = (npa.FileResult | npa.HostedGitResult | npa.URLResult | npa.AliasResult | npa.RegistryResult) & {
|
|
120
|
-
explicitWorkspace?: boolean;
|
|
121
|
-
workspaceTarget?: string;
|
|
122
|
-
};
|
|
123
|
-
/** Passed between concurrent executions */
|
|
124
|
-
export interface OneTimePasswordCache {
|
|
125
|
-
otp?: string;
|
|
126
|
-
}
|
|
127
|
-
export interface ProjectConfig {
|
|
128
|
-
command?: string;
|
|
129
|
-
packages: string[];
|
|
130
|
-
useWorkspaces: boolean;
|
|
131
|
-
version: string;
|
|
132
|
-
}
|
|
133
|
-
/** The subset of package.json properties that Lerna-Lite uses */
|
|
134
|
-
export interface RawManifest {
|
|
135
|
-
name: string;
|
|
136
|
-
location: string;
|
|
137
|
-
version: string;
|
|
138
|
-
private?: boolean;
|
|
139
|
-
bin?: Record<string, string> | string;
|
|
140
|
-
scripts?: Record<string, string>;
|
|
141
|
-
dependencies?: Record<string, string>;
|
|
142
|
-
devDependencies?: Record<string, string>;
|
|
143
|
-
optionalDependencies?: Record<string, string>;
|
|
144
|
-
peerDependencies?: Record<string, string>;
|
|
145
|
-
publishConfig?: Record<'directory' | 'registry' | 'tag', string>;
|
|
146
|
-
workspaces?: string[] | {
|
|
147
|
-
packages: string[];
|
|
148
|
-
};
|
|
149
|
-
get: (str: string) => {
|
|
150
|
-
packages?: string[];
|
|
151
|
-
} | string[];
|
|
152
|
-
}
|
|
153
|
-
export interface ReleaseClient {
|
|
154
|
-
repos: {
|
|
155
|
-
createRelease: GitCreateReleaseFn;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
export interface ReleaseCommandProps {
|
|
159
|
-
tags: string[];
|
|
160
|
-
releaseNotes: ReleaseNote[];
|
|
161
|
-
}
|
|
162
|
-
export interface ReleaseOptions {
|
|
163
|
-
gitRemote: string;
|
|
164
|
-
execOpts: ExecOpts;
|
|
165
|
-
}
|
|
166
|
-
export interface ReleaseNote {
|
|
167
|
-
name: string;
|
|
168
|
-
notes?: string;
|
|
169
|
-
}
|
|
170
|
-
export interface UpdateCollectorOptions {
|
|
171
|
-
/** The semver bump keyword (patch/minor/major) or explicit version used */
|
|
172
|
-
bump?: string;
|
|
173
|
-
/** Whether or not to use a "nightly" range (`ref^..ref`) for commits */
|
|
174
|
-
canary?: boolean;
|
|
175
|
-
/** A list of globs that match files/directories whose changes should not be considered when identifying changed packages */
|
|
176
|
-
ignoreChanges?: string[];
|
|
177
|
-
/** Whether or not to include the --first-parent flag when calling `git describe` (awkwardly, pass `true` to _omit_ the flag, the default is to include it) */
|
|
178
|
-
includeMergedTags?: boolean;
|
|
179
|
-
/** Which packages, if any, to always include. Force all packages to be versioned with `true`, or pass a list of globs that match package names */
|
|
180
|
-
forcePublish?: boolean | string[];
|
|
181
|
-
/** Ref to use when querying git, defaults to most recent annotated tag */
|
|
182
|
-
since?: string;
|
|
183
|
-
conventionalCommits?: boolean;
|
|
184
|
-
conventionalGraduate?: boolean;
|
|
185
|
-
excludeDependents?: boolean;
|
|
186
|
-
}
|
|
1
|
+
export * from './command-options';
|
|
2
|
+
export * from './interfaces';
|
package/dist/models/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./command-options"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+CAA6B"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import log from 'npmlog';
|
|
2
|
+
import npa from 'npm-package-arg';
|
|
3
|
+
import { Package } from '../package';
|
|
4
|
+
import { InitCommandOption, PublishCommandOption, RunCommandOption, VersionCommandOption } from './command-options';
|
|
5
|
+
export declare type VersioningStrategy = 'fixed' | 'independent';
|
|
6
|
+
export declare type ChangelogType = 'fixed' | 'independent' | 'root';
|
|
7
|
+
export declare type ChangelogPresetConfig = string | {
|
|
8
|
+
name: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
export interface BaseChangelogOptions {
|
|
12
|
+
changelogPreset?: ChangelogPresetConfig;
|
|
13
|
+
rootPath?: string;
|
|
14
|
+
tagPrefix?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CommandOptions {
|
|
17
|
+
rollPublish?: boolean;
|
|
18
|
+
rollVersion?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare type CommandType = '' | 'exec' | 'info' | 'init' | 'list' | 'publish' | 'run' | 'version';
|
|
21
|
+
export interface DescribeRefOptions {
|
|
22
|
+
cwd?: string;
|
|
23
|
+
match?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DescribeRefFallbackResult {
|
|
26
|
+
isDirty: boolean;
|
|
27
|
+
refCount: string;
|
|
28
|
+
sha: string;
|
|
29
|
+
}
|
|
30
|
+
export interface DescribeRefDetailedResult {
|
|
31
|
+
lastTagName: string;
|
|
32
|
+
lastVersion: string;
|
|
33
|
+
isDirty: boolean;
|
|
34
|
+
refCount: string;
|
|
35
|
+
sha: string;
|
|
36
|
+
}
|
|
37
|
+
/** Provided to any execa-based call */
|
|
38
|
+
export interface ExecOpts {
|
|
39
|
+
cwd: string;
|
|
40
|
+
maxBuffer?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface LifecycleConfig {
|
|
43
|
+
log?: typeof log;
|
|
44
|
+
ignorePrepublish?: boolean;
|
|
45
|
+
ignoreScripts?: boolean;
|
|
46
|
+
nodeOptions?: string;
|
|
47
|
+
scriptShell?: string;
|
|
48
|
+
scriptsPrependNodePath?: boolean;
|
|
49
|
+
snapshot?: any;
|
|
50
|
+
unsafePerm?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface Manifest {
|
|
53
|
+
name: string;
|
|
54
|
+
location: string;
|
|
55
|
+
manifest: Package;
|
|
56
|
+
version: string;
|
|
57
|
+
}
|
|
58
|
+
export interface UpdateChangelogOption {
|
|
59
|
+
changelogHeaderMessage?: string;
|
|
60
|
+
changelogVersionMessage?: string;
|
|
61
|
+
changelogPreset?: string;
|
|
62
|
+
rootPath?: string;
|
|
63
|
+
tagPrefix?: string;
|
|
64
|
+
version?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface FetchConfig {
|
|
67
|
+
fetchRetries: number;
|
|
68
|
+
log: typeof log;
|
|
69
|
+
registry: string;
|
|
70
|
+
username: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PackConfig {
|
|
73
|
+
log: typeof log;
|
|
74
|
+
lernaCommand?: string;
|
|
75
|
+
ignorePrepublish?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface ProfileData {
|
|
78
|
+
tfa: {
|
|
79
|
+
pending: boolean;
|
|
80
|
+
mode: 'auth-and-writes' | 'auth-only';
|
|
81
|
+
};
|
|
82
|
+
name: string;
|
|
83
|
+
username: string;
|
|
84
|
+
email: string;
|
|
85
|
+
email_verified: boolean;
|
|
86
|
+
created: string;
|
|
87
|
+
updated: string;
|
|
88
|
+
fullname?: string;
|
|
89
|
+
twitter?: string;
|
|
90
|
+
github?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface QueryGraphConfig {
|
|
93
|
+
/** "dependencies" excludes devDependencies from graph */
|
|
94
|
+
graphType?: 'all' | 'allDependencies' | 'dependencies';
|
|
95
|
+
/** Treatment of local sibling dependencies, default "auto" */
|
|
96
|
+
localDependencies?: 'auto' | 'force' | 'explicit';
|
|
97
|
+
/** Whether or not to reject dependency cycles */
|
|
98
|
+
rejectCycles?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface TopologicalConfig extends QueryGraphConfig {
|
|
101
|
+
concurrency?: number;
|
|
102
|
+
}
|
|
103
|
+
export interface GitClientRelease {
|
|
104
|
+
owner: string;
|
|
105
|
+
repo: string;
|
|
106
|
+
tag_name: string;
|
|
107
|
+
name: string;
|
|
108
|
+
body: string;
|
|
109
|
+
draft?: boolean;
|
|
110
|
+
prerelease?: boolean;
|
|
111
|
+
}
|
|
112
|
+
export declare type GitCreateReleaseFn = () => Promise<{
|
|
113
|
+
ok: boolean;
|
|
114
|
+
status: string;
|
|
115
|
+
statusText: string;
|
|
116
|
+
}>;
|
|
117
|
+
export interface GitClient {
|
|
118
|
+
createRelease: (opts: GitClientRelease) => Promise<void>;
|
|
119
|
+
}
|
|
120
|
+
export declare type NpaResolveResult = (npa.FileResult | npa.HostedGitResult | npa.URLResult | npa.AliasResult | npa.RegistryResult) & {
|
|
121
|
+
explicitWorkspace?: boolean;
|
|
122
|
+
workspaceTarget?: string;
|
|
123
|
+
};
|
|
124
|
+
/** Passed between concurrent executions */
|
|
125
|
+
export interface OneTimePasswordCache {
|
|
126
|
+
otp?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface LernaConfig {
|
|
129
|
+
command?: {
|
|
130
|
+
init?: InitCommandOption;
|
|
131
|
+
publish?: PublishCommandOption;
|
|
132
|
+
version?: VersionCommandOption;
|
|
133
|
+
run?: RunCommandOption;
|
|
134
|
+
};
|
|
135
|
+
packages?: string[];
|
|
136
|
+
loglevel?: 'silent';
|
|
137
|
+
'error': any;
|
|
138
|
+
'warn': any;
|
|
139
|
+
'notice': any;
|
|
140
|
+
'http': any;
|
|
141
|
+
'timing': any;
|
|
142
|
+
'info': any;
|
|
143
|
+
'verbose': any;
|
|
144
|
+
'silly': any;
|
|
145
|
+
/** executable used to install dependencies (npm, yarn, pnpm, ...) */
|
|
146
|
+
npmClient?: 'npm' | 'pnpm' | 'yarn';
|
|
147
|
+
/** enables integration with Yarn or other package manager that use `workspaces` property in `package.json` */
|
|
148
|
+
useWorkspaces?: boolean;
|
|
149
|
+
version: string;
|
|
150
|
+
}
|
|
151
|
+
export interface ProjectConfig extends LernaConfig, QueryGraphConfig {
|
|
152
|
+
ci?: boolean;
|
|
153
|
+
concurrency: number | string;
|
|
154
|
+
cwd: string;
|
|
155
|
+
composed?: boolean;
|
|
156
|
+
lernaVersion: string;
|
|
157
|
+
progress?: boolean;
|
|
158
|
+
since?: string;
|
|
159
|
+
sort?: any;
|
|
160
|
+
stream?: boolean;
|
|
161
|
+
onRejected?: (result: any) => void;
|
|
162
|
+
onResolved?: (result: any) => void;
|
|
163
|
+
}
|
|
164
|
+
/** The subset of package.json properties that Lerna-Lite uses */
|
|
165
|
+
export interface RawManifest extends Package {
|
|
166
|
+
publishConfig?: Record<'directory' | 'registry' | 'tag', string>;
|
|
167
|
+
}
|
|
168
|
+
export interface ReleaseClient {
|
|
169
|
+
repos: {
|
|
170
|
+
createRelease: GitCreateReleaseFn;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
export interface ReleaseCommandProps {
|
|
174
|
+
tags: string[];
|
|
175
|
+
releaseNotes: ReleaseNote[];
|
|
176
|
+
}
|
|
177
|
+
export interface ReleaseOptions {
|
|
178
|
+
gitRemote: string;
|
|
179
|
+
execOpts: ExecOpts;
|
|
180
|
+
}
|
|
181
|
+
export interface ReleaseNote {
|
|
182
|
+
name: string;
|
|
183
|
+
notes?: string;
|
|
184
|
+
}
|
|
185
|
+
export interface UpdateCollectorOptions {
|
|
186
|
+
/** The semver bump keyword (patch/minor/major) or explicit version used */
|
|
187
|
+
bump?: string;
|
|
188
|
+
/** Whether or not to use a "nightly" range (`ref^..ref`) for commits */
|
|
189
|
+
canary?: boolean;
|
|
190
|
+
/** A list of globs that match files/directories whose changes should not be considered when identifying changed packages */
|
|
191
|
+
ignoreChanges?: string[];
|
|
192
|
+
/** Whether or not to include the --first-parent flag when calling `git describe` (awkwardly, pass `true` to _omit_ the flag, the default is to include it) */
|
|
193
|
+
includeMergedTags?: boolean;
|
|
194
|
+
/** Which packages, if any, to always include. Force all packages to be versioned with `true`, or pass a list of globs that match package names */
|
|
195
|
+
forcePublish?: boolean | string[];
|
|
196
|
+
/** Ref to use when querying git, defaults to most recent annotated tag */
|
|
197
|
+
since?: string;
|
|
198
|
+
conventionalCommits?: boolean;
|
|
199
|
+
conventionalGraduate?: boolean;
|
|
200
|
+
excludeDependents?: boolean;
|
|
201
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/models/interfaces.ts"],"names":[],"mappings":""}
|
package/dist/otplease.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { OneTimePasswordCache } from './models';
|
|
2
|
-
/**
|
|
3
|
-
* Attempt to execute Promise callback, prompting for OTP if necessary.
|
|
4
|
-
* @template {Record<string, unknown>} T
|
|
5
|
-
* @param {(opts: T) => Promise<unknown>} fn
|
|
6
|
-
* @param {T} _opts The options to be passed to `fn`
|
|
7
|
-
* @param {OneTimePasswordCache} otpCache
|
|
8
|
-
*/
|
|
9
|
-
export declare function otplease<T extends Record<string, unknown>>(fn: (opts: T) => Promise<unknown>, _opts: T, otpCache: OneTimePasswordCache): Promise<unknown>;
|
|
10
|
-
/**
|
|
11
|
-
* Prompt user for one-time password.
|
|
12
|
-
* @returns {Promise<string>}
|
|
13
|
-
*/
|
|
14
|
-
export declare function getOneTimePassword(message?: string): Promise<string>;
|
|
1
|
+
import { OneTimePasswordCache } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Attempt to execute Promise callback, prompting for OTP if necessary.
|
|
4
|
+
* @template {Record<string, unknown>} T
|
|
5
|
+
* @param {(opts: T) => Promise<unknown>} fn
|
|
6
|
+
* @param {T} _opts The options to be passed to `fn`
|
|
7
|
+
* @param {OneTimePasswordCache} otpCache
|
|
8
|
+
*/
|
|
9
|
+
export declare function otplease<T extends Record<string, unknown>>(fn: (opts: T) => Promise<unknown>, _opts: T, otpCache: OneTimePasswordCache): Promise<unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* Prompt user for one-time password.
|
|
12
|
+
* @returns {Promise<string>}
|
|
13
|
+
*/
|
|
14
|
+
export declare function getOneTimePassword(message?: string): Promise<string>;
|