From 58a852c06dc84544e7baeba5557239b5c3763df2 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Mon, 4 Dec 2023 17:02:53 +0700 Subject: [PATCH] fix: only use community path for community templates --- templates/index.ts | 2 +- templates/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.ts b/templates/index.ts index 40102304..6063e411 100644 --- a/templates/index.ts +++ b/templates/index.ts @@ -326,7 +326,7 @@ export const installTemplate = async ( ) => { process.chdir(props.root); - if (props.communityProjectPath) { + if (props.template === "community" && props.communityProjectPath) { await installCommunityProject(props); return; } diff --git a/templates/types.ts b/templates/types.ts index bcdd37cd..b6ff2f83 100644 --- a/templates/types.ts +++ b/templates/types.ts @@ -1,6 +1,6 @@ import { PackageManager } from "../helpers/get-pkg-manager"; -export type TemplateType = "simple" | "streaming"; +export type TemplateType = "simple" | "streaming" | "community"; export type TemplateFramework = "nextjs" | "express" | "fastapi"; export type TemplateEngine = "simple" | "context"; export type TemplateUI = "html" | "shadcn"; -- GitLab