fix: 错误系统重构、消除静默吞错、update 修复、文档同步
This commit is contained in:
@@ -8,6 +8,7 @@ export function inferFromEnvironment(
|
||||
): string | null {
|
||||
if (execPath.includes("bun")) return "bunx @lanyuanxiaoyao/rune";
|
||||
if (userAgent?.includes("pnpm")) return "pnpx @lanyuanxiaoyao/rune";
|
||||
if (userAgent?.includes("yarn")) return "yarn dlx @lanyuanxiaoyao/rune";
|
||||
if (userAgent?.includes("npm")) return "npx @lanyuanxiaoyao/rune";
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user