@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.
Files changed (152) hide show
  1. package/dist/child-process.d.ts +62 -62
  2. package/dist/child-process.js +164 -166
  3. package/dist/child-process.js.map +1 -1
  4. package/dist/command.d.ts +37 -37
  5. package/dist/command.js +269 -271
  6. package/dist/command.js.map +1 -1
  7. package/dist/constants.d.ts +1 -1
  8. package/dist/constants.js +4 -4
  9. package/dist/index.d.ts +10 -10
  10. package/dist/index.js +15 -28
  11. package/dist/index.js.map +1 -1
  12. package/dist/models/command-options.d.ts +345 -341
  13. package/dist/models/command-options.js +2 -2
  14. package/dist/models/index.d.ts +2 -2
  15. package/dist/models/index.js +5 -18
  16. package/dist/models/index.js.map +1 -1
  17. package/dist/models/interfaces.d.ts +175 -173
  18. package/dist/models/interfaces.js +2 -2
  19. package/dist/package-graph/index.d.ts +2 -2
  20. package/dist/package-graph/index.js +5 -18
  21. package/dist/package-graph/index.js.map +1 -1
  22. package/dist/package-graph/lib/cyclic-package-graph-node.d.ts +42 -42
  23. package/dist/package-graph/lib/cyclic-package-graph-node.js +97 -97
  24. package/dist/package-graph/lib/index.d.ts +3 -3
  25. package/dist/package-graph/lib/index.js +6 -19
  26. package/dist/package-graph/lib/index.js.map +1 -1
  27. package/dist/package-graph/lib/package-graph-node.d.ts +33 -33
  28. package/dist/package-graph/lib/package-graph-node.js +56 -58
  29. package/dist/package-graph/lib/package-graph-node.js.map +1 -1
  30. package/dist/package-graph/lib/report-cycles.d.ts +1 -1
  31. package/dist/package-graph/lib/report-cycles.js +17 -19
  32. package/dist/package-graph/lib/report-cycles.js.map +1 -1
  33. package/dist/package-graph/package-graph.d.ts +79 -79
  34. package/dist/package-graph/package-graph.js +269 -271
  35. package/dist/package-graph/package-graph.js.map +1 -1
  36. package/dist/package.d.ts +113 -113
  37. package/dist/package.js +352 -354
  38. package/dist/package.js.map +1 -1
  39. package/dist/project/index.d.ts +2 -2
  40. package/dist/project/index.js +5 -18
  41. package/dist/project/index.js.map +1 -1
  42. package/dist/project/lib/apply-extends.d.ts +10 -10
  43. package/dist/project/lib/apply-extends.js +36 -38
  44. package/dist/project/lib/apply-extends.js.map +1 -1
  45. package/dist/project/lib/index.d.ts +3 -3
  46. package/dist/project/lib/index.js +6 -19
  47. package/dist/project/lib/index.js.map +1 -1
  48. package/dist/project/lib/make-file-finder.d.ts +3 -3
  49. package/dist/project/lib/make-file-finder.js +69 -71
  50. package/dist/project/lib/make-file-finder.js.map +1 -1
  51. package/dist/project/lib/shallow-extend.d.ts +11 -11
  52. package/dist/project/lib/shallow-extend.js +24 -24
  53. package/dist/project/project.d.ts +46 -46
  54. package/dist/project/project.js +195 -197
  55. package/dist/project/project.js.map +1 -1
  56. package/dist/prompt.d.ts +23 -23
  57. package/dist/prompt.js +73 -75
  58. package/dist/prompt.js.map +1 -1
  59. package/dist/utils/check-working-tree.d.ts +9 -9
  60. package/dist/utils/check-working-tree.js +41 -41
  61. package/dist/utils/clean-stack.d.ts +5 -5
  62. package/dist/utils/clean-stack.js +18 -18
  63. package/dist/utils/collect-uncommitted.d.ts +17 -17
  64. package/dist/utils/collect-uncommitted.js +37 -39
  65. package/dist/utils/collect-uncommitted.js.map +1 -1
  66. package/dist/utils/collect-updates/__helpers__/build-graph.d.ts +3 -3
  67. package/dist/utils/collect-updates/__helpers__/build-graph.js +74 -74
  68. package/dist/utils/collect-updates/collect-updates.d.ts +11 -11
  69. package/dist/utils/collect-updates/collect-updates.js +89 -89
  70. package/dist/utils/collect-updates/collect-updates.js.map +1 -1
  71. package/dist/utils/collect-updates/index.d.ts +2 -2
  72. package/dist/utils/collect-updates/index.js +5 -18
  73. package/dist/utils/collect-updates/index.js.map +1 -1
  74. package/dist/utils/collect-updates/lib/collect-dependents.d.ts +11 -11
  75. package/dist/utils/collect-updates/lib/collect-dependents.js +45 -45
  76. package/dist/utils/collect-updates/lib/collect-packages.d.ts +13 -13
  77. package/dist/utils/collect-updates/lib/collect-packages.js +33 -33
  78. package/dist/utils/collect-updates/lib/get-packages-for-option.d.ts +5 -5
  79. package/dist/utils/collect-updates/lib/get-packages-for-option.js +30 -30
  80. package/dist/utils/collect-updates/lib/has-tags.d.ts +7 -7
  81. package/dist/utils/collect-updates/lib/has-tags.js +30 -32
  82. package/dist/utils/collect-updates/lib/has-tags.js.map +1 -1
  83. package/dist/utils/collect-updates/lib/index.d.ts +5 -5
  84. package/dist/utils/collect-updates/lib/index.js +8 -21
  85. package/dist/utils/collect-updates/lib/index.js.map +1 -1
  86. package/dist/utils/collect-updates/lib/make-diff-predicate.d.ts +9 -7
  87. package/dist/utils/collect-updates/lib/make-diff-predicate.js +74 -63
  88. package/dist/utils/collect-updates/lib/make-diff-predicate.js.map +1 -1
  89. package/dist/utils/conf.d.ts +25 -25
  90. package/dist/utils/conf.js +253 -255
  91. package/dist/utils/conf.js.map +1 -1
  92. package/dist/utils/defaults.d.ts +1 -1
  93. package/dist/utils/defaults.js +180 -182
  94. package/dist/utils/defaults.js.map +1 -1
  95. package/dist/utils/describe-ref.d.ts +13 -13
  96. package/dist/utils/describe-ref.js +86 -88
  97. package/dist/utils/describe-ref.js.map +1 -1
  98. package/dist/utils/env-replace.d.ts +1 -1
  99. package/dist/utils/env-replace.js +22 -22
  100. package/dist/utils/find-prefix.d.ts +2 -2
  101. package/dist/utils/find-prefix.js +46 -48
  102. package/dist/utils/find-prefix.js.map +1 -1
  103. package/dist/utils/index.d.ts +22 -22
  104. package/dist/utils/index.js +26 -39
  105. package/dist/utils/index.js.map +1 -1
  106. package/dist/utils/log-package-error.d.ts +5 -5
  107. package/dist/utils/log-package-error.js +33 -35
  108. package/dist/utils/log-package-error.js.map +1 -1
  109. package/dist/utils/nerf-dart.d.ts +1 -1
  110. package/dist/utils/nerf-dart.js +16 -18
  111. package/dist/utils/nerf-dart.js.map +1 -1
  112. package/dist/utils/npm-conf.d.ts +4 -4
  113. package/dist/utils/npm-conf.js +53 -78
  114. package/dist/utils/npm-conf.js.map +1 -1
  115. package/dist/utils/object-utils.d.ts +21 -21
  116. package/dist/utils/object-utils.js +51 -53
  117. package/dist/utils/object-utils.js.map +1 -1
  118. package/dist/utils/output.d.ts +1 -1
  119. package/dist/utils/output.js +11 -13
  120. package/dist/utils/output.js.map +1 -1
  121. package/dist/utils/parse-field.d.ts +1 -1
  122. package/dist/utils/parse-field.js +63 -65
  123. package/dist/utils/parse-field.js.map +1 -1
  124. package/dist/utils/prerelease-id-from-version.d.ts +5 -5
  125. package/dist/utils/prerelease-id-from-version.js +13 -15
  126. package/dist/utils/prerelease-id-from-version.js.map +1 -1
  127. package/dist/utils/pulse-till-done.d.ts +1 -1
  128. package/dist/utils/pulse-till-done.js +38 -40
  129. package/dist/utils/pulse-till-done.js.map +1 -1
  130. package/dist/utils/query-graph.d.ts +36 -36
  131. package/dist/utils/query-graph.js +77 -77
  132. package/dist/utils/run-lifecycle.d.ts +10 -10
  133. package/dist/utils/run-lifecycle.js +138 -140
  134. package/dist/utils/run-lifecycle.js.map +1 -1
  135. package/dist/utils/run-topologically.d.ts +12 -12
  136. package/dist/utils/run-topologically.js +34 -36
  137. package/dist/utils/run-topologically.js.map +1 -1
  138. package/dist/utils/string-utils.d.ts +2 -2
  139. package/dist/utils/string-utils.js +9 -9
  140. package/dist/utils/types.d.ts +128 -131
  141. package/dist/utils/types.js +136 -138
  142. package/dist/utils/types.js.map +1 -1
  143. package/dist/utils/warn-if-hanging.d.ts +1 -1
  144. package/dist/utils/warn-if-hanging.js +15 -17
  145. package/dist/utils/warn-if-hanging.js.map +1 -1
  146. package/dist/utils/write-log-file.d.ts +1 -1
  147. package/dist/utils/write-log-file.js +30 -32
  148. package/dist/utils/write-log-file.js.map +1 -1
  149. package/dist/validation-error.d.ts +4 -4
  150. package/dist/validation-error.js +16 -18
  151. package/dist/validation-error.js.map +1 -1
  152. package/package.json +4 -4
package/dist/package.d.ts CHANGED
@@ -1,113 +1,113 @@
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
- /** alias to pkg getter (to avoid calling duplicate prop like `node.pkg.pkg` in which node is PackageGraphNode) */
36
- get manifest(): RawManifest;
37
- get manifestLocation(): string;
38
- get nodeModulesLocation(): string;
39
- get __isLernaPackage(): boolean;
40
- get version(): string;
41
- set version(version: string);
42
- get workspaces(): string[] | {
43
- packages: string[];
44
- };
45
- set workspaces(workspaces: string[] | {
46
- packages: string[];
47
- });
48
- get contents(): string;
49
- set contents(subDirectory: string);
50
- get dependencies(): {
51
- [depName: string]: string;
52
- };
53
- get devDependencies(): {
54
- [depName: string]: string;
55
- };
56
- get optionalDependencies(): {
57
- [depName: string]: string;
58
- };
59
- get peerDependencies(): {
60
- [depName: string]: string;
61
- };
62
- get pkg(): Package;
63
- /**
64
- * Map-like retrieval of arbitrary values
65
- * @template {keyof RawManifest} K
66
- * @param {K} key field name to retrieve value
67
- * @returns {RawManifest[K]} value stored under key, if present
68
- */
69
- get<K extends keyof RawManifest>(key: string): K;
70
- /**
71
- * Map-like storage of arbitrary values
72
- * @template {keyof RawManifest} K
73
- * @param {T} key field name to store value
74
- * @param {RawManifest[K]} val value to store
75
- * @returns {Package} instance for chaining
76
- */
77
- set(key: string, val: RawManifest[keyof RawManifest]): Package;
78
- /**
79
- * Provide shallow copy for munging elsewhere
80
- * @returns {Object}
81
- */
82
- toJSON(): {};
83
- /**
84
- * Refresh internal state from disk (e.g., changed by external lifecycles)
85
- */
86
- refresh(): Promise<this>;
87
- /**
88
- * Write manifest changes to disk
89
- * @returns {Promise} resolves when write finished
90
- */
91
- serialize(): Promise<this>;
92
- /**
93
- * Mutate given dependency (could be local/external) spec according to type
94
- * @param {String} pkgName - package name
95
- * @param {Object} resolved npa metadata
96
- */
97
- removeDependencyWorkspaceProtocolPrefix(pkgName: string, resolved: NpaResolveResult): void;
98
- /**
99
- * Mutate local dependency spec according to type
100
- * @param {Object} resolved npa metadata
101
- * @param {String} depVersion semver
102
- * @param {String} savePrefix npm_config_save_prefix
103
- * @param {Boolean} [workspaceStrictMatch] - are we using `workspace:` protocol strict match?
104
- * @param {String} [updatedByCommand] - which command called this update?
105
- */
106
- updateLocalDependency(resolved: NpaResolveResult, depVersion: string, savePrefix: string, allowPeerDependenciesUpdate?: boolean, workspaceStrictMatch?: boolean, updatedByCommand?: CommandType): void;
107
- /**
108
- * Retrieve the dependencies collection which contain the dependency name provided, we'll search in all type of dependencies/devDependencies/...
109
- * @param {String} depName - dependency name
110
- * @returns {Array<String>} - array of dependencies that contains the dependency name provided
111
- */
112
- private retrievePackageDependencies;
113
- }
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
+ /** alias to pkg getter (to avoid calling duplicate prop like `node.pkg.pkg` in which node is PackageGraphNode) */
36
+ get manifest(): RawManifest;
37
+ get manifestLocation(): string;
38
+ get nodeModulesLocation(): string;
39
+ get __isLernaPackage(): boolean;
40
+ get version(): string;
41
+ set version(version: string);
42
+ get workspaces(): string[] | {
43
+ packages: string[];
44
+ };
45
+ set workspaces(workspaces: string[] | {
46
+ packages: string[];
47
+ });
48
+ get contents(): string;
49
+ set contents(subDirectory: string);
50
+ get dependencies(): {
51
+ [depName: string]: string;
52
+ };
53
+ get devDependencies(): {
54
+ [depName: string]: string;
55
+ };
56
+ get optionalDependencies(): {
57
+ [depName: string]: string;
58
+ };
59
+ get peerDependencies(): {
60
+ [depName: string]: string;
61
+ };
62
+ get pkg(): Package;
63
+ /**
64
+ * Map-like retrieval of arbitrary values
65
+ * @template {keyof RawManifest} K
66
+ * @param {K} key field name to retrieve value
67
+ * @returns {RawManifest[K]} value stored under key, if present
68
+ */
69
+ get<K extends keyof RawManifest>(key: string): K;
70
+ /**
71
+ * Map-like storage of arbitrary values
72
+ * @template {keyof RawManifest} K
73
+ * @param {T} key field name to store value
74
+ * @param {RawManifest[K]} val value to store
75
+ * @returns {Package} instance for chaining
76
+ */
77
+ set(key: string, val: RawManifest[keyof RawManifest]): Package;
78
+ /**
79
+ * Provide shallow copy for munging elsewhere
80
+ * @returns {Object}
81
+ */
82
+ toJSON(): {};
83
+ /**
84
+ * Refresh internal state from disk (e.g., changed by external lifecycles)
85
+ */
86
+ refresh(): Promise<this>;
87
+ /**
88
+ * Write manifest changes to disk
89
+ * @returns {Promise} resolves when write finished
90
+ */
91
+ serialize(): Promise<this>;
92
+ /**
93
+ * Mutate given dependency (could be local/external) spec according to type
94
+ * @param {String} pkgName - package name
95
+ * @param {Object} resolved npa metadata
96
+ */
97
+ removeDependencyWorkspaceProtocolPrefix(pkgName: string, resolved: NpaResolveResult): void;
98
+ /**
99
+ * Mutate local dependency spec according to type
100
+ * @param {Object} resolved npa metadata
101
+ * @param {String} depVersion semver
102
+ * @param {String} savePrefix npm_config_save_prefix
103
+ * @param {Boolean} [workspaceStrictMatch] - are we using `workspace:` protocol strict match?
104
+ * @param {String} [updatedByCommand] - which command called this update?
105
+ */
106
+ updateLocalDependency(resolved: NpaResolveResult, depVersion: string, savePrefix: string, allowPeerDependenciesUpdate?: boolean, workspaceStrictMatch?: boolean, updatedByCommand?: CommandType): void;
107
+ /**
108
+ * Retrieve the dependencies collection which contain the dependency name provided, we'll search in all type of dependencies/devDependencies/...
109
+ * @param {String} depName - dependency name
110
+ * @returns {Array<String>} - array of dependencies that contains the dependency name provided
111
+ */
112
+ private retrievePackageDependencies;
113
+ }