# createProjectForDir

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts#L562)

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

| Name | Type |
|---|---|
| `rootDir` | `string` |

**Returns:** `Project`
