chore: fix typo

This commit is contained in:
Ahmad Al Maaz 2021-07-04 19:23:33 +03:00
parent 5d68b47bac
commit 3fe3b03e3c

View File

@ -32,7 +32,7 @@ inquirer
type: 'input',
},
{
name: 'extention',
name: 'extension',
message: 'Choose post extension:',
type: 'list',
choices: ['mdx', 'md'],
@ -63,7 +63,7 @@ inquirer
.replace(/-+/g, '-')
const frontMatter = genFrontMatter(answers)
const filePath = `data/blog/${fileName ? fileName : 'untitled'}.${
answers.extention ? answers.extention : 'md'
answers.extension ? answers.extension : 'md'
}`
fs.writeFile(filePath, frontMatter, { flag: 'wx' }, (err) => {
if (err) {