# Packages folder

URL: /code/project-structure/packages-folder · Id: `convention:packages-folder`

> The packages folder holds only code that must be code, shared across the Studio's Startups as pnpm packages.

The packages folder holds only code that must be code, shared across the [Studio](/business/nouns/studio)'s [Startups](/business/nouns/startup) as pnpm packages.

| Property | Value |
| --- | --- |
| Path | `packages/` |
| Holds | [Implementation](/business/nouns/implementation) |
| Kind | folder |
| Leaders | git-first |
| Team | [Engineering Team](/agents/engineering) |
| Written by | [Change.merge](/business/nouns/change/merge) |
| Compiled by | [SoftwareBuilder](/code/builders/software) |

### Example
`packages/business-days/index.ts` in a Startup repository.

```ts title="packages/business-days/index.ts"
/** The nth business day of a month, skipping weekends. */
export function businessDay(year: number, month: number, n: number): Date {
  const day = new Date(Date.UTC(year, month, 1))
  let count = 0
  while (true) {
    const weekday = day.getUTCDay()
    if (weekday !== 0 && weekday !== 6 && ++count === n) return day
    day.setUTCDate(day.getUTCDate() + 1)
  }
}
```

### Generates
[SoftwareBuilder](/code/builders/software) compiles it into these records, Verbs and routes.

| Kind | What |
| --- | --- |
| Records | [Implementation](/business/nouns/implementation) |
| Verbs | None. |
| Routes | None. |