docs(repo): batch 86 (11 files)

This commit is contained in:
YeonGyu-Kim
2026-05-30 19:12:15 +09:00
parent 43383342d4
commit 166a6f42f6
11 changed files with 267 additions and 105 deletions
+6 -2
View File
@@ -3,7 +3,11 @@
import { readFileSync } from "node:fs";
import { createRequire } from "node:module";
import { getPlatformPackageCandidates, getBinaryPath } from "./bin/platform.js";
import {
getPlatformPackageCandidates,
getBinaryPath,
resolvePlatformPackageBaseName,
} from "./bin/platform.js";
const require = createRequire(import.meta.url);
@@ -80,7 +84,7 @@ function getLibcFamily() {
function getPackageBaseName() {
try {
const packageJson = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8"));
return packageJson.name || "oh-my-opencode";
return resolvePlatformPackageBaseName(packageJson.name || "oh-my-opencode");
} catch {
return "oh-my-opencode";
}