From a630b3963709fd9f0da7a2845ca5f989bfb12c22 Mon Sep 17 00:00:00 2001
From: Marcus Schiesser <mail@marcusschiesser.de>
Date: Fri, 2 Feb 2024 15:34:46 +0700
Subject: [PATCH] fix: upgrade ncc to fix template lookup

---
 package.json | 2 +-
 questions.ts | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index bc99d0ee..65a4cd91 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
     "@types/prompts": "2.0.1",
     "@types/tar": "6.1.5",
     "@types/validate-npm-package-name": "3.0.0",
-    "@vercel/ncc": "0.34.0",
+    "@vercel/ncc": "0.38.1",
     "async-retry": "1.3.1",
     "async-sema": "3.0.1",
     "ci-info": "github:watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
diff --git a/questions.ts b/questions.ts
index dc42fa06..0e671184 100644
--- a/questions.ts
+++ b/questions.ts
@@ -7,6 +7,7 @@ import prompts from "prompts";
 import { InstallAppArgs } from "./create-app";
 import { TemplateDataSourceType, TemplateFramework } from "./helpers";
 import { COMMUNITY_OWNER, COMMUNITY_REPO } from "./helpers/constant";
+import { templatesDir } from "./helpers/dir";
 import { getAvailableLlamapackOptions } from "./helpers/llama-pack";
 import { getRepoRootFolders } from "./helpers/repo";
 
@@ -89,7 +90,7 @@ const getVectorDbChoices = (framework: TemplateFramework) => {
   ];
 
   const vectordbLang = framework === "fastapi" ? "python" : "typescript";
-  const compPath = path.join(__dirname, "..", "templates", "components");
+  const compPath = path.join(templatesDir, "components");
   const vectordbPath = path.join(compPath, "vectordbs", vectordbLang);
 
   const availableChoices = fs
-- 
GitLab