docs(specs): fix write-examples-json repoRoot depth for scripts/

Made-with: Cursor
This commit is contained in:
zuiidea
2026-04-14 22:28:36 +08:00
parent 02150a61a7
commit 9b8fd96a7a
@@ -171,7 +171,8 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(__dirname, "../..");
/** From `packages/create/scripts/`, three levels up = monorepo root. */
const repoRoot = path.resolve(__dirname, "../../..");
const appsDir = path.join(repoRoot, "apps");
const outFile = path.resolve(__dirname, "../dist/examples.json");