directus-main — system architecture
Every dependency below was checked against the real Directus project's actual package.json fields
before anything was built, not assumed from what a package's name sounds like it should need. That's how
packages/constants — not packages/types — turned out to be the actual zero-dependency
leaf. See Auth & Request Flow for how app/ actually uses these
packages at runtime.
packages/constants + packages/errors
PERMISSION_ACTIONS, LOCAL_AUTH_DRIVER, and a real DirectusError class
hierarchy
packages/system-data
types.ts surface: filters, permissions,
collection/field/relation metadata
expectTypeOf), so 0/0 runtime coverage is correct by design, not a gappackages/stores
@directus/constants for real, wired RBAC/auth-driver vocabularypackages/utils
toBoolean/toArray done so far, 2 of a real 61-function scope@directus/constants + @directus/system-data — the first package here to
depend on another real package
app/
vue-router, routed and styled@directus/storesapi/
POST /auth/login, reusing @directus/errors@directus/errors — never needed @directus/stores at all
Real CI bug, found and fixed: the workflow originally ran Lint/Test
before Build. That passed locally (where a previous yarn build had already left
dist/ on disk) but failed on a fresh CI checkout, because packages/stores importing from
@directus/constants resolves against dist/index.js — which doesn't exist until
Build runs. Fixed by moving Build right after Format, and verified by
deleting all local dist/ output and re-running the full suite in the new order before trusting it.