Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions markdown-pages/docs/manual/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ bun create rescript-app

</CodeTab>

<Info>
**pnpm users:** ReScript-compiled JS imports from `@rescript/runtime` directly, but pnpm's strict isolation does not expose transitive dependencies at the app root. Either install the runtime as a direct dependency (`pnpm add @rescript/runtime`), or hoist it by adding the following to `pnpm-workspace.yaml`:

```yaml
publicHoistPattern:
- "*@rescript/runtime*"
```
</Info>

- Create a ReScript build configuration file (called `rescript.json`) at the root:
```json
{
Expand Down
12 changes: 11 additions & 1 deletion markdown-pages/docs/manual/migrate-to-v12.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ if you had `@rescript/std` installed, remove it as well:
npm uninstall @rescript/std
```

this is replaced by `@rescript/runtime`, which is a installed as a dependency of `rescript` now.
this is replaced by `@rescript/runtime`, which is installed as a dependency of `rescript` now.

<Info>
**pnpm users:** since pnpm does not hoist transitive dependencies, you may need to install `@rescript/runtime` as a direct dependency (`pnpm add @rescript/runtime`), or hoist it by adding the following to `pnpm-workspace.yaml`:

```yaml
publicHoistPattern:
- "*@rescript/runtime*"
```

</Info>

## Replacements

Expand Down
Loading