feat: move data directory to hidden .erd-studio folder#47
Merged
Conversation
Renames the default data directory convention from erd-studio/ to .erd-studio/, following the dot-folder convention common for tool config/state directories. - Default semanticDir setting and all hardcoded fallbacks -> .erd-studio - Custom editor keeps a legacy **/erd-studio/*/*.json selector so existing projects still open (users can also pin dbtSemantic.semanticDir to "erd-studio") - FileWatcherService now derives its watch globs from the configured semanticDir instead of hardcoding them - HARNESS_VERSION bumped 14 -> 15; SCHEMA_CONTENT, generators, and regenerated fixture harness files use the new paths - mcp-server SEMANTIC_DIR, fixtures (git mv), tests, docs, and forge-app placeholders updated Package/marketplace identity (erd-studio, liamwynne.erd-studio) and the .claude/skills/erd-studio/ skill path are unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames the default data-directory convention from
erd-studio/to.erd-studio/, following the dot-folder convention common for tool config/state directories (.github/,.vscode/,.dbt/, etc.).What changed
dbtSemantic.semanticDirsetting default and every hardcoded'erd-studio'fallback insrc/andmcp-server/is now'.erd-studio'**/.erd-studio/*/*.jsonselector added; the legacy**/erd-studio/*/*.jsonselector is kept so existing projects still open without migrationSemanticFileDecorationProviderregex matches botherd-studio/and.erd-studio/pathsFileWatcherServicenow takes the configuredsemanticDirand builds its globs from it, fixing the pre-existing hardcoded-glob wartSCHEMA_CONTENTand all generators updated to.erd-studio/paths;HARNESS_VERSIONbumped14 → 15, so installed harness files will be flagged stale and users prompted to update on next activationgit mv'd to.erd-studio/; generated skill files regenerated at version 15What did NOT change
Package name
erd-studio, marketplace IDliamwynne.erd-studio, repo URLs,erd-studio-mcp, the.claude/skills/erd-studio/skill install path, and all legacydbtSemantic.*identifiers.Backward compatibility
Existing users with an
erd-studio/folder can either rename it to.erd-studio/or set"dbtSemantic.semanticDir": "erd-studio"— the legacy editor selector and decoration regex keep both working.Verification
npm run compile— clean (both tsconfigs)npm run build— cleannpm run test— 364/364 passing (17 files)erd-studiohits are package/marketplace/skill identity🤖 Generated with Claude Code