Skip to content

fix(core): add global config fallback — resolve ~/.dwf when no local .dwf exists#58

Merged
gpolanco merged 1 commit intomainfrom
fix/global-config-resolution
Apr 12, 2026
Merged

fix(core): add global config fallback — resolve ~/.dwf when no local .dwf exists#58
gpolanco merged 1 commit intomainfrom
fix/global-config-resolution

Conversation

@gpolanco
Copy link
Copy Markdown
Owner

Summary

  • Adds shared resolveContext() in core/resolve-context.ts that checks local .dwf/ first, then falls back to ~/.dwf/
  • All commands now use this resolver instead of inline fileExists checks
  • Shows "Running in global mode (~/.dwf)" when using global config
  • Fixes banner test for gray gradient colors (252→240)

Test plan

  • pnpm build && pnpm test — 470 tests pass
  • Run devw doctor from a directory without .dwf/ but with ~/.dwf/ — should use global
  • Run devw doctor from a project with .dwf/ — should use local (takes precedence)
  • Run devw from a directory with neither — should show "No devw configuration found"

🤖 Generated with Claude Code

- Add resolveContext() that checks local .dwf/ first, falls back to ~/.dwf/
- All commands (doctor, add, remove, list, explain, compile, watch) now use shared resolver
- Show "Running in global mode (~/.dwf)" when using global config
- Consistent error message when no config found
- Fix banner test for gray gradient colors (252→240)
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
landing Ready Ready Preview, Comment Apr 12, 2026 5:24pm

@gpolanco gpolanco merged commit 1fa7cb9 into main Apr 12, 2026
3 of 4 checks passed
@gpolanco gpolanco deleted the fix/global-config-resolution branch April 12, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant