Merge pull request #632 from kiyeonjeon21/fix/cli-bun-command-hints

fix(cli): use bun in command hints
This commit is contained in:
James Russo
2026-05-06 17:22:02 -07:00
committed by GitHub
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -25,7 +25,7 @@ export default defineCommand({
// Resolve runtime path — same logic as studioServer.ts // Resolve runtime path — same logic as studioServer.ts
const runtimePath = resolveRuntimePath(); const runtimePath = resolveRuntimePath();
if (!runtimePath) { if (!runtimePath) {
clack.log.error("HyperFrames runtime not found. Run `pnpm build` first."); clack.log.error("HyperFrames runtime not found. Run `bun run build` first.");
process.exitCode = 1; process.exitCode = 1;
return; return;
} }
@@ -33,7 +33,9 @@ export default defineCommand({
// Resolve player path // Resolve player path
const playerPath = resolvePlayerPath(); const playerPath = resolvePlayerPath();
if (!playerPath) { if (!playerPath) {
clack.log.error("@hyperframes/player not found. Run `pnpm build` in packages/player first."); clack.log.error(
"@hyperframes/player not found. Run `bun run --cwd packages/player build` first.",
);
process.exitCode = 1; process.exitCode = 1;
return; return;
} }
+3 -3
View File
@@ -115,7 +115,7 @@ export default defineCommand({
}); });
/** /**
* Dev mode: spawn pnpm studio from the monorepo (existing behavior). * Dev mode: spawn the studio dev server from the monorepo.
*/ */
async function runDevMode(dir: string, projectName?: string): Promise<void> { async function runDevMode(dir: string, projectName?: string): Promise<void> {
// Find monorepo root by navigating from packages/cli/src/commands/ // Find monorepo root by navigating from packages/cli/src/commands/
@@ -159,7 +159,7 @@ async function runDevMode(dir: string, projectName?: string): Promise<void> {
// Run the new consolidated studio (single Vite dev server with API plugin) // Run the new consolidated studio (single Vite dev server with API plugin)
const studioPkgDir = join(repoRoot, "packages", "studio"); const studioPkgDir = join(repoRoot, "packages", "studio");
const child = spawn("pnpm", ["exec", "vite"], { const child = spawn("bun", ["run", "dev"], {
cwd: studioPkgDir, cwd: studioPkgDir,
stdio: ["ignore", "pipe", "pipe"], stdio: ["ignore", "pipe", "pipe"],
}); });
@@ -335,7 +335,7 @@ async function runEmbeddedMode(
console.error(` ${c.dim("-")} ${checkedPath}`); console.error(` ${c.dim("-")} ${checkedPath}`);
} }
console.error(); console.error();
console.error(` ${c.dim("Rebuild the CLI package with")} ${c.accent("pnpm run build")}`); console.error(` ${c.dim("Rebuild the CLI package with")} ${c.accent("bun run build")}`);
console.error(); console.error();
process.exitCode = 1; process.exitCode = 1;
return; return;
+1 -1
View File
@@ -423,7 +423,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
<main> <main>
<h1>Studio bundle missing</h1> <h1>Studio bundle missing</h1>
<p>The preview server started, but this CLI build does not contain the Studio assets.</p> <p>The preview server started, but this CLI build does not contain the Studio assets.</p>
<code>pnpm run build</code> <code>bun run build</code>
</main> </main>
</body> </body>
</html>`, </html>`,