[Barrel #59 Phase 2] Migrate 117 src/app/ files from localDb barrel to direct db/ imports - #11789
Closed
jonlwheat2-gif wants to merge 1 commit into
Closed
Conversation
… db/ imports Phase 2 of Issue #59: replace all barrel imports from @/lib/localDb with direct imports to the specific db/ modules in src/app/. 117 files changed, 268 insertions, 235 deletions. Zero barrel imports remain in src/app/.
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.
Part of #11782 (tracks #59 on the fork)
Summary
Phase 2 of Issue #59: replace all barrel imports from
@/lib/localDbwith direct imports to the specificdb/modules insrc/app/.117 files changed, 268 insertions, 235 deletions. Zero barrel imports remain in
src/app/.What this does
Every
import { ... } from "@/lib/localDb"insrc/app/has been rewritten to point directly at the owningdb/module:Aliased exports are preserved:
Why
localDb.ts— import specificdb/modules instead"bundle-barrel-imports: "Import directly, avoid barrel files"Testing
no-restricted-imports(already ineslint.config.mjs) will prevent regressionsrg -c "from.*@/lib/localDb" src/app/ --type tsreturns 0 after this changeDependencies
This PR targets
release/v3.8.51. It should be merged before Phase 5 (barrel deletion).