mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Squash merge beta into main
This commit is contained in:
@@ -1,23 +1,9 @@
|
||||
import path from "node:path";
|
||||
import fs from "fs-extra";
|
||||
import { PKG_ROOT } from "../constants";
|
||||
import type {
|
||||
ProjectBackend,
|
||||
ProjectConfig,
|
||||
ProjectFrontend,
|
||||
ProjectOrm,
|
||||
} from "../types";
|
||||
import type { ProjectConfig } from "../types";
|
||||
import { addPackageDependency } from "../utils/add-package-deps";
|
||||
|
||||
export async function setupExamples(config: ProjectConfig): Promise<void> {
|
||||
const {
|
||||
projectName,
|
||||
examples,
|
||||
orm,
|
||||
auth,
|
||||
backend,
|
||||
frontend = ["tanstack-router"],
|
||||
} = config;
|
||||
const { projectName, examples } = config;
|
||||
const projectDir = path.resolve(process.cwd(), projectName);
|
||||
|
||||
if (examples.includes("ai")) {
|
||||
|
||||
Reference in New Issue
Block a user