Skip to content
Snippets Groups Projects
Commit 4a7ac651 authored by Marcus Schiesser's avatar Marcus Schiesser
Browse files

fix: not finding templates path

parent 0f64084c
No related branches found
No related tags found
No related merge requests found
......@@ -11,5 +11,8 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
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");
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment