From 9fb6d61e59312afe9769e3fc7d294cafda09b7b3 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Fri, 2 Feb 2024 10:56:03 +0700 Subject: [PATCH] fix: not finding templates path --- helpers/dir.ts | 8 +------- package.json | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/helpers/dir.ts b/helpers/dir.ts index 08c2fe8f..31ded64c 100644 --- a/helpers/dir.ts +++ b/helpers/dir.ts @@ -1,9 +1,3 @@ import path from "path"; -import { fileURLToPath } from "url"; -export const templatesDir = path.join( - fileURLToPath(import.meta.url), - "..", - "..", - "templates", -); +export const templatesDir = path.join(__dirname, "..", "templates"); diff --git a/package.json b/package.json index 5f6c7599..c8964714 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "create-llama": "./dist/index.js" }, "files": [ - "dist/index.js", - "./templates" + "dist" ], "scripts": { "clean": "rimraf --glob ./dist ./templates/**/__pycache__ ./templates/**/node_modules ./templates/**/poetry.lock", -- GitLab