Skip to content

Commit

Permalink
Fix formatting of available templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jplhomer committed Dec 14, 2022
1 parent e6b74f3 commit 3de07f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/tmp-create-app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const [template] = process.argv.slice(2);
const templates = await fs.readdir(
new URL('./dist/templates', import.meta.url).pathname,
);
console.log(`\nAvailable templates: \n- ${templates.join('\n -')}\n`);
console.log(
`\nAvailable templates: \n- ${templates
.map((t) => new URL(`./dist/templates/${t}`, import.meta.url).pathname)
.join('\n- ')}\n`,
);

const defaultTemplate = new URL('./dist/templates/demo-store', import.meta.url)
.pathname;
Expand Down

0 comments on commit 3de07f8

Please sign in to comment.