src/tsconfig/build-graph
Interfaces
| Interface | Description |
|---|---|
| BuildReferenceGraphResult | - |
| ReferenceGraphNode | - |
Type Aliases
| Type Alias | Description |
|---|---|
| ReferenceGraph | Package-level project-reference graph. Keys are workspace package names that participate in typecheck. |
Functions
| Function | Description |
|---|---|
| applyCompositionRootReferences | Packages may declare safImports.compositionRoot in package.json to union additional project references beyond workspace dependencies (e.g. a monolith composition root that must reference every sibling service package). |
| buildReferenceGraph | Build a package-level TypeScript project-reference graph from workspace dependencies. Only packages with a typecheckable tsconfig.json become nodes; edges to packages without a tsconfig are dropped. |
| isGitIgnoredPackageDirectory | Workspace members that exist on disk but are gitignored (e.g. saflib's product-init deploy/) are absent in CI. Skip them so local generate/check matches a clean checkout. |
| listGitIgnoredPackageDirectories | Batch git check-ignore for many package dirs under one repo root. Returns absolute paths that are ignored. One spawn instead of one per package. |
| workspaceDepsOf | Collect workspace package names listed in dependencies only. Dev dependencies (test harnesses, vitest, playwright, etc.) are omitted — they are not installed in production Docker builds and must not become composite project references. |