chore: generate
This commit is contained in:
@@ -1251,12 +1251,7 @@ export namespace Config {
|
|||||||
return load(text, { path: filepath })
|
return load(text, { path: filepath })
|
||||||
}
|
}
|
||||||
|
|
||||||
async function load(
|
async function load(text: string, options: { path: string } | { dir: string; source: string }) {
|
||||||
text: string,
|
|
||||||
options:
|
|
||||||
| { path: string }
|
|
||||||
| { dir: string; source: string },
|
|
||||||
) {
|
|
||||||
const original = text
|
const original = text
|
||||||
const configDir = "path" in options ? path.dirname(options.path) : options.dir
|
const configDir = "path" in options ? path.dirname(options.path) : options.dir
|
||||||
const source = "path" in options ? options.path : options.source
|
const source = "path" in options ? options.path : options.source
|
||||||
|
|||||||
Reference in New Issue
Block a user