mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
✏️ 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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user