Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/cli/src/commands/play.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ export default defineCommand({
// Resolve runtime path — same logic as studioServer.ts
const runtimePath = resolveRuntimePath();
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;
return;
}

// Resolve player path
const playerPath = resolvePlayerPath();
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;
return;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/commands/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
// Find monorepo root by navigating from packages/cli/src/commands/
Expand Down Expand Up @@ -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)
const studioPkgDir = join(repoRoot, "packages", "studio");
const child = spawn("pnpm", ["exec", "vite"], {
const child = spawn("bun", ["run", "dev"], {
cwd: studioPkgDir,
stdio: ["ignore", "pipe", "pipe"],
});
Expand Down Expand Up @@ -335,7 +335,7 @@ async function runEmbeddedMode(
console.error(` ${c.dim("-")} ${checkedPath}`);
}
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();
process.exitCode = 1;
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/server/studioServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export function createStudioServer(options: StudioServerOptions): StudioServer {
<main>
<h1>Studio bundle missing</h1>
<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>
</body>
</html>`,
Expand Down
Loading