Skip to content

fix(scripts): exempt tooling configs from the mobile reachability walk - #1868

Closed
h4yfans wants to merge 1 commit into
mainfrom
fix-mobile-arch-gate
Closed

fix(scripts): exempt tooling configs from the mobile reachability walk#1868
h4yfans wants to merge 1 commit into
mainfrom
fix-mobile-arch-gate

Conversation

@h4yfans

@h4yfans h4yfans commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

check:architecture is red on current main:

- apps/mobile/vitest.config.ts -> node:url (node builtin reachable from apps/mobile)

pnpm typecheck runs the check, so every branch cut from main fails it. The mobile reachability rule (spec 001-mobile-app T003) guards the app's runtime import graph; a vitest config runs under node by definition and was only picked up because the walk skips test files but not tool configs. This skips *.config.{ts,js,mjs,cjs} in walkMobileSources, next to the existing test-file skip.

Verified: node scripts/check-architecture-boundaries.js fails on main, passes with this change; no other walk sites touched.

apps/mobile/vitest.config.ts imports node:url, which the mobile
reachability rule flags as a node builtin reachable from apps/mobile —
failing check:architecture (and with it pnpm typecheck) on main for
every branch. Tooling configs run under node by definition; the rule
exists for the app's runtime import graph. Skip *.config.{ts,js,mjs,cjs}
in walkMobileSources, the same way test files are already skipped.
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@h4yfans

h4yfans commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

main independently landed the same tooling-config exemption; rebasing onto main leaves zero diff, so closing as redundant.

@h4yfans h4yfans closed this Sep 2, 2026
@h4yfans
h4yfans deleted the fix-mobile-arch-gate branch September 2, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant