@lerna-lite/core 1.0.0 → 1.0.3
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.
|
@@ -3,4 +3,4 @@ import parseGitUrl from 'git-url-parse';
|
|
|
3
3
|
export declare function createGitHubClient(): import("@octokit/core").Octokit & {
|
|
4
4
|
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface;
|
|
5
5
|
} & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api;
|
|
6
|
-
export declare function parseGitRepo(remote?: string, opts?: SyncOptions<string
|
|
6
|
+
export declare function parseGitRepo(remote?: string, opts?: SyncOptions<string>): parseGitUrl.GitUrl;
|
|
@@ -27,15 +27,15 @@ function createGitHubClient() {
|
|
|
27
27
|
return new rest_1.Octokit(options);
|
|
28
28
|
}
|
|
29
29
|
exports.createGitHubClient = createGitHubClient;
|
|
30
|
-
function parseGitRepo(remote = 'origin', opts
|
|
30
|
+
function parseGitRepo(remote = 'origin', opts) {
|
|
31
31
|
npmlog_1.default.silly('parseGitRepo', '');
|
|
32
32
|
const args = ['config', '--get', `remote.${remote}.url`];
|
|
33
33
|
npmlog_1.default.verbose('git', args.join(' '));
|
|
34
|
-
const url = (0, child_process_1.execSync)('git', args, opts
|
|
35
|
-
if (!url
|
|
34
|
+
const url = (0, child_process_1.execSync)('git', args, opts);
|
|
35
|
+
if (!url) {
|
|
36
36
|
throw new Error(`Git remote URL could not be found using "${remote}".`);
|
|
37
37
|
}
|
|
38
|
-
return
|
|
38
|
+
return (0, git_url_parse_1.default)(url);
|
|
39
39
|
}
|
|
40
40
|
exports.parseGitRepo = parseGitRepo;
|
|
41
41
|
//# sourceMappingURL=github-client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-client.js","sourceRoot":"","sources":["../../src/git-clients/github-client.ts"],"names":[],"mappings":";;;;;;AAAA,wCAAwC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AC;KAC/E;IAED,MAAM,OAAO,GAAQ;QACnB,IAAI,EAAE,SAAS,QAAQ,EAAE;KAC1B,CAAC;IAEF,IAAI,WAAW,EAAE;QACf,OAAO,CAAC,OAAO,GAAG,WAAW,CAAC;KAC/B;IAED,OAAO,IAAI,cAAO,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC;AAvBD,gDAuBC;AAED,SAAgB,YAAY,CAAC,MAAM,GAAG,QAAQ,EAAE,IAA0B;IACxE,gBAAG,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,MAAM,MAAM,CAAC,CAAC;IACzD,gBAAG,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,GAAG,GAAG,IAAA,wBAAQ,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAExC,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,4CAA4C,MAAM,IAAI,CAAC,CAAC;KACzE;IAED,OAAO,IAAA,uBAAW,EAAC,GAAG,CAAC,CAAC;AAC1B,CAAC;AAXD,oCAWC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lerna-lite/core",
|
|
3
3
|
"description": "Lerna-Lite core implementation module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"globby": "^11.1.0",
|
|
51
51
|
"inquirer": "^8.2.0",
|
|
52
52
|
"is-ci": "^3.0.1",
|
|
53
|
-
"libnpmaccess": "^
|
|
53
|
+
"libnpmaccess": "^6.0.1",
|
|
54
54
|
"libnpmpublish": "^5.0.1",
|
|
55
55
|
"load-json-file": "^6.2.0",
|
|
56
56
|
"minimatch": "^3.1.2",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"type": "ko_fi",
|
|
109
109
|
"url": "https://ko-fi.com/ghiscoding"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "f272c822d4213707747223cd85cd29f07408929c"
|
|
112
112
|
}
|