Skip to content

Commit

Permalink
fix: Fix formatting of #25 contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
t1mmen committed Jan 6, 2025
1 parent 9006417 commit 73b9e74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/registerTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import { loadBuildLog } from './loadBuildLog.js';
import { saveBuildLog } from './saveBuildLog.js';

export async function registerTemplate(templatePath: string, baseDir: string): Promise<void> {
const config = await getConfig(baseDir);
const config = await getConfig();

// Try multiple path resolutions
const pathsToTry = [
path.join(baseDir, config.templateDir, templatePath), // In templates dir
path.resolve(templatePath),
path.resolve(baseDir, templatePath),
path.join(baseDir, templatePath),
];

let resolvedPath: string | null = null;
Expand Down

0 comments on commit 73b9e74

Please sign in to comment.