@meltstudio/meltctl 4.154.0 → 4.154.2
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/index.js +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.154.
|
|
17
|
+
CLI_VERSION = "4.154.2";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -2676,21 +2676,30 @@ import path5 from "path";
|
|
|
2676
2676
|
import { execSync as execSync4 } from "child_process";
|
|
2677
2677
|
function getGitBranch() {
|
|
2678
2678
|
try {
|
|
2679
|
-
return execSync4("git rev-parse --abbrev-ref HEAD", {
|
|
2679
|
+
return execSync4("git rev-parse --abbrev-ref HEAD", {
|
|
2680
|
+
encoding: "utf-8",
|
|
2681
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
2682
|
+
}).trim();
|
|
2680
2683
|
} catch {
|
|
2681
2684
|
return "unknown";
|
|
2682
2685
|
}
|
|
2683
2686
|
}
|
|
2684
2687
|
function getGitCommit() {
|
|
2685
2688
|
try {
|
|
2686
|
-
return execSync4("git rev-parse --short HEAD", {
|
|
2689
|
+
return execSync4("git rev-parse --short HEAD", {
|
|
2690
|
+
encoding: "utf-8",
|
|
2691
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
2692
|
+
}).trim();
|
|
2687
2693
|
} catch {
|
|
2688
2694
|
return "unknown";
|
|
2689
2695
|
}
|
|
2690
2696
|
}
|
|
2691
2697
|
function getGitRepository() {
|
|
2692
2698
|
try {
|
|
2693
|
-
const url = execSync4("git remote get-url origin", {
|
|
2699
|
+
const url = execSync4("git remote get-url origin", {
|
|
2700
|
+
encoding: "utf-8",
|
|
2701
|
+
stdio: ["pipe", "pipe", "ignore"]
|
|
2702
|
+
}).trim();
|
|
2694
2703
|
const match = url.match(/[/:]([\w.-]+\/[\w.-]+?)(?:\.git)?$/);
|
|
2695
2704
|
const slug = match ? match[1] : url;
|
|
2696
2705
|
return { slug, url };
|
package/package.json
CHANGED