Skip to content

Standardize config path to ~/.config/nemar/ - #272

Merged
neuromechanist merged 2 commits into
devfrom
fix/269-config-path
Mar 10, 2026
Merged

neuromechanist merged 2 commits into
devfrom
fix/269-config-path

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Force config to ~/.config/nemar/config.json on all platforms instead of OS-native paths (macOS was using ~/Library/Preferences/nemar-nodejs/)
  • Automatically migrates existing config on first run
  • Migration skipped when NEMAR_CONFIG_DIR env var is set (test isolation)

Test plan

  • Build passes
  • All 624 tests pass (only pre-existing manifest test failure)
  • CLI auth tests pass with isolated config
  • Verify migration works: remove ~/.config/nemar/config.json, run nemar auth status, confirm config is migrated from old path

Closes #269

@github-actions

github-actions Bot commented Mar 9, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR272

Version: 0.7.16-PR272.4588046
Commit: 4588046


🤖 Updated on each push.

Force config to ~/.config/nemar/config.json on all platforms
instead of OS-native paths. Migrates existing config on first run.
Migration skipped when NEMAR_CONFIG_DIR is set (test isolation).

Closes #269
@neuromechanist
neuromechanist merged commit c00de0f into dev Mar 10, 2026
1 check passed
@neuromechanist
neuromechanist deleted the fix/269-config-path branch March 10, 2026 01:52
@neuromechanist neuromechanist mentioned this pull request Mar 10, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
npm — 931a84cf Deployed Mar 10, 2026 by neuromechanist via publish #461
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