# runtime-build package

TypeScript apps use the [`@journeyapps/runtime-build`](https://www.npmjs.com/package/@journeyapps/runtime-build) package to evaluate types when building an app. This happens as part of a deploy:

<figure><img src="https://2865107717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9TCHLR67eLHBOjPvHhud%2Fuploads%2Ftts6sWvScoupEhbh7m1E%2FScreenshot%202022-11-03%20at%202.20.05%20PM.png?alt=media&#x26;token=3c9d6706-7be1-45dc-b8a7-e40dce3c4ee7" alt=""><figcaption></figcaption></figure>

The `@journeyapps/runtime-build` package is updated periodically - typically when new features are added to the JourneyApps Runtime or when type definitions are updated. The latest available version can be seen on [our npmjs page](https://www.npmjs.com/package/@journeyapps/runtime-build).

When upgrading your app's [Runtime version](https://docs.journeyapps.com/reference/app-features/app-runtime-and-container-updates#overview) it is recommended to also update your app's `@journeyapps/runtime-build` version:

### How to update your app's `runtime-build` version

This version can be updated in your app's `package.json` file:

{% code title="package.json" %}

```json
{
    ..
    "devDependencies": {
        "@journeyapps/runtime-build": "^2.3.0"
    }
}
```

{% endcode %}

After updating `package.json`, run the **Update yarn.lock** > **App package** action.

{% hint style="info" %}
The use of `^` is recommended to ensure that the `@journeyapps/runtime-build` version is being updated to the latest minor version when updates to `package.json` are made. Learn more about Semver ranges [here](https://devhints.io/semver).
{% endhint %}

### Minimum `@journeyapps/runtime-build` version per JourneyApps Runtime version

To support all features, the minimum `@journeyapps/runtime-build` version per major and minor JourneyApps Runtime version is documented in the table below:

| JourneyApps Runtime version | @journeyapps/runtime-build version |
| --------------------------- | ---------------------------------- |
| 5.0.\*                      | 3.0.5                              |
| 4.90.\*                     | 2.4.10                             |
| 4.89.\*                     | 2.1.9                              |
| 4.88.\*                     | 2.1.8                              |
| 4.87.\*                     | 2.1.5                              |
| 4.86.\*                     | 2.1.5                              |
| 4.85.\*                     | 2.1.5                              |
| 4.84.16+                    | 2.1.5                              |
| 4.84.\*                     | 2.0.7                              |
