@lerna-lite/core 1.2.0 → 1.5.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 +3 -3
- 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 +262 -262
- 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 +214 -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 +202 -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 -84
- package/dist/package.js +291 -256
- 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 +9 -8
- package/dist/utils/check-working-tree.js +41 -41
- package/dist/utils/check-working-tree.js.map +1 -1
- 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 -18
- package/dist/utils/collect-uncommitted.js +40 -40
- package/dist/utils/collect-uncommitted.js.map +1 -1
- 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 +13 -37
- package/dist/utils/describe-ref.js +80 -80
- 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 +48 -48
- package/dist/utils/index.d.ts +21 -22
- package/dist/utils/index.js +38 -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 +56 -55
- package/dist/utils/npm-conf.js.map +1 -1
- 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 +16 -12
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.envReplace = void 0;
|
|
4
|
-
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L409-L423
|
|
5
|
-
function envReplace(str) {
|
|
6
|
-
if (typeof str !== 'string' || !str) {
|
|
7
|
-
return str;
|
|
8
|
-
}
|
|
9
|
-
// Replace any ${ENV} values with the appropriate environment
|
|
10
|
-
const regex = /(\\*)\$\{([^}]+)\}/g;
|
|
11
|
-
return str.replace(regex, (orig, esc, name) => {
|
|
12
|
-
var _a;
|
|
13
|
-
if (esc.length > 0 && esc.length % 2) {
|
|
14
|
-
return orig;
|
|
15
|
-
}
|
|
16
|
-
if (!name || process.env[name] === undefined) {
|
|
17
|
-
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
18
|
-
}
|
|
19
|
-
return (_a = process.env[name]) !== null && _a !== void 0 ? _a : '';
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
exports.envReplace = envReplace;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.envReplace = void 0;
|
|
4
|
+
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L409-L423
|
|
5
|
+
function envReplace(str) {
|
|
6
|
+
if (typeof str !== 'string' || !str) {
|
|
7
|
+
return str;
|
|
8
|
+
}
|
|
9
|
+
// Replace any ${ENV} values with the appropriate environment
|
|
10
|
+
const regex = /(\\*)\$\{([^}]+)\}/g;
|
|
11
|
+
return str.replace(regex, (orig, esc, name) => {
|
|
12
|
+
var _a;
|
|
13
|
+
if (esc.length > 0 && esc.length % 2) {
|
|
14
|
+
return orig;
|
|
15
|
+
}
|
|
16
|
+
if (!name || process.env[name] === undefined) {
|
|
17
|
+
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
18
|
+
}
|
|
19
|
+
return (_a = process.env[name]) !== null && _a !== void 0 ? _a : '';
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.envReplace = envReplace;
|
|
23
23
|
//# sourceMappingURL=env-replace.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function findPrefix(start: string): any;
|
|
2
|
-
export declare function find(name: string, original: string): any;
|
|
1
|
+
export declare function findPrefix(start: string): any;
|
|
2
|
+
export declare function find(name: string, original: string): any;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.find = exports.findPrefix = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
// https://github.com/npm/npm/blob/876f0c8/lib/config/find-prefix.js
|
|
10
|
-
function findPrefix(start) {
|
|
11
|
-
let dir = path_1.default.resolve(start);
|
|
12
|
-
let walkedUp = false;
|
|
13
|
-
while (path_1.default.basename(dir) === 'node_modules') {
|
|
14
|
-
dir = path_1.default.dirname(dir);
|
|
15
|
-
walkedUp = true;
|
|
16
|
-
}
|
|
17
|
-
if (walkedUp) {
|
|
18
|
-
return dir;
|
|
19
|
-
}
|
|
20
|
-
return find(dir, dir);
|
|
21
|
-
}
|
|
22
|
-
exports.findPrefix = findPrefix;
|
|
23
|
-
function find(name, original) {
|
|
24
|
-
if (name === '/' || (process.platform === 'win32' && /^[a-zA-Z]:(\\|\/)?$/.test(name))) {
|
|
25
|
-
return original;
|
|
26
|
-
}
|
|
27
|
-
try {
|
|
28
|
-
const files = fs_1.default.readdirSync(name);
|
|
29
|
-
if (files.indexOf('node_modules') !== -1 || files.indexOf('package.json') !== -1) {
|
|
30
|
-
return name;
|
|
31
|
-
}
|
|
32
|
-
const dirname = path_1.default.dirname(name);
|
|
33
|
-
if (dirname === name) {
|
|
34
|
-
return original;
|
|
35
|
-
}
|
|
36
|
-
return find(dirname, original);
|
|
37
|
-
}
|
|
38
|
-
catch (err) {
|
|
39
|
-
if (name === original) {
|
|
40
|
-
if (err.code === 'ENOENT') {
|
|
41
|
-
return original;
|
|
42
|
-
}
|
|
43
|
-
throw err;
|
|
44
|
-
}
|
|
45
|
-
return original;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.find = find;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.find = exports.findPrefix = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
// https://github.com/npm/npm/blob/876f0c8/lib/config/find-prefix.js
|
|
10
|
+
function findPrefix(start) {
|
|
11
|
+
let dir = path_1.default.resolve(start);
|
|
12
|
+
let walkedUp = false;
|
|
13
|
+
while (path_1.default.basename(dir) === 'node_modules') {
|
|
14
|
+
dir = path_1.default.dirname(dir);
|
|
15
|
+
walkedUp = true;
|
|
16
|
+
}
|
|
17
|
+
if (walkedUp) {
|
|
18
|
+
return dir;
|
|
19
|
+
}
|
|
20
|
+
return find(dir, dir);
|
|
21
|
+
}
|
|
22
|
+
exports.findPrefix = findPrefix;
|
|
23
|
+
function find(name, original) {
|
|
24
|
+
if (name === '/' || (process.platform === 'win32' && /^[a-zA-Z]:(\\|\/)?$/.test(name))) {
|
|
25
|
+
return original;
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
const files = fs_1.default.readdirSync(name);
|
|
29
|
+
if (files.indexOf('node_modules') !== -1 || files.indexOf('package.json') !== -1) {
|
|
30
|
+
return name;
|
|
31
|
+
}
|
|
32
|
+
const dirname = path_1.default.dirname(name);
|
|
33
|
+
if (dirname === name) {
|
|
34
|
+
return original;
|
|
35
|
+
}
|
|
36
|
+
return find(dirname, original);
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
if (name === original) {
|
|
40
|
+
if (err.code === 'ENOENT') {
|
|
41
|
+
return original;
|
|
42
|
+
}
|
|
43
|
+
throw err;
|
|
44
|
+
}
|
|
45
|
+
return original;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.find = find;
|
|
49
49
|
//# sourceMappingURL=find-prefix.js.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
export * from './collect-updates';
|
|
2
|
-
export * from './check-working-tree';
|
|
3
|
-
export * from './clean-stack';
|
|
4
|
-
export * from './collect-uncommitted';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './write-log-file';
|
|
1
|
+
export * from './collect-updates';
|
|
2
|
+
export * from './check-working-tree';
|
|
3
|
+
export * from './clean-stack';
|
|
4
|
+
export * from './collect-uncommitted';
|
|
5
|
+
export * from './defaults';
|
|
6
|
+
export * from './describe-ref';
|
|
7
|
+
export * from './env-replace';
|
|
8
|
+
export * from './find-prefix';
|
|
9
|
+
export * from './log-package-error';
|
|
10
|
+
export * from './npm-conf';
|
|
11
|
+
export * from './output';
|
|
12
|
+
export * from './parse-field';
|
|
13
|
+
export * from './prerelease-id-from-version';
|
|
14
|
+
export * from './pulse-till-done';
|
|
15
|
+
export * from './query-graph';
|
|
16
|
+
export * from './run-lifecycle';
|
|
17
|
+
export * from './run-topologically';
|
|
18
|
+
export * from './temp-write';
|
|
19
|
+
export * from './types';
|
|
20
|
+
export * from './warn-if-hanging';
|
|
21
|
+
export * from './write-log-file';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
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("./collect-updates"), exports);
|
|
18
|
-
__exportStar(require("./check-working-tree"), exports);
|
|
19
|
-
__exportStar(require("./clean-stack"), exports);
|
|
20
|
-
__exportStar(require("./collect-uncommitted"), exports);
|
|
21
|
-
|
|
22
|
-
__exportStar(require("./defaults"), exports);
|
|
23
|
-
__exportStar(require("./describe-ref"), exports);
|
|
24
|
-
__exportStar(require("./env-replace"), exports);
|
|
25
|
-
__exportStar(require("./find-prefix"), exports);
|
|
26
|
-
__exportStar(require("./log-package-error"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./run-
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
__exportStar(require("./types"), exports);
|
|
37
|
-
__exportStar(require("./warn-if-hanging"), exports);
|
|
38
|
-
__exportStar(require("./write-log-file"), exports);
|
|
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("./collect-updates"), exports);
|
|
18
|
+
__exportStar(require("./check-working-tree"), exports);
|
|
19
|
+
__exportStar(require("./clean-stack"), exports);
|
|
20
|
+
__exportStar(require("./collect-uncommitted"), exports);
|
|
21
|
+
// eslint-disable-next-line import/export
|
|
22
|
+
__exportStar(require("./defaults"), exports);
|
|
23
|
+
__exportStar(require("./describe-ref"), exports);
|
|
24
|
+
__exportStar(require("./env-replace"), exports);
|
|
25
|
+
__exportStar(require("./find-prefix"), exports);
|
|
26
|
+
__exportStar(require("./log-package-error"), exports);
|
|
27
|
+
__exportStar(require("./npm-conf"), exports);
|
|
28
|
+
__exportStar(require("./output"), exports);
|
|
29
|
+
__exportStar(require("./parse-field"), exports);
|
|
30
|
+
__exportStar(require("./prerelease-id-from-version"), exports);
|
|
31
|
+
__exportStar(require("./pulse-till-done"), exports);
|
|
32
|
+
__exportStar(require("./query-graph"), exports);
|
|
33
|
+
__exportStar(require("./run-lifecycle"), exports);
|
|
34
|
+
__exportStar(require("./run-topologically"), exports);
|
|
35
|
+
__exportStar(require("./temp-write"), exports);
|
|
36
|
+
__exportStar(require("./types"), exports);
|
|
37
|
+
__exportStar(require("./warn-if-hanging"), exports);
|
|
38
|
+
__exportStar(require("./write-log-file"), exports);
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,wDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,gDAA8B;AAC9B,wDAAsC;AACtC,yCAAyC;AACzC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,gDAA8B;AAC9B,sDAAoC;AACpC,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,gDAA8B;AAC9B,kDAAgC;AAChC,sDAAoC;AACpC,+CAA6B;AAC7B,0CAAwB;AACxB,oDAAkC;AAClC,mDAAiC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
3
|
-
* @param {boolean} stream
|
|
4
|
-
*/
|
|
5
|
-
export declare function logPackageError(err: any, stream?: boolean): void;
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
3
|
+
* @param {boolean} stream
|
|
4
|
+
*/
|
|
5
|
+
export declare function logPackageError(err: any, stream?: boolean): void;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.logPackageError = void 0;
|
|
7
|
-
const npmlog_1 = __importDefault(require("npmlog"));
|
|
8
|
-
/**
|
|
9
|
-
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
10
|
-
* @param {boolean} stream
|
|
11
|
-
*/
|
|
12
|
-
function logPackageError(err, stream = false) {
|
|
13
|
-
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
14
|
-
if (stream) {
|
|
15
|
-
// Streaming has already printed all stdout/stderr
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
if (err.stdout) {
|
|
19
|
-
npmlog_1.default.error(err.command, 'stdout:');
|
|
20
|
-
directLog(err.stdout);
|
|
21
|
-
}
|
|
22
|
-
if (err.stderr) {
|
|
23
|
-
npmlog_1.default.error(err.command, 'stderr:');
|
|
24
|
-
directLog(err.stderr);
|
|
25
|
-
}
|
|
26
|
-
// Below is just to ensure something sensible is printed after the long stream of logs
|
|
27
|
-
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
28
|
-
}
|
|
29
|
-
exports.logPackageError = logPackageError;
|
|
30
|
-
/** @param {string} message */
|
|
31
|
-
function directLog(message) {
|
|
32
|
-
npmlog_1.default.pause();
|
|
33
|
-
console.error(message); // eslint-disable-line no-console
|
|
34
|
-
npmlog_1.default.resume();
|
|
35
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.logPackageError = void 0;
|
|
7
|
+
const npmlog_1 = __importDefault(require("npmlog"));
|
|
8
|
+
/**
|
|
9
|
+
* @param {import('execa').ExecaError & { pkg: import('@lerna/package').Package }} err
|
|
10
|
+
* @param {boolean} stream
|
|
11
|
+
*/
|
|
12
|
+
function logPackageError(err, stream = false) {
|
|
13
|
+
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
14
|
+
if (stream) {
|
|
15
|
+
// Streaming has already printed all stdout/stderr
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (err.stdout) {
|
|
19
|
+
npmlog_1.default.error(err.command, 'stdout:');
|
|
20
|
+
directLog(err.stdout);
|
|
21
|
+
}
|
|
22
|
+
if (err.stderr) {
|
|
23
|
+
npmlog_1.default.error(err.command, 'stderr:');
|
|
24
|
+
directLog(err.stderr);
|
|
25
|
+
}
|
|
26
|
+
// Below is just to ensure something sensible is printed after the long stream of logs
|
|
27
|
+
npmlog_1.default.error(err.command, `exited ${err.exitCode} in '${err.pkg.name}'`);
|
|
28
|
+
}
|
|
29
|
+
exports.logPackageError = logPackageError;
|
|
30
|
+
/** @param {string} message */
|
|
31
|
+
function directLog(message) {
|
|
32
|
+
npmlog_1.default.pause();
|
|
33
|
+
console.error(message); // eslint-disable-line no-console
|
|
34
|
+
npmlog_1.default.resume();
|
|
35
|
+
}
|
|
36
36
|
//# sourceMappingURL=log-package-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function toNerfDart(uri: any): string;
|
|
1
|
+
export declare function toNerfDart(uri: any): string;
|
package/dist/utils/nerf-dart.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toNerfDart = void 0;
|
|
7
|
-
const url_1 = __importDefault(require("url"));
|
|
8
|
-
// https://github.com/npm/npm/blob/0cc9d89/lib/config/nerf-dart.js
|
|
9
|
-
function toNerfDart(uri) {
|
|
10
|
-
const parsed = url_1.default.parse(uri);
|
|
11
|
-
delete parsed.protocol;
|
|
12
|
-
delete parsed.auth;
|
|
13
|
-
delete parsed.query;
|
|
14
|
-
delete parsed.search;
|
|
15
|
-
delete parsed.hash;
|
|
16
|
-
return url_1.default.resolve(url_1.default.format(parsed), '.');
|
|
17
|
-
}
|
|
18
|
-
exports.toNerfDart = toNerfDart;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toNerfDart = void 0;
|
|
7
|
+
const url_1 = __importDefault(require("url"));
|
|
8
|
+
// https://github.com/npm/npm/blob/0cc9d89/lib/config/nerf-dart.js
|
|
9
|
+
function toNerfDart(uri) {
|
|
10
|
+
const parsed = url_1.default.parse(uri);
|
|
11
|
+
delete parsed.protocol;
|
|
12
|
+
delete parsed.auth;
|
|
13
|
+
delete parsed.query;
|
|
14
|
+
delete parsed.search;
|
|
15
|
+
delete parsed.hash;
|
|
16
|
+
return url_1.default.resolve(url_1.default.format(parsed), '.');
|
|
17
|
+
}
|
|
18
|
+
exports.toNerfDart = toNerfDart;
|
|
19
19
|
//# sourceMappingURL=nerf-dart.js.map
|
package/dist/utils/npm-conf.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Conf } from '../utils/conf';
|
|
2
|
-
import { toNerfDart } from './nerf-dart';
|
|
3
|
-
declare function npmConf(opts: any): Conf;
|
|
4
|
-
export { Conf, npmConf, toNerfDart
|
|
1
|
+
import { Conf } from '../utils/conf';
|
|
2
|
+
import { toNerfDart } from './nerf-dart';
|
|
3
|
+
declare function npmConf(opts: any): Conf;
|
|
4
|
+
export { Conf, npmConf, toNerfDart };
|
package/dist/utils/npm-conf.js
CHANGED
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toNerfDart = exports.npmConf = exports.Conf = void 0;
|
|
7
|
-
const path_1 = __importDefault(require("path"));
|
|
8
|
-
const conf_1 = require("../utils/conf");
|
|
9
|
-
Object.defineProperty(exports, "Conf", { enumerable: true, get: function () { return conf_1.Conf; } });
|
|
10
|
-
const nerf_dart_1 = require("./nerf-dart");
|
|
11
|
-
Object.defineProperty(exports, "toNerfDart", { enumerable: true, get: function () { return nerf_dart_1.toNerfDart; } });
|
|
12
|
-
const defaults = require('./defaults');
|
|
13
|
-
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L101-L200
|
|
14
|
-
function npmConf(opts) {
|
|
15
|
-
const conf = new conf_1.Conf(Object.assign({}, defaults.defaults));
|
|
16
|
-
// prevent keys with undefined values from obscuring defaults
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
conf.
|
|
28
|
-
conf.
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
conf.root.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
conf.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.toNerfDart = exports.npmConf = exports.Conf = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const conf_1 = require("../utils/conf");
|
|
9
|
+
Object.defineProperty(exports, "Conf", { enumerable: true, get: function () { return conf_1.Conf; } });
|
|
10
|
+
const nerf_dart_1 = require("./nerf-dart");
|
|
11
|
+
Object.defineProperty(exports, "toNerfDart", { enumerable: true, get: function () { return nerf_dart_1.toNerfDart; } });
|
|
12
|
+
const defaults = require('./defaults');
|
|
13
|
+
// https://github.com/npm/npm/blob/latest/lib/config/core.js#L101-L200
|
|
14
|
+
function npmConf(opts) {
|
|
15
|
+
const conf = new conf_1.Conf(Object.assign({}, defaults.defaults));
|
|
16
|
+
// prevent keys with undefined values from obscuring defaults
|
|
17
|
+
// prettier-ignore
|
|
18
|
+
const cleanOpts = opts
|
|
19
|
+
? Object.keys(opts).reduce((acc, key) => {
|
|
20
|
+
if (opts[key] !== undefined) {
|
|
21
|
+
// eslint-disable-next-line no-param-reassign
|
|
22
|
+
acc[key] = opts[key];
|
|
23
|
+
}
|
|
24
|
+
return acc;
|
|
25
|
+
}, {})
|
|
26
|
+
: {};
|
|
27
|
+
conf.add(cleanOpts, 'cli');
|
|
28
|
+
conf.addEnv();
|
|
29
|
+
conf.loadPrefix();
|
|
30
|
+
const projectConf = path_1.default.resolve(conf.localPrefix, '.npmrc');
|
|
31
|
+
const userConf = conf.get('userconfig');
|
|
32
|
+
/* istanbul ignore else */
|
|
33
|
+
if (!conf.get('global') && projectConf !== userConf) {
|
|
34
|
+
conf.addFile(projectConf, 'project');
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
conf.add({}, 'project');
|
|
38
|
+
}
|
|
39
|
+
conf.addFile(conf.get('userconfig'), 'user');
|
|
40
|
+
/* istanbul ignore else */
|
|
41
|
+
if (conf.get('prefix')) {
|
|
42
|
+
const etc = path_1.default.resolve(conf.get('prefix'), 'etc');
|
|
43
|
+
conf.root.globalconfig = path_1.default.resolve(etc, 'npmrc');
|
|
44
|
+
conf.root.globalignorefile = path_1.default.resolve(etc, 'npmignore');
|
|
45
|
+
}
|
|
46
|
+
conf.addFile(conf.get('globalconfig'), 'global');
|
|
47
|
+
conf.loadUser();
|
|
48
|
+
const caFile = conf.get('cafile');
|
|
49
|
+
/* istanbul ignore if */
|
|
50
|
+
if (caFile) {
|
|
51
|
+
conf.loadCAFile(caFile);
|
|
52
|
+
}
|
|
53
|
+
return conf;
|
|
54
|
+
}
|
|
55
|
+
exports.npmConf = npmConf;
|
|
56
|
+
module.exports.defaults = Object.assign({}, defaults.defaults);
|
|
56
57
|
//# sourceMappingURL=npm-conf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npm-conf.js","sourceRoot":"","sources":["../../src/utils/npm-conf.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,wCAAqC;
|
|
1
|
+
{"version":3,"file":"npm-conf.js","sourceRoot":"","sources":["../../src/utils/npm-conf.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,wCAAqC;AA2D5B,qFA3DA,WAAI,OA2DA;AA1Db,2CAAyC;AA0DjB,2FA1Df,sBAAU,OA0De;AAzDlC,MAAM,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAEvC,sEAAsE;AACtE,SAAS,OAAO,CAAC,IAAS;IACxB,MAAM,IAAI,GAAG,IAAI,WAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;IAE5D,6DAA6D;IAC7D,kBAAkB;IAClB,MAAM,SAAS,GAAG,IAAI;QACpB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACtC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;gBAC3B,6CAA6C;gBAC7C,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;aACtB;YAED,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC;QACN,CAAC,CAAC,EAAE,CAAC;IAEP,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC3B,IAAI,CAAC,MAAM,EAAE,CAAC;IACd,IAAI,CAAC,UAAU,EAAE,CAAC;IAElB,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAExC,0BAA0B;IAC1B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,WAAW,KAAK,QAAQ,EAAE;QACnD,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;KACtC;SAAM;QACL,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;KACzB;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,0BAA0B;IAC1B,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACtB,MAAM,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,YAAY,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;KAC7D;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAEhB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAElC,wBAAwB;IACxB,IAAI,MAAM,EAAE;QACV,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;KACzB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAIc,0BAAO;AAFtB,MAAM,CAAC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/utils/output.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function logOutput(...args: any): void;
|
|
1
|
+
export declare function logOutput(...args: any): void;
|
package/dist/utils/output.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.logOutput = void 0;
|
|
7
|
-
const npmlog_1 = __importDefault(require("npmlog"));
|
|
8
|
-
function logOutput(...args) {
|
|
9
|
-
npmlog_1.default.clearProgress();
|
|
10
|
-
console.log(...args);
|
|
11
|
-
npmlog_1.default.showProgress();
|
|
12
|
-
}
|
|
13
|
-
exports.logOutput = logOutput;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.logOutput = void 0;
|
|
7
|
+
const npmlog_1 = __importDefault(require("npmlog"));
|
|
8
|
+
function logOutput(...args) {
|
|
9
|
+
npmlog_1.default.clearProgress();
|
|
10
|
+
console.log(...args);
|
|
11
|
+
npmlog_1.default.showProgress();
|
|
12
|
+
}
|
|
13
|
+
exports.logOutput = logOutput;
|
|
14
14
|
//# sourceMappingURL=output.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function parseField(input: any, key: string): any;
|
|
1
|
+
export declare function parseField(input: any, key: string): any;
|