Skip to content

fix: create local config when index dir exists#43

Merged
srobinson merged 1 commit into
mainfrom
fix/init-config-when-dir-exists
Jun 21, 2026
Merged

fix: create local config when index dir exists#43
srobinson merged 1 commit into
mainfrom
fix/init-config-when-dir-exists

Conversation

@srobinson

Copy link
Copy Markdown
Owner

Summary

  • Route mdm init through local config creation when .mdm/ exists but .mdm.toml is missing.
  • Keep the existing no-op behavior when both .mdm/ and .mdm.toml already exist.
  • Add regression coverage for the missing-config rough edge and the both-exist no-op case.

Test plan

  • Added failing regression before implementation.
  • npx --yes pnpm@10.28.0 check
  • npx --yes pnpm@10.28.0 build
  • npx --yes pnpm@10.28.0 test
  • Manual smoke: pre-create .mdm/ without .mdm.toml, run mdm init --local --yes, verify Created .mdm.toml and file exists.

@srobinson srobinson merged commit a1682d6 into main Jun 21, 2026
8 checks passed
@srobinson srobinson deleted the fix/init-config-when-dir-exists branch June 21, 2026 14:22
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