diff --git a/examples/src/llm/schema-recursive-gemini.ts b/examples/src/llm/schema-recursive-gemini.ts index 00e8036301..1375ad8738 100644 --- a/examples/src/llm/schema-recursive-gemini.ts +++ b/examples/src/llm/schema-recursive-gemini.ts @@ -1,6 +1,6 @@ import typia, { tags } from "typia"; -typia.llm.schema(); +typia.llm.schema({}); interface IDepartment { id: string & tags.Format<"uuid">; diff --git a/website/src/components/internal/getLocalSourceFile.ts b/website/src/components/internal/getLocalSourceFile.ts index 8caf4147f5..594f98ba86 100644 --- a/website/src/components/internal/getLocalSourceFile.ts +++ b/website/src/components/internal/getLocalSourceFile.ts @@ -1,5 +1,6 @@ import cp from "child_process"; import fs from "fs"; +import path from "path"; import { Singleton, VariadicSingleton } from "tstl"; export function getLocalSourceFile(location: string): Promise { @@ -16,7 +17,7 @@ const loader = new VariadicSingleton(async (location: string) => { }); const root = new Singleton(async () => { - let cwd: string = `${__dirname}/..`; + let cwd: string = `${__dirname}/../..`; while (true) { cwd += "/.."; if (fs.existsSync(`${cwd}/package.json`) === false) continue; @@ -25,7 +26,7 @@ const root = new Singleton(async () => { ); if (name === "typia") break; } - return cwd; + return path.resolve(cwd); }); const examples = new Singleton(async () => {