✏️ Updates "defintion" to "definition" in CONTRIBUTING docs and create-empty-definitions util (#285)

Co-authored-by: Manny Becerra <mannybecerra@users.noreply.github.com>
This commit is contained in:
Manny Becerra
2020-08-29 14:14:44 -07:00
committed by GitHub
parent 7df23a427c
commit 56abe606a8
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ import { promisify } from 'util';
const writeFile = promisify(fs.writeFile);
import { words } from './undefined-words';
const defintionPath = path.resolve(process.cwd(), '11ty/definitions/');
const definitionPath = path.resolve(process.cwd(), '11ty/definitions/');
const template = `
---
@ -29,7 +29,7 @@ export function createDefinitions() {
.trim();
try {
await writeFile(`${defintionPath}/${slug}.md`, content, 'utf8');
await writeFile(`${definitionPath}/${slug}.md`, content, 'utf8');
} catch (e) {
console.error(e);