@getmonoceros/workbench 1.36.7 → 1.36.8
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/bin.js +9 -2
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6732,7 +6732,14 @@ function wrapExec(command, opts) {
|
|
|
6732
6732
|
}
|
|
6733
6733
|
function openInBrowser(url) {
|
|
6734
6734
|
const platform = process.platform;
|
|
6735
|
-
const
|
|
6735
|
+
const wsl = platform === "linux" && (!!process.env.WSL_DISTRO_NAME || (() => {
|
|
6736
|
+
try {
|
|
6737
|
+
return readFileSync5("/proc/sys/kernel/osrelease", "utf8").toLowerCase().includes("microsoft");
|
|
6738
|
+
} catch {
|
|
6739
|
+
return false;
|
|
6740
|
+
}
|
|
6741
|
+
})());
|
|
6742
|
+
const [cmd, args] = platform === "darwin" ? ["open", [url]] : platform === "win32" || wsl ? ["cmd.exe", ["/c", "start", "", url]] : ["xdg-open", [url]];
|
|
6736
6743
|
try {
|
|
6737
6744
|
const child = spawn5(cmd, args, {
|
|
6738
6745
|
stdio: "ignore",
|
|
@@ -8872,7 +8879,7 @@ var CLI_VERSION;
|
|
|
8872
8879
|
var init_version = __esm({
|
|
8873
8880
|
"src/version.ts"() {
|
|
8874
8881
|
"use strict";
|
|
8875
|
-
CLI_VERSION = true ? "1.36.
|
|
8882
|
+
CLI_VERSION = true ? "1.36.8" : "dev";
|
|
8876
8883
|
}
|
|
8877
8884
|
});
|
|
8878
8885
|
|