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,4 +1,5 @@
|
||||
import path from "node:path";
|
||||
import consola from "consola";
|
||||
import fs from "fs-extra";
|
||||
import handlebars from "handlebars";
|
||||
import type { ProjectConfig } from "../types";
|
||||
@@ -22,7 +23,7 @@ export async function processTemplate(
|
||||
await fs.ensureDir(path.dirname(destPath));
|
||||
await fs.writeFile(destPath, processedContent);
|
||||
} catch (error) {
|
||||
console.error(`Error processing template ${srcPath}:`, error);
|
||||
consola.error(`Error processing template ${srcPath}:`, error);
|
||||
throw new Error(`Failed to process template ${srcPath}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user