14 lines
293 B
JavaScript
14 lines
293 B
JavaScript
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'
|
|
)
|
|
}
|