Skip to content

Commit 514eeaa

Browse files
ochafikclaude
andcommitted
chore: add debug logging to setup-bun script
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 12643d8 commit 514eeaa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/setup-bun.mjs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,18 @@ const platformPackages = {
5252

5353
function findBunBinary() {
5454
const packages = platformPackages[os]?.[arch] || [];
55+
console.log(
56+
`Looking for bun packages: ${packages.join(", ") || "(none for this platform)"}`,
57+
);
5558

5659
for (const pkg of packages) {
5760
const binPath = join(nodeModules, "@oven", pkg, "bin", bunExe);
61+
console.log(` Checking: ${binPath}`);
5862
if (existsSync(binPath)) {
59-
console.log(`Found bun at: ${binPath}`);
63+
console.log(` Found bun at: ${binPath}`);
6064
return binPath;
65+
} else {
66+
console.log(` Not found`);
6167
}
6268
}
6369

@@ -177,7 +183,9 @@ function setupBinLink(bunPath) {
177183
}
178184

179185
async function main() {
180-
console.log(`Setting up bun for ${os} ${arch}...`);
186+
console.log(`[setup-bun] Setting up bun for ${os} ${arch}...`);
187+
console.log(`[setup-bun] Project root: ${projectRoot}`);
188+
console.log(`[setup-bun] Node modules: ${nodeModules}`);
181189

182190
let bunPath = findBunBinary();
183191

0 commit comments

Comments
 (0)