# withBunPackageInstallation

- Module: [CommunityToolkit.Aspire.Hosting.Bun](/reference/api/typescript/communitytoolkit.aspire.hosting.bun.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Ensures the Bun packages are installed before the application starts using Bun as the package manager.

## Definition

```typescript
interface BunAppResource {
  // ... omitted for brevity
  withBunPackageInstallation(): BunAppResource
}
```

## Returns

[BunAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bun/bunappresource.md) `builder`

## Applies to

- [BunAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bun/bunappresource.md)
