From 2b356c8613363729850d242080988f09348e6975 Mon Sep 17 00:00:00 2001 From: Alex Yang <himself65@outlook.com> Date: Sun, 14 Jan 2024 18:10:33 -0600 Subject: [PATCH] fix(create-llama): component choice (#377) --- .changeset/new-forks-sin.md | 5 +++++ packages/create-llama/questions.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/new-forks-sin.md diff --git a/.changeset/new-forks-sin.md b/.changeset/new-forks-sin.md new file mode 100644 index 000000000..af0ae78a1 --- /dev/null +++ b/.changeset/new-forks-sin.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +fix: relative path incorrect diff --git a/packages/create-llama/questions.ts b/packages/create-llama/questions.ts index 0694d7afb..ea130e36f 100644 --- a/packages/create-llama/questions.ts +++ b/packages/create-llama/questions.ts @@ -40,7 +40,7 @@ const getVectorDbChoices = (framework: TemplateFramework) => { ]; const vectodbLang = framework === "fastapi" ? "python" : "typescript"; - const compPath = path.join(__dirname, "components"); + const compPath = path.join(__dirname, "..", "templates", "components"); const vectordbPath = path.join(compPath, "vectordbs", vectodbLang); const availableChoices = fs -- GitLab