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
4 changes: 3 additions & 1 deletion cli/commands/dev/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ export async function handleDevCommand(args: ParsedArgs): Promise<void> {
// Clear stale ESM caches to prevent module resolution issues from previous runs
await clearAllLocalCaches();

await devCommand({
const { done } = await devCommand({
port: opts.port,
projectDir,
hmr: opts.hmr,
});

await done;
}
5 changes: 5 additions & 0 deletions cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ const args = getArgs();
const { parseCliArgs } = await import("./shared/args.ts");
const { routeCommand } = await import("./router.ts");
await routeCommand(parseCliArgs(args));

// Exit cleanly after one-shot commands. Long-running commands (dev, start, mcp)
// never return from routeCommand, so this only runs for commands like deploy, push, init, build.
const { exitProcess } = await import("./utils/index.ts");
exitProcess(0);
Comment thread
kojiwakayama marked this conversation as resolved.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "veryfront",
"version": "0.1.12",
"version": "0.1.13",
"nodeModulesDir": "auto",
"exclude": [
"npm/",
Expand Down