Skip to content

@saflib/imports


src/tsconfig/build-graph

Interfaces

InterfaceDescription
BuildReferenceGraphResult-
ReferenceGraphNode-

Type Aliases

Type AliasDescription
ReferenceGraphPackage-level project-reference graph. Keys are workspace package names that participate in typecheck.

Functions

FunctionDescription
applyCompositionRootReferencesPackages 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).
buildReferenceGraphBuild 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.
isGitIgnoredPackageDirectoryWorkspace 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.
listGitIgnoredPackageDirectoriesBatch git check-ignore for many package dirs under one repo root. Returns absolute paths that are ignored. One spawn instead of one per package.
workspaceDepsOfCollect 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.