@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
package/dist/package.d.ts
CHANGED
|
@@ -1,85 +1,91 @@
|
|
|
1
|
-
import { CommandType, NpaResolveResult, RawManifest } from './models';
|
|
2
|
-
/**
|
|
3
|
-
* Lerna's internal representation of a local package, with
|
|
4
|
-
* many values resolved directly from the original JSON.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Package {
|
|
7
|
-
_id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
licensePath: string;
|
|
10
|
-
localDependencies: Map<string, any>;
|
|
11
|
-
/**
|
|
12
|
-
* Create a Package instance from parameters, possibly reusing existing instance.
|
|
13
|
-
* @param {string|Package|RawManifest} ref A path to a package.json file, Package instance, or JSON object
|
|
14
|
-
* @param {string} [dir] If `ref` is a JSON object, this is the location of the manifest
|
|
15
|
-
* @returns {Package}
|
|
16
|
-
*/
|
|
17
|
-
static lazy(ref: string | Package | RawManifest, dir?: string): Package;
|
|
18
|
-
/**
|
|
19
|
-
* @param {RawManifest} pkg
|
|
20
|
-
* @param {string} location
|
|
21
|
-
* @param {string} [rootPath]
|
|
22
|
-
*/
|
|
23
|
-
constructor(pkg: RawManifest, location: string, rootPath?: string);
|
|
24
|
-
get location(): string;
|
|
25
|
-
get private(): boolean;
|
|
26
|
-
get resolved(): {
|
|
27
|
-
name: string;
|
|
28
|
-
bin: any;
|
|
29
|
-
scope: any;
|
|
30
|
-
};
|
|
31
|
-
get rootPath(): string;
|
|
32
|
-
get scripts(): any;
|
|
33
|
-
get bin(): any;
|
|
34
|
-
get binLocation(): string;
|
|
35
|
-
get manifestLocation(): string;
|
|
36
|
-
get nodeModulesLocation(): string;
|
|
37
|
-
get __isLernaPackage(): boolean;
|
|
38
|
-
get version(): string;
|
|
39
|
-
set version(version: string);
|
|
40
|
-
get
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
get
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
* @
|
|
57
|
-
* @
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
* @
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*
|
|
79
|
-
* @
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
import { CommandType, NpaResolveResult, RawManifest } from './models';
|
|
2
|
+
/**
|
|
3
|
+
* Lerna's internal representation of a local package, with
|
|
4
|
+
* many values resolved directly from the original JSON.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Package {
|
|
7
|
+
_id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
licensePath: string;
|
|
10
|
+
localDependencies: Map<string, any>;
|
|
11
|
+
/**
|
|
12
|
+
* Create a Package instance from parameters, possibly reusing existing instance.
|
|
13
|
+
* @param {string|Package|RawManifest} ref A path to a package.json file, Package instance, or JSON object
|
|
14
|
+
* @param {string} [dir] If `ref` is a JSON object, this is the location of the manifest
|
|
15
|
+
* @returns {Package}
|
|
16
|
+
*/
|
|
17
|
+
static lazy(ref: string | Package | RawManifest, dir?: string): Package;
|
|
18
|
+
/**
|
|
19
|
+
* @param {RawManifest} pkg
|
|
20
|
+
* @param {string} location
|
|
21
|
+
* @param {string} [rootPath]
|
|
22
|
+
*/
|
|
23
|
+
constructor(pkg: RawManifest, location: string, rootPath?: string);
|
|
24
|
+
get location(): string;
|
|
25
|
+
get private(): boolean;
|
|
26
|
+
get resolved(): {
|
|
27
|
+
name: string;
|
|
28
|
+
bin: any;
|
|
29
|
+
scope: any;
|
|
30
|
+
};
|
|
31
|
+
get rootPath(): string;
|
|
32
|
+
get scripts(): any;
|
|
33
|
+
get bin(): any;
|
|
34
|
+
get binLocation(): string;
|
|
35
|
+
get manifestLocation(): string;
|
|
36
|
+
get nodeModulesLocation(): string;
|
|
37
|
+
get __isLernaPackage(): boolean;
|
|
38
|
+
get version(): string;
|
|
39
|
+
set version(version: string);
|
|
40
|
+
get workspaces(): string[] | {
|
|
41
|
+
packages: string[];
|
|
42
|
+
};
|
|
43
|
+
set workspaces(workspaces: string[] | {
|
|
44
|
+
packages: string[];
|
|
45
|
+
});
|
|
46
|
+
get contents(): string;
|
|
47
|
+
set contents(subDirectory: string);
|
|
48
|
+
get dependencies(): string[];
|
|
49
|
+
get devDependencies(): string[];
|
|
50
|
+
get optionalDependencies(): string[];
|
|
51
|
+
get peerDependencies(): string[];
|
|
52
|
+
get pkg(): Package;
|
|
53
|
+
/**
|
|
54
|
+
* Map-like retrieval of arbitrary values
|
|
55
|
+
* @template {keyof RawManifest} K
|
|
56
|
+
* @param {K} key field name to retrieve value
|
|
57
|
+
* @returns {RawManifest[K]} value stored under key, if present
|
|
58
|
+
*/
|
|
59
|
+
get<K extends keyof RawManifest>(key: string): K;
|
|
60
|
+
/**
|
|
61
|
+
* Map-like storage of arbitrary values
|
|
62
|
+
* @template {keyof RawManifest} K
|
|
63
|
+
* @param {T} key field name to store value
|
|
64
|
+
* @param {RawManifest[K]} val value to store
|
|
65
|
+
* @returns {Package} instance for chaining
|
|
66
|
+
*/
|
|
67
|
+
set(key: string, val: RawManifest[keyof RawManifest]): Package;
|
|
68
|
+
/**
|
|
69
|
+
* Provide shallow copy for munging elsewhere
|
|
70
|
+
* @returns {Object}
|
|
71
|
+
*/
|
|
72
|
+
toJSON(): {};
|
|
73
|
+
/**
|
|
74
|
+
* Refresh internal state from disk (e.g., changed by external lifecycles)
|
|
75
|
+
*/
|
|
76
|
+
refresh(): Promise<this>;
|
|
77
|
+
/**
|
|
78
|
+
* Write manifest changes to disk
|
|
79
|
+
* @returns {Promise} resolves when write finished
|
|
80
|
+
*/
|
|
81
|
+
serialize(): Promise<this>;
|
|
82
|
+
/**
|
|
83
|
+
* Mutate local dependency spec according to type
|
|
84
|
+
* @param {Object} resolved npa metadata
|
|
85
|
+
* @param {String} depVersion semver
|
|
86
|
+
* @param {String} savePrefix npm_config_save_prefix
|
|
87
|
+
* @param {Boolean} workspaceStrictMatch - are we using strict match with `workspace:` protocol
|
|
88
|
+
* @param {String} updatedByCommand - which command called this update?
|
|
89
|
+
*/
|
|
90
|
+
updateLocalDependency(resolved: NpaResolveResult, depVersion: string, savePrefix: string, workspaceStrictMatch?: boolean, updatedByCommand?: CommandType): void;
|
|
91
|
+
}
|