Revert "fix(create-basic-tools): correct template path resolution for npx execution"

This reverts commit 96c53ed49a.
This commit is contained in:
Ajax Davis 2025-12-06 01:48:42 +10:00
parent 96c53ed49a
commit b934cd4c64
3 changed files with 2 additions and 12 deletions

View file

@ -27,9 +27,7 @@ export async function copyTemplate(
destPath: string,
replacements?: Record<string, string>
): Promise<void> {
// After tsup compilation, __dirname points to dist/
// Templates are at package root, so we only need to go up one level
const templatePath = path.join(__dirname, '../templates', templateName);
const templatePath = path.join(__dirname, '../../templates', templateName);
let content = await fs.readFile(templatePath, 'utf-8');
// Apply replacements if provided