Skip to content

Commit 06e289c

Browse files
cevianclaude
andcommitted
fix: derive monorepoRoot locally in createApp
The monorepoRoot export was removed from config.ts when templates were moved. Derive it locally for dev mode detection. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 76ecb32 commit 06e289c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/cli/mcp/tools/createApp.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ import { existsSync } from "node:fs";
33
import { join } from "node:path";
44
import type { ApiFactory } from "@tigerdata/mcp-boilerplate";
55
import { z } from "zod";
6-
import { monorepoRoot } from "../config.js";
6+
import { packageRoot } from "../config.js";
77
import { writeAppTemplates, create0pflowDirectories } from "../lib/templates.js";
88
import type { ServerContext } from "../types.js";
99

10+
// Monorepo root (only valid in dev mode when running from packages/core)
11+
const monorepoRoot = join(packageRoot, "..", "..");
12+
1013
// Check if running in development mode (monorepo with packages/core exists)
1114
function isDevMode(): boolean {
1215
const corePath = join(monorepoRoot, "packages", "core");

0 commit comments

Comments
 (0)