# Package context

```ts
const PackageContext: ComponentContext<PackageContext>
```

## Accessor

```ts
import { usePackage } from "@alloy-js/core";


const myContext = usePackage();
```

## Context interface

|               |                                               |                                                        |
| ------------- | --------------------------------------------- | ------------------------------------------------------ |
| outFileMapper | Ref<(path: string) => string>                 | A ref for a function that maps a ts file to a JS file. |
| scope         | [TSPackageScope](../../types/tspackagescope/) |                                                        |
