const fs = require('fs') const process = require('process') const path = require('path') const notesSymlink = path.join(process.cwd(), 'src/notes') if (!fs.existsSync(notesSymlink)) { fs.symlinkSync( path.join(process.cwd(), '../content/notes'), notesSymlink, 'junction' ) }