diff --git a/helpers/dir.ts b/helpers/dir.ts index 08c2fe8fe84516f8dd7e059a8ee93213465ed10d..31ded64cf3ac6ec88f89fcb582859a6eaf8422c0 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 5f6c7599b1b824cad0e5867805fab5f8d3b5e2b3..c8964714a80bf297b4094ea005c57fa829f840be 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",