From 38f448852359f87532029b994b7d728296ee5e00 Mon Sep 17 00:00:00 2001 From: "moxey.eth" Date: Tue, 20 Feb 2024 15:01:38 +1100 Subject: [PATCH] fix: paths --- create-farc/create.ts | 2 +- create-farc/utils/getTemplates.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/create-farc/create.ts b/create-farc/create.ts index 91cadc83..6c82437d 100644 --- a/create-farc/create.ts +++ b/create-farc/create.ts @@ -39,7 +39,7 @@ export async function create(params: CreateParameters) { const templateDir = resolve( import.meta.dirname, - `../../templates/${templateName}`, + `../templates/${templateName}`, ) const gitignore = fs diff --git a/create-farc/utils/getTemplates.ts b/create-farc/utils/getTemplates.ts index 2220599f..5f3f48b2 100644 --- a/create-farc/utils/getTemplates.ts +++ b/create-farc/utils/getTemplates.ts @@ -2,5 +2,5 @@ import { resolve } from 'node:path' import { default as fs } from 'fs-extra' export function getTemplates() { - return fs.readdirSync(resolve(import.meta.dirname, '../../../templates')) + return fs.readdirSync(resolve(import.meta.dirname, '../../templates')) }