Skip to content

createProjectForDir

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts

Build a ts-morph Project for a repo dir. Uses the nearest tsconfig for compiler options (type resolution fidelity) but ALWAYS adds source files by glob — solution-style tsconfigs (include: [] + project references, as Nx apps use) would otherwise load zero files.

Signature

ts
function createProjectForDir(rootDir: string): Project

Parameters

NameType
rootDirstring

Returns: Project

Was this page helpful?

Download as PDF