@getmonoceros/workbench 1.36.7 → 1.36.9
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 +10 -2
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -6732,7 +6732,15 @@ 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 psOpen = `Start-Process '${url.replace(/'/g, "''")}'`;
|
|
6743
|
+
const [cmd, args] = platform === "darwin" ? ["open", [url]] : platform === "win32" || wsl ? ["powershell.exe", ["-NoProfile", "-Command", psOpen]] : ["xdg-open", [url]];
|
|
6736
6744
|
try {
|
|
6737
6745
|
const child = spawn5(cmd, args, {
|
|
6738
6746
|
stdio: "ignore",
|
|
@@ -8872,7 +8880,7 @@ var CLI_VERSION;
|
|
|
8872
8880
|
var init_version = __esm({
|
|
8873
8881
|
"src/version.ts"() {
|
|
8874
8882
|
"use strict";
|
|
8875
|
-
CLI_VERSION = true ? "1.36.
|
|
8883
|
+
CLI_VERSION = true ? "1.36.9" : "dev";
|
|
8876
8884
|
}
|
|
8877
8885
|
});
|
|
8878
8886
|
|