mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 19:55:11 +00:00
chore: generate
This commit is contained in:
parent
1893473148
commit
4b878f6aeb
1 changed files with 1 additions and 6 deletions
|
|
@ -1251,12 +1251,7 @@ export namespace Config {
|
|||
return load(text, { path: filepath })
|
||||
}
|
||||
|
||||
async function load(
|
||||
text: string,
|
||||
options:
|
||||
| { path: string }
|
||||
| { dir: string; source: string },
|
||||
) {
|
||||
async function load(text: string, options: { path: string } | { dir: string; source: string }) {
|
||||
const original = text
|
||||
const configDir = "path" in options ? path.dirname(options.path) : options.dir
|
||||
const source = "path" in options ? options.path : options.source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue