Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 969b3d7

Browse files
author
sw-yx
committed
fix broken templating
1 parent 04f7bc6 commit 969b3d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/functions/create.js

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ async function pickTemplate() {
175175
function formatRegistryArrayForInquirer(lang) {
176176
const folderNames = fs.readdirSync(path.join(templatesDir, lang));
177177
const registry = folderNames
178+
.filter(x => !x.endsWith(".md")) // filter out markdown files
178179
.map(name =>
179180
require(path.join(
180181
templatesDir,

0 commit comments

Comments
 (0)