feat(node): re-write using node
This commit is contained in:
9
lib/config.js
Normal file
9
lib/config.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import path from 'path'
|
||||
import { read } from './yaml.js'
|
||||
|
||||
export default function (dirname) {
|
||||
return {
|
||||
basedir: dirname,
|
||||
...read(path.join(dirname, 'config.yaml'))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user