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 @@ ...@@ -11,5 +11,8 @@
}, },
"[jsonc]": { "[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
} }
} }
import path from "path"; import path from "path";
import { fileURLToPath } from "url";
export const templatesDir = path.join( export const templatesDir = path.join(__dirname, "..", "templates");
fileURLToPath(import.meta.url),
"..",
"..",
"templates",
);
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
"create-llama": "./dist/index.js" "create-llama": "./dist/index.js"
}, },
"files": [ "files": [
"dist/index.js", "dist"
"./templates"
], ],
"scripts": { "scripts": {
"clean": "rimraf --glob ./dist ./templates/**/__pycache__ ./templates/**/node_modules ./templates/**/poetry.lock", "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