@lerna-lite/core 1.15.1 → 1.16.1
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/dist/child-process.d.ts +62 -62
- package/dist/child-process.js +164 -166
- package/dist/child-process.js.map +1 -1
- package/dist/command.d.ts +37 -37
- package/dist/command.js +269 -271
- package/dist/command.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +15 -28
- package/dist/index.js.map +1 -1
- package/dist/models/command-options.d.ts +345 -341
- package/dist/models/command-options.js +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +5 -18
- package/dist/models/index.js.map +1 -1
- package/dist/models/interfaces.d.ts +175 -173
- package/dist/models/interfaces.js +2 -2
- package/dist/package-graph/index.d.ts +2 -2
- package/dist/package-graph/index.js +5 -18
- package/dist/package-graph/index.js.map +1 -1
- 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 +6 -19
- package/dist/package-graph/lib/index.js.map +1 -1
- package/dist/package-graph/lib/package-graph-node.d.ts +33 -33
- package/dist/package-graph/lib/package-graph-node.js +56 -58
- package/dist/package-graph/lib/package-graph-node.js.map +1 -1
- package/dist/package-graph/lib/report-cycles.d.ts +1 -1
- package/dist/package-graph/lib/report-cycles.js +17 -19
- package/dist/package-graph/lib/report-cycles.js.map +1 -1
- package/dist/package-graph/package-graph.d.ts +79 -79
- package/dist/package-graph/package-graph.js +269 -271
- package/dist/package-graph/package-graph.js.map +1 -1
- package/dist/package.d.ts +113 -113
- package/dist/package.js +352 -354
- package/dist/package.js.map +1 -1
- package/dist/project/index.d.ts +2 -2
- package/dist/project/index.js +5 -18
- package/dist/project/index.js.map +1 -1
- package/dist/project/lib/apply-extends.d.ts +10 -10
- package/dist/project/lib/apply-extends.js +36 -38
- package/dist/project/lib/apply-extends.js.map +1 -1
- package/dist/project/lib/index.d.ts +3 -3
- package/dist/project/lib/index.js +6 -19
- package/dist/project/lib/index.js.map +1 -1
- package/dist/project/lib/make-file-finder.d.ts +3 -3
- package/dist/project/lib/make-file-finder.js +69 -71
- package/dist/project/lib/make-file-finder.js.map +1 -1
- 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 +46 -46
- package/dist/project/project.js +195 -197
- package/dist/project/project.js.map +1 -1
- package/dist/prompt.d.ts +23 -23
- package/dist/prompt.js +73 -75
- package/dist/prompt.js.map +1 -1
- package/dist/utils/check-working-tree.d.ts +9 -9
- 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 +17 -17
- package/dist/utils/collect-uncommitted.js +37 -39
- package/dist/utils/collect-uncommitted.js.map +1 -1
- package/dist/utils/collect-updates/__helpers__/build-graph.d.ts +3 -3
- package/dist/utils/collect-updates/__helpers__/build-graph.js +74 -74
- package/dist/utils/collect-updates/collect-updates.d.ts +11 -11
- package/dist/utils/collect-updates/collect-updates.js +89 -89
- package/dist/utils/collect-updates/collect-updates.js.map +1 -1
- package/dist/utils/collect-updates/index.d.ts +2 -2
- package/dist/utils/collect-updates/index.js +5 -18
- package/dist/utils/collect-updates/index.js.map +1 -1
- 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 +7 -7
- package/dist/utils/collect-updates/lib/has-tags.js +30 -32
- package/dist/utils/collect-updates/lib/has-tags.js.map +1 -1
- package/dist/utils/collect-updates/lib/index.d.ts +5 -5
- package/dist/utils/collect-updates/lib/index.js +8 -21
- package/dist/utils/collect-updates/lib/index.js.map +1 -1
- package/dist/utils/collect-updates/lib/make-diff-predicate.d.ts +9 -7
- package/dist/utils/collect-updates/lib/make-diff-predicate.js +74 -63
- package/dist/utils/collect-updates/lib/make-diff-predicate.js.map +1 -1
- package/dist/utils/conf.d.ts +25 -25
- package/dist/utils/conf.js +253 -255
- package/dist/utils/conf.js.map +1 -1
- package/dist/utils/defaults.d.ts +1 -1
- package/dist/utils/defaults.js +180 -182
- package/dist/utils/defaults.js.map +1 -1
- package/dist/utils/describe-ref.d.ts +13 -13
- package/dist/utils/describe-ref.js +86 -88
- package/dist/utils/describe-ref.js.map +1 -1
- 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 +46 -48
- package/dist/utils/find-prefix.js.map +1 -1
- package/dist/utils/index.d.ts +22 -22
- package/dist/utils/index.js +26 -39
- 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 +33 -35
- package/dist/utils/log-package-error.js.map +1 -1
- package/dist/utils/nerf-dart.d.ts +1 -1
- package/dist/utils/nerf-dart.js +16 -18
- package/dist/utils/nerf-dart.js.map +1 -1
- package/dist/utils/npm-conf.d.ts +4 -4
- package/dist/utils/npm-conf.js +53 -78
- package/dist/utils/npm-conf.js.map +1 -1
- package/dist/utils/object-utils.d.ts +21 -21
- package/dist/utils/object-utils.js +51 -53
- package/dist/utils/object-utils.js.map +1 -1
- package/dist/utils/output.d.ts +1 -1
- package/dist/utils/output.js +11 -13
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/parse-field.d.ts +1 -1
- package/dist/utils/parse-field.js +63 -65
- package/dist/utils/parse-field.js.map +1 -1
- package/dist/utils/prerelease-id-from-version.d.ts +5 -5
- package/dist/utils/prerelease-id-from-version.js +13 -15
- package/dist/utils/prerelease-id-from-version.js.map +1 -1
- package/dist/utils/pulse-till-done.d.ts +1 -1
- package/dist/utils/pulse-till-done.js +38 -40
- package/dist/utils/pulse-till-done.js.map +1 -1
- package/dist/utils/query-graph.d.ts +36 -36
- package/dist/utils/query-graph.js +77 -77
- package/dist/utils/run-lifecycle.d.ts +10 -10
- package/dist/utils/run-lifecycle.js +138 -140
- package/dist/utils/run-lifecycle.js.map +1 -1
- package/dist/utils/run-topologically.d.ts +12 -12
- package/dist/utils/run-topologically.js +34 -36
- package/dist/utils/run-topologically.js.map +1 -1
- package/dist/utils/string-utils.d.ts +2 -2
- package/dist/utils/string-utils.js +9 -9
- package/dist/utils/types.d.ts +128 -131
- package/dist/utils/types.js +136 -138
- package/dist/utils/types.js.map +1 -1
- package/dist/utils/warn-if-hanging.d.ts +1 -1
- package/dist/utils/warn-if-hanging.js +15 -17
- package/dist/utils/warn-if-hanging.js.map +1 -1
- package/dist/utils/write-log-file.d.ts +1 -1
- package/dist/utils/write-log-file.js +30 -32
- package/dist/utils/write-log-file.js.map +1 -1
- package/dist/validation-error.d.ts +4 -4
- package/dist/validation-error.js +16 -18
- package/dist/validation-error.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,341 +1,345 @@
|
|
|
1
|
-
import { RemoteClientType } from './interfaces';
|
|
2
|
-
export interface ChangedCommandOption {
|
|
3
|
-
/** use conventional-changelog to determine version bump and generate CHANGELOG. */
|
|
4
|
-
conventionalCommits?: boolean;
|
|
5
|
-
/** detect currently prereleased packages that would change to a non-prerelease version. */
|
|
6
|
-
conventionalGraduate: boolean | string | string[];
|
|
7
|
-
/** always include targeted packages when detecting changed packages, skipping default logic. */
|
|
8
|
-
forcePublish?: boolean | string | string[];
|
|
9
|
-
/** ignore changes in files matched by glob(s) when detecting changed packages. Pass `--no-ignore-changes` to completely disable. */
|
|
10
|
-
ignoreChanges: string[];
|
|
11
|
-
/** include tags from merged branches when detecting changed packages. */
|
|
12
|
-
includeMergedTags?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface DiffCommandOption {
|
|
15
|
-
/** ignore changes in files matched by glob(s) when detecting changed packages. Pass `--no-ignore-changes` to completely disable. */
|
|
16
|
-
ignoreChanges: string[];
|
|
17
|
-
/** package name */
|
|
18
|
-
pkgName: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ExecCommandOption {
|
|
21
|
-
/** command to execute by the command */
|
|
22
|
-
cmd?: string;
|
|
23
|
-
/** exec command arguments */
|
|
24
|
-
args?: string[];
|
|
25
|
-
/** @deprecated option was renamed to `--dry-run`, @see dryRun */
|
|
26
|
-
cmdDryRun?: boolean;
|
|
27
|
-
/** Displays the execution command that would be performed without executing it. */
|
|
28
|
-
dryRun?: boolean;
|
|
29
|
-
/** Stream output with lines prefixed by originating package name. */
|
|
30
|
-
stream?: boolean;
|
|
31
|
-
/** Execute command with unlimited concurrency, streaming prefixed output. */
|
|
32
|
-
parallel?: boolean;
|
|
33
|
-
/** Continue executing command despite non-zero exit in a given package. */
|
|
34
|
-
noBail?: boolean;
|
|
35
|
-
/** proxy for `--no-bail` */
|
|
36
|
-
bail?: boolean;
|
|
37
|
-
/** Do not prefix streaming output. */
|
|
38
|
-
noPrefix?: boolean;
|
|
39
|
-
/** proxy for `--no-prefix` */
|
|
40
|
-
prefix?: boolean;
|
|
41
|
-
/** Profile command executions and output performance profile to default location. */
|
|
42
|
-
profile?: boolean;
|
|
43
|
-
/** Output performance profile to custom location instead of default project root. */
|
|
44
|
-
profileLocation?: string;
|
|
45
|
-
}
|
|
46
|
-
export interface InitCommandOption {
|
|
47
|
-
/** specify lerna dependency version in package.json without a caret (^) */
|
|
48
|
-
exact?: boolean;
|
|
49
|
-
/** version packages independently */
|
|
50
|
-
independent?: boolean;
|
|
51
|
-
/** enables integration with Yarn or other package manager that use `workspaces` property in `package.json` */
|
|
52
|
-
useWorkspaces?: boolean;
|
|
53
|
-
}
|
|
54
|
-
export interface ListCommandOption {
|
|
55
|
-
/** Show private packages that are hidden by default. */
|
|
56
|
-
all?: boolean;
|
|
57
|
-
/** Show dependency graph as a JSON-formatted [adjacency list](https://en.wikipedia.org/wiki/Adjacency_list). */
|
|
58
|
-
graph?: boolean;
|
|
59
|
-
/** Show information as a JSON array. */
|
|
60
|
-
json?: boolean;
|
|
61
|
-
/** Show extended information. */
|
|
62
|
-
long?: boolean;
|
|
63
|
-
/** Show information as [newline-delimited JSON](http://ndjson.org/). */
|
|
64
|
-
ndjson?: boolean;
|
|
65
|
-
/** Show parseable output instead of columnified view. */
|
|
66
|
-
parseable?: boolean;
|
|
67
|
-
/** Sort packages in topological order (dependencies before dependents) instead of lexical by directory. */
|
|
68
|
-
toposort?: boolean;
|
|
69
|
-
}
|
|
70
|
-
export interface PublishCommandOption extends VersionCommandOption {
|
|
71
|
-
/** alias to `--canary` */
|
|
72
|
-
c?: boolean;
|
|
73
|
-
/** Publish packages after every successful merge using the sha as part of the tag. */
|
|
74
|
-
canary?: boolean;
|
|
75
|
-
/** Cleanup packed temp files/folders after publish process is finished, defaults to false. */
|
|
76
|
-
cleanupTempFiles?: boolean;
|
|
77
|
-
/** Specify the prerelease identifier when publishing a prerelease */
|
|
78
|
-
preid?: string;
|
|
79
|
-
/** Subdirectory to publish. Must apply to ALL packages. */
|
|
80
|
-
contents?: string;
|
|
81
|
-
/** Publish packages with the specified npm dist-tag */
|
|
82
|
-
distTag?: string;
|
|
83
|
-
/** Legacy Base64 Encoded username and password. */
|
|
84
|
-
legacyAuth?: string;
|
|
85
|
-
/** Publish prerelease packages with the specified npm dist-tag */
|
|
86
|
-
preDistTag?: string;
|
|
87
|
-
/** Explicit SHA to set as gitHead when packing tarballs, only allowed with "from-package" positional. */
|
|
88
|
-
gitHead?: string;
|
|
89
|
-
/** Type of dependency to use when determining package hierarchy. */
|
|
90
|
-
graphType: 'all' | 'dependencies';
|
|
91
|
-
/** Disable deprecated "prepublish" lifecycle script */
|
|
92
|
-
ignorePrepublish?: boolean;
|
|
93
|
-
/** Disable all lifecycle scripts */
|
|
94
|
-
ignoreScripts?: boolean;
|
|
95
|
-
/** Do not reset changes file-by-file, but globally. */
|
|
96
|
-
noGranularPathspec?: boolean;
|
|
97
|
-
/** proxy for `--no-granular-pathspec` */
|
|
98
|
-
granularPathspec?: boolean;
|
|
99
|
-
/** Supply a one-time password for publishing with two-factor authentication. */
|
|
100
|
-
otp?: string;
|
|
101
|
-
/** apply publishConfig overrides. */
|
|
102
|
-
publishConfigOverrides?: boolean;
|
|
103
|
-
/** Use the specified registry for all npm client operations. */
|
|
104
|
-
registry?: string;
|
|
105
|
-
/** Remove fields from each package.json before publishing them to the registry, removing fields from a complex object is also supported via the dot notation (ie "scripts.build") */
|
|
106
|
-
removePackageFields?: string[];
|
|
107
|
-
/** @deprecated Execute ./scripts/prepublish.js and ./scripts/postpublish.js, relative to package root. */
|
|
108
|
-
requireScripts?: boolean;
|
|
109
|
-
/** Do not reset changes to working tree after publishing is complete. */
|
|
110
|
-
noGitReset?: boolean;
|
|
111
|
-
gitReset?: boolean;
|
|
112
|
-
/** Create a temporary tag while publishing. */
|
|
113
|
-
tempTag?: boolean;
|
|
114
|
-
/** Do not verify package read-write access for current npm user. */
|
|
115
|
-
noVerifyAccess?: boolean;
|
|
116
|
-
/** Generate a json summary report after all packages have been successfully published, you can pass an optional path for where to save the file. */
|
|
117
|
-
summaryFile?: boolean | string;
|
|
118
|
-
/** proxy for `--no-verify-access` */
|
|
119
|
-
verifyAccess?: boolean;
|
|
120
|
-
/** alias to `--yes` */
|
|
121
|
-
y?: boolean;
|
|
122
|
-
/** Skip all confirmation prompts. */
|
|
123
|
-
yes?: boolean;
|
|
124
|
-
}
|
|
125
|
-
export interface VersionCommandOption {
|
|
126
|
-
/** Specify which branches to allow versioning from. */
|
|
127
|
-
allowBranch?: string[];
|
|
128
|
-
/**
|
|
129
|
-
* allow updating peer dependencies versions.
|
|
130
|
-
* Note that `peerDependencies` with semver range (ie `>=2.0.0`) will never be bumped even with this flag enabled.
|
|
131
|
-
*/
|
|
132
|
-
allowPeerDependenciesUpdate?: boolean;
|
|
133
|
-
/** Amend the existing commit, instead of generating a new one. */
|
|
134
|
-
amend?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
|
|
141
|
-
/** Version
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
|
|
200
|
-
/** Do not
|
|
201
|
-
|
|
202
|
-
/** proxy for `--no-
|
|
203
|
-
|
|
204
|
-
/** Do not commit
|
|
205
|
-
|
|
206
|
-
/** proxy for `--no-
|
|
207
|
-
|
|
208
|
-
/** Do not
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
|
|
212
|
-
/** Do not
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
|
|
216
|
-
/** Do not
|
|
217
|
-
|
|
218
|
-
/** proxy for `--no-
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
|
|
228
|
-
/** Pass the `--sign` flag to `git
|
|
229
|
-
|
|
230
|
-
/** Pass the `--
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
|
|
236
|
-
/** Defaults to
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
|
|
333
|
-
/** Defaults to true,
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
|
|
337
|
-
/** Defaults to
|
|
338
|
-
|
|
339
|
-
/** Defaults to
|
|
340
|
-
|
|
341
|
-
|
|
1
|
+
import { RemoteClientType } from './interfaces';
|
|
2
|
+
export interface ChangedCommandOption {
|
|
3
|
+
/** use conventional-changelog to determine version bump and generate CHANGELOG. */
|
|
4
|
+
conventionalCommits?: boolean;
|
|
5
|
+
/** detect currently prereleased packages that would change to a non-prerelease version. */
|
|
6
|
+
conventionalGraduate: boolean | string | string[];
|
|
7
|
+
/** always include targeted packages when detecting changed packages, skipping default logic. */
|
|
8
|
+
forcePublish?: boolean | string | string[];
|
|
9
|
+
/** ignore changes in files matched by glob(s) when detecting changed packages. Pass `--no-ignore-changes` to completely disable. */
|
|
10
|
+
ignoreChanges: string[];
|
|
11
|
+
/** include tags from merged branches when detecting changed packages. */
|
|
12
|
+
includeMergedTags?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface DiffCommandOption {
|
|
15
|
+
/** ignore changes in files matched by glob(s) when detecting changed packages. Pass `--no-ignore-changes` to completely disable. */
|
|
16
|
+
ignoreChanges: string[];
|
|
17
|
+
/** package name */
|
|
18
|
+
pkgName: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ExecCommandOption {
|
|
21
|
+
/** command to execute by the command */
|
|
22
|
+
cmd?: string;
|
|
23
|
+
/** exec command arguments */
|
|
24
|
+
args?: string[];
|
|
25
|
+
/** @deprecated option was renamed to `--dry-run`, @see dryRun */
|
|
26
|
+
cmdDryRun?: boolean;
|
|
27
|
+
/** Displays the execution command that would be performed without executing it. */
|
|
28
|
+
dryRun?: boolean;
|
|
29
|
+
/** Stream output with lines prefixed by originating package name. */
|
|
30
|
+
stream?: boolean;
|
|
31
|
+
/** Execute command with unlimited concurrency, streaming prefixed output. */
|
|
32
|
+
parallel?: boolean;
|
|
33
|
+
/** Continue executing command despite non-zero exit in a given package. */
|
|
34
|
+
noBail?: boolean;
|
|
35
|
+
/** proxy for `--no-bail` */
|
|
36
|
+
bail?: boolean;
|
|
37
|
+
/** Do not prefix streaming output. */
|
|
38
|
+
noPrefix?: boolean;
|
|
39
|
+
/** proxy for `--no-prefix` */
|
|
40
|
+
prefix?: boolean;
|
|
41
|
+
/** Profile command executions and output performance profile to default location. */
|
|
42
|
+
profile?: boolean;
|
|
43
|
+
/** Output performance profile to custom location instead of default project root. */
|
|
44
|
+
profileLocation?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface InitCommandOption {
|
|
47
|
+
/** specify lerna dependency version in package.json without a caret (^) */
|
|
48
|
+
exact?: boolean;
|
|
49
|
+
/** version packages independently */
|
|
50
|
+
independent?: boolean;
|
|
51
|
+
/** enables integration with Yarn or other package manager that use `workspaces` property in `package.json` */
|
|
52
|
+
useWorkspaces?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface ListCommandOption {
|
|
55
|
+
/** Show private packages that are hidden by default. */
|
|
56
|
+
all?: boolean;
|
|
57
|
+
/** Show dependency graph as a JSON-formatted [adjacency list](https://en.wikipedia.org/wiki/Adjacency_list). */
|
|
58
|
+
graph?: boolean;
|
|
59
|
+
/** Show information as a JSON array. */
|
|
60
|
+
json?: boolean;
|
|
61
|
+
/** Show extended information. */
|
|
62
|
+
long?: boolean;
|
|
63
|
+
/** Show information as [newline-delimited JSON](http://ndjson.org/). */
|
|
64
|
+
ndjson?: boolean;
|
|
65
|
+
/** Show parseable output instead of columnified view. */
|
|
66
|
+
parseable?: boolean;
|
|
67
|
+
/** Sort packages in topological order (dependencies before dependents) instead of lexical by directory. */
|
|
68
|
+
toposort?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface PublishCommandOption extends VersionCommandOption {
|
|
71
|
+
/** alias to `--canary` */
|
|
72
|
+
c?: boolean;
|
|
73
|
+
/** Publish packages after every successful merge using the sha as part of the tag. */
|
|
74
|
+
canary?: boolean;
|
|
75
|
+
/** Cleanup packed temp files/folders after publish process is finished, defaults to false. */
|
|
76
|
+
cleanupTempFiles?: boolean;
|
|
77
|
+
/** Specify the prerelease identifier when publishing a prerelease */
|
|
78
|
+
preid?: string;
|
|
79
|
+
/** Subdirectory to publish. Must apply to ALL packages. */
|
|
80
|
+
contents?: string;
|
|
81
|
+
/** Publish packages with the specified npm dist-tag */
|
|
82
|
+
distTag?: string;
|
|
83
|
+
/** Legacy Base64 Encoded username and password. */
|
|
84
|
+
legacyAuth?: string;
|
|
85
|
+
/** Publish prerelease packages with the specified npm dist-tag */
|
|
86
|
+
preDistTag?: string;
|
|
87
|
+
/** Explicit SHA to set as gitHead when packing tarballs, only allowed with "from-package" positional. */
|
|
88
|
+
gitHead?: string;
|
|
89
|
+
/** Type of dependency to use when determining package hierarchy. */
|
|
90
|
+
graphType: 'all' | 'dependencies';
|
|
91
|
+
/** Disable deprecated "prepublish" lifecycle script */
|
|
92
|
+
ignorePrepublish?: boolean;
|
|
93
|
+
/** Disable all lifecycle scripts */
|
|
94
|
+
ignoreScripts?: boolean;
|
|
95
|
+
/** Do not reset changes file-by-file, but globally. */
|
|
96
|
+
noGranularPathspec?: boolean;
|
|
97
|
+
/** proxy for `--no-granular-pathspec` */
|
|
98
|
+
granularPathspec?: boolean;
|
|
99
|
+
/** Supply a one-time password for publishing with two-factor authentication. */
|
|
100
|
+
otp?: string;
|
|
101
|
+
/** apply publishConfig overrides. */
|
|
102
|
+
publishConfigOverrides?: boolean;
|
|
103
|
+
/** Use the specified registry for all npm client operations. */
|
|
104
|
+
registry?: string;
|
|
105
|
+
/** Remove fields from each package.json before publishing them to the registry, removing fields from a complex object is also supported via the dot notation (ie "scripts.build") */
|
|
106
|
+
removePackageFields?: string[];
|
|
107
|
+
/** @deprecated Execute ./scripts/prepublish.js and ./scripts/postpublish.js, relative to package root. */
|
|
108
|
+
requireScripts?: boolean;
|
|
109
|
+
/** Do not reset changes to working tree after publishing is complete. */
|
|
110
|
+
noGitReset?: boolean;
|
|
111
|
+
gitReset?: boolean;
|
|
112
|
+
/** Create a temporary tag while publishing. */
|
|
113
|
+
tempTag?: boolean;
|
|
114
|
+
/** Do not verify package read-write access for current npm user. */
|
|
115
|
+
noVerifyAccess?: boolean;
|
|
116
|
+
/** Generate a json summary report after all packages have been successfully published, you can pass an optional path for where to save the file. */
|
|
117
|
+
summaryFile?: boolean | string;
|
|
118
|
+
/** proxy for `--no-verify-access` */
|
|
119
|
+
verifyAccess?: boolean;
|
|
120
|
+
/** alias to `--yes` */
|
|
121
|
+
y?: boolean;
|
|
122
|
+
/** Skip all confirmation prompts. */
|
|
123
|
+
yes?: boolean;
|
|
124
|
+
}
|
|
125
|
+
export interface VersionCommandOption {
|
|
126
|
+
/** Specify which branches to allow versioning from. */
|
|
127
|
+
allowBranch?: string[];
|
|
128
|
+
/**
|
|
129
|
+
* allow updating peer dependencies versions.
|
|
130
|
+
* Note that `peerDependencies` with semver range (ie `>=2.0.0`) will never be bumped even with this flag enabled.
|
|
131
|
+
*/
|
|
132
|
+
allowPeerDependenciesUpdate?: boolean;
|
|
133
|
+
/** Amend the existing commit, instead of generating a new one. */
|
|
134
|
+
amend?: boolean;
|
|
135
|
+
/** Apply build metadata to the release, compatible with SemVer. */
|
|
136
|
+
buildMetadata?: string;
|
|
137
|
+
/** conventional commit version bump type */
|
|
138
|
+
bump: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease' | 'from-git' | 'from-package';
|
|
139
|
+
/** Use conventional-changelog to determine version bump and generate CHANGELOG. */
|
|
140
|
+
conventionalCommits?: boolean;
|
|
141
|
+
/** Version currently prereleased packages to a non-prerelease version. */
|
|
142
|
+
conventionalGraduate?: boolean | string;
|
|
143
|
+
/** Version changed packages as prereleases when using `--conventional-commits`. */
|
|
144
|
+
conventionalPrerelease?: boolean | string;
|
|
145
|
+
/** Bumps prerelease versions if conventional commits requires it. This option is only available when using `--conventional-commits`. */
|
|
146
|
+
conventionalBumpPrerelease?: boolean;
|
|
147
|
+
/** Add a custom message at the top of all "changelog.md" files. This option is only available when using `--conventional-commits` with changelogs. */
|
|
148
|
+
changelogHeaderMessage?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Specify if we want to include the commit author's name, this option is only available when using `--conventional-commits` with changelogs.
|
|
151
|
+
* We can also optionally provide a custom message or else a default format will be used.
|
|
152
|
+
*/
|
|
153
|
+
changelogIncludeCommitsGitAuthor?: boolean | string;
|
|
154
|
+
/** @deprecated option renamed to `changelogIncludeCommitsGitAuthor` */
|
|
155
|
+
changelogIncludeCommitAuthorFullname?: boolean | string;
|
|
156
|
+
/**
|
|
157
|
+
* Specify if we want to include the commit remote client login name (ie GitHub username), this option is only available when using `--conventional-commits` with changelogs.
|
|
158
|
+
* We can also optionally provide a custom message or else a default format will be used.
|
|
159
|
+
*/
|
|
160
|
+
changelogIncludeCommitsClientLogin?: boolean | string;
|
|
161
|
+
/**
|
|
162
|
+
* Add a custom message as a prefix to each new version in your "changelog.md" which is located in the root of your project.
|
|
163
|
+
* This option is only available when using `--conventional-commits` with changelogs.
|
|
164
|
+
*/
|
|
165
|
+
changelogVersionMessage?: string;
|
|
166
|
+
/** Defaults 'angular', custom conventional-changelog preset. */
|
|
167
|
+
changelogPreset?: string;
|
|
168
|
+
/** Create an official GitHub or GitLab release for every version. */
|
|
169
|
+
createRelease?: RemoteClientType;
|
|
170
|
+
/** Specify cross-dependency version numbers exactly rather than with a caret (^). */
|
|
171
|
+
exact?: boolean;
|
|
172
|
+
/** optionally exclude sub-packages when versioning */
|
|
173
|
+
independentSubpackages?: boolean;
|
|
174
|
+
/** Always include targeted packages in versioning operations, skipping default logic. */
|
|
175
|
+
forcePublish?: boolean | string;
|
|
176
|
+
/** Displays the process command that would be performed without executing it. */
|
|
177
|
+
dryRun?: boolean;
|
|
178
|
+
/** @deprecated option was renamed to `--dry-run`, @see dryRun */
|
|
179
|
+
gitDryRun?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Allows users to specify a custom command to be used when applying git tags.
|
|
182
|
+
* For example, this may be useful for providing a wrapper command in CI/CD pipelines that have no direct write access.
|
|
183
|
+
*/
|
|
184
|
+
gitTagCommand?: string;
|
|
185
|
+
/** Defaults to 'origin', push git changes to the specified remote. */
|
|
186
|
+
gitRemote: string;
|
|
187
|
+
/**
|
|
188
|
+
* Ignore changes in files matched by glob(s) when detecting changed packages.
|
|
189
|
+
* Pass `--no-ignore-changes` to completely disable.
|
|
190
|
+
*/
|
|
191
|
+
ignoreChanges?: string[];
|
|
192
|
+
/** Disable all lifecycle scripts. */
|
|
193
|
+
ignoreScripts?: boolean;
|
|
194
|
+
/** Include tags from merged branches when detecting changed packages. */
|
|
195
|
+
includeMergedTags?: boolean;
|
|
196
|
+
/** alias to `--message`. */
|
|
197
|
+
m?: string;
|
|
198
|
+
/** Use a custom commit message when creating the version commit. */
|
|
199
|
+
message?: string;
|
|
200
|
+
/** Do not generate CHANGELOG.md files when using `--conventional-commits`. */
|
|
201
|
+
noChangelog?: boolean;
|
|
202
|
+
/** proxy for `--no-changelog`. */
|
|
203
|
+
changelog?: boolean;
|
|
204
|
+
/** Do not run git commit hooks when committing version changes. */
|
|
205
|
+
noCommitHooks?: boolean;
|
|
206
|
+
/** proxy for `--no-commit-hooks`. */
|
|
207
|
+
commitHooks?: boolean;
|
|
208
|
+
/** Do not commit or tag version changes. */
|
|
209
|
+
noGitTagVersion?: boolean;
|
|
210
|
+
/** proxy for `--no-git-tag-version`. */
|
|
211
|
+
gitTagVersion?: boolean;
|
|
212
|
+
/** Do not stage changes file-by-file, but globally. */
|
|
213
|
+
noGranularPathspec?: boolean;
|
|
214
|
+
/** Stage changes file-by-file, not globally. Proxy for `--no-granular-pathspec`. */
|
|
215
|
+
granularPathspec?: boolean;
|
|
216
|
+
/** Do not version private packages. */
|
|
217
|
+
noPrivate?: boolean;
|
|
218
|
+
/** proxy for `--no-private`. */
|
|
219
|
+
private?: boolean;
|
|
220
|
+
/** Do not push tagged commit to git remote. */
|
|
221
|
+
noPush?: boolean;
|
|
222
|
+
/** proxy for `--no-push`. */
|
|
223
|
+
push?: boolean;
|
|
224
|
+
/** Defaults to 'alpha', specify the prerelease identifier when versioning a prerelease. */
|
|
225
|
+
preid?: string;
|
|
226
|
+
/** Remote git client, which client is used when reading commits from remote which is useful when associating client login for each changelog entry. */
|
|
227
|
+
remoteClient?: RemoteClientType;
|
|
228
|
+
/** Pass the `--gpg-sign` flag to `git commit`. */
|
|
229
|
+
signGitCommit?: boolean;
|
|
230
|
+
/** Pass the `--signoff` flag to `git commit`. */
|
|
231
|
+
signoffGitCommit?: boolean;
|
|
232
|
+
/** Pass the `--sign` flag to `git tag`. */
|
|
233
|
+
signGitTag?: boolean;
|
|
234
|
+
/** Pass the `--force` flag to `git tag`. */
|
|
235
|
+
forceGitTag?: boolean;
|
|
236
|
+
/** Defaults to 'v', customize the tag prefix. To remove entirely, pass an empty string. */
|
|
237
|
+
tagVersionPrefix?: string;
|
|
238
|
+
/** Do not manually update (read/write back to the lock file) the project root lock file. */
|
|
239
|
+
noManuallyUpdateRootLockfile?: boolean;
|
|
240
|
+
/** Defaults to true when found, update the project root lock file, the lib will internally read/write back to the lock file. */
|
|
241
|
+
manuallyUpdateRootLockfile?: boolean;
|
|
242
|
+
/** Additional arguments to pass to the npm client when performing 'npm install'. */
|
|
243
|
+
npmClientArgs?: string[];
|
|
244
|
+
/** Runs `npm install --package-lock-only` or equivalent depending on the package manager defined in `npmClient`. */
|
|
245
|
+
syncWorkspaceLock?: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* @deprecated 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:*`.
|
|
248
|
+
* Future version will make `workspace:` protocol as strict matching at all time, so this flag becomes redundant.
|
|
249
|
+
*/
|
|
250
|
+
workspaceStrictMatch?: boolean;
|
|
251
|
+
/** alias to `--yes` */
|
|
252
|
+
y?: boolean;
|
|
253
|
+
/** Skip all confirmation prompts. */
|
|
254
|
+
yes?: boolean;
|
|
255
|
+
}
|
|
256
|
+
export interface RunCommandOption {
|
|
257
|
+
/** @deprecated option was renamed to `--dry-run`, @see dryRun */
|
|
258
|
+
cmdDryRun?: boolean;
|
|
259
|
+
/** Displays the process command that would be performed without executing it. */
|
|
260
|
+
dryRun?: boolean;
|
|
261
|
+
/** Defaults to 'npm', executable used to run scripts (npm, yarn, pnpm, ...). */
|
|
262
|
+
npmClient?: string;
|
|
263
|
+
/** Stream output with lines prefixed by package. */
|
|
264
|
+
stream?: boolean;
|
|
265
|
+
/** Run script with unlimited concurrency, streaming prefixed output. */
|
|
266
|
+
parallel?: boolean;
|
|
267
|
+
/** Continue running script despite non-zero exit in a given package. */
|
|
268
|
+
noBail?: boolean;
|
|
269
|
+
/** proxy for `--no-bail`. */
|
|
270
|
+
bail?: boolean;
|
|
271
|
+
/** When useNx is enabled, do we want to automatically load .env files */
|
|
272
|
+
loadEnvFiles?: boolean;
|
|
273
|
+
/** Do not prefix streaming output. */
|
|
274
|
+
noPrefix?: boolean;
|
|
275
|
+
/** proxy for `--no-prefix`. */
|
|
276
|
+
prefix?: boolean;
|
|
277
|
+
/** Profile script executions and output performance profile to default location. */
|
|
278
|
+
profile?: boolean;
|
|
279
|
+
/** Output performance profile to custom location instead of default project root. */
|
|
280
|
+
profileLocation?: string;
|
|
281
|
+
/** npm script to run by the command. */
|
|
282
|
+
script: string;
|
|
283
|
+
/** when "useNx" is enabled, do we want to skip caching with Nx? */
|
|
284
|
+
skipNxCache?: boolean;
|
|
285
|
+
/** enables integration with [Nx](https://nx.dev) instead of the default Lerna task runner (which uses `p-map` and `p-queue`). */
|
|
286
|
+
useNx?: boolean;
|
|
287
|
+
}
|
|
288
|
+
/** Watch Command will run a script whenever package(s) or their dependents change. */
|
|
289
|
+
export interface WatchCommandOption {
|
|
290
|
+
/** watch command arguments */
|
|
291
|
+
args?: string[];
|
|
292
|
+
/** command to execute by the command */
|
|
293
|
+
cmd?: string;
|
|
294
|
+
/** Continue executing command despite non-zero exit in a given package. */
|
|
295
|
+
noBail?: boolean;
|
|
296
|
+
/** proxy for `--no-bail` */
|
|
297
|
+
bail?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Defaults to 200, time to wait in milliseconds before emitting all the file changes into a single event.
|
|
300
|
+
* This provide enough time for the system to collect all Chokidar events (1x per file changes)
|
|
301
|
+
* and merge them into a single Lerna watch change event to be emitted (Lerna will join all file paths into a CSV string separated by whitespace by default).
|
|
302
|
+
*/
|
|
303
|
+
debounce?: number;
|
|
304
|
+
/** Defaults to whitespace, the delimiter that will be used to separate files when mutiple file changes are emitted by the watch */
|
|
305
|
+
fileDelimiter?: string;
|
|
306
|
+
/** Glob pattern to define which file pattern to watch, note that this will be appended to the package file path being watched. */
|
|
307
|
+
glob?: string;
|
|
308
|
+
/** Do not prefix streaming output. */
|
|
309
|
+
noPrefix?: boolean;
|
|
310
|
+
/** proxy for `--no-prefix` */
|
|
311
|
+
prefix?: boolean;
|
|
312
|
+
/** Stream output with lines prefixed by originating package name. */
|
|
313
|
+
stream?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Defaults to false, by default the add event will fire when a file first appears on disk, before the entire file has been written.
|
|
316
|
+
* Setting `awaitWriteFinish` to true (or a truthy value) will poll file size,
|
|
317
|
+
* holding its add and change events until the size does not change for a configurable amount of time.
|
|
318
|
+
*/
|
|
319
|
+
awaitWriteFinish?: boolean;
|
|
320
|
+
/** Default to 100, file size polling interval, in milliseconds. */
|
|
321
|
+
awfPollInterval?: number;
|
|
322
|
+
/** Default to 2000, amount of time in milliseconds for a file size to remain constant before emitting its event. */
|
|
323
|
+
awfStabilityThreshold?: number;
|
|
324
|
+
/**
|
|
325
|
+
* Default to true, if `useFsEvents` and `usePolling` are `false`.
|
|
326
|
+
* Automatically filters out artifacts that occur when using editors that use "atomic writes" instead of writing directly to the source file
|
|
327
|
+
*/
|
|
328
|
+
atomic?: boolean;
|
|
329
|
+
/** Default to `undefined`, if set, limits how many levels of subdirectories will be traversed. */
|
|
330
|
+
depth?: number;
|
|
331
|
+
/** Defaults to false, if set to true then the strings passed to .watch() and .add() are treated as literal path names, even if they look like globs. */
|
|
332
|
+
disableGlobbing?: boolean;
|
|
333
|
+
/** Defaults to true, when false, only the symlinks themselves will be watched for changes instead of following the link references and bubbling events through the link's path. */
|
|
334
|
+
followSymlinks?: boolean;
|
|
335
|
+
/** Defines files/paths to be ignored, it can be a string or an array of string (anymatch-compatible definition) */
|
|
336
|
+
ignored?: string | string[];
|
|
337
|
+
/** Defaults to true, if set to false then add/addDir events are also emitted for matching paths while instantiating the watching as chokidar discovers these file paths (before the ready event). */
|
|
338
|
+
ignoreInitial?: boolean;
|
|
339
|
+
/** Defaults to true, indicates whether to watch files that don't have read permissions if possible. */
|
|
340
|
+
ignorePermissionErrors?: boolean;
|
|
341
|
+
/** Defaults to 100, interval of file system polling, in milliseconds. You may also set the CHOKIDAR_INTERVAL env variable to override this option. */
|
|
342
|
+
interval?: number;
|
|
343
|
+
/** Defaults to false, whether to use fs.watchFile (backed by polling), or fs.watch. If polling leads to high CPU utilization, consider setting this to false. */
|
|
344
|
+
usePolling?: boolean;
|
|
345
|
+
}
|