mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Fixed OPENCODE_CONFIG_DIR to load config files. (#4400)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
2535f9febf
commit
3c6dcad2af
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ export namespace Config {
|
|||
for (const dir of directories) {
|
||||
await assertValid(dir)
|
||||
|
||||
if (dir.endsWith(".opencode")) {
|
||||
if (dir.endsWith(".opencode") || dir === Flag.OPENCODE_CONFIG_DIR) {
|
||||
for (const file of ["opencode.jsonc", "opencode.json"]) {
|
||||
log.debug(`loading config from ${path.join(dir, file)}`)
|
||||
result = mergeDeep(result, await loadFile(path.join(dir, file)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue