Skip to content

Commit 0be8f48

Browse files
committed
add note about resolutions override for testing
1 parent d566a6f commit 0be8f48

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

CONTRIBUTING.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,21 @@ To reproduce issues, it can be helpful to the team to install a specific version
404404
1. In your repository run:
405405

406406
```console
407-
npm i <path_to_download>npm-packages/rescript-*.tgz
407+
npm i <path_to_download>/npm-packages/rescript-*.tgz
408+
```
409+
410+
If you use Yarn or pnpm, you should override platform package resolutions by [`resolutions`](https://yarnpkg.com/configuration/manifest#resolutions) in Yarn or [`overrides`](https://pnpm.io/settings#overrides) in Pnpm.
411+
412+
```
413+
{
414+
"resolutions": {
415+
"@rescript/linux-x64": "<path_to_download>/npm-packages/rescript-linux-x64.tgz",
416+
"@rescript/linux-arm64": "<path_to_download>/npm-packages/rescript-linux-arm64.tgz",
417+
"@rescript/darwin-x64": "<path_to_download>/npm-packages/rescript-darwin-x64.tgz",
418+
"@rescript/darwin-arm64": "<path_to_download>/npm-packages/rescript-darwin-arm64.tgz",
419+
"@rescript/win32-x64": "<path_to_download>/npm-packages/rescript-win32-x64.tgz"
420+
}
421+
}
408422
```
409423

410424
1. Then attempt to rebuild your project as you would normally.

0 commit comments

Comments
 (0)