You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,26 @@ npm install && npm run dev
27
27
- Navigation is JSON in `/src/config/sidebar.ts`
28
28
- SEO metadata implementation: See [SEO Metadata Guide](SEO_METADATA_GUIDE.md) for technical writers
29
29
30
+
### Version Overrides for Solidity Samples
31
+
32
+
To use different package versions for specific sample files (e.g., for tutorials requiring specific versions), edit `version-overrides.json`:
33
+
34
+
```json
35
+
{
36
+
"overrides": [
37
+
{
38
+
"file": "samples/CCIP/example.sol",
39
+
"reason": "Tutorial requires specific version",
40
+
"versions": {
41
+
"@chainlink/contracts": "1.5.0"
42
+
}
43
+
}
44
+
]
45
+
}
46
+
```
47
+
48
+
See TypeScript types in `src/scripts/helper/pin-solver-dist.ts` for structure.
49
+
30
50
## Deploy Preview
31
51
32
52
This repo is configured to automatically create a preview environment on Vercel when a PR is opened. After the deployment is approved, the Vercel bot will leave a comment with a link to the preview on your PR.
"description": "Per-file package version overrides for Solidity samples. This allows specific files to use different versions than the global defaults defined in package.json.",
3
+
"overrides": [
4
+
{
5
+
"file": "samples/CCIP/cct/TokenDependencies.sol",
6
+
"reason": "Requires specific CCIP and contracts versions for CCT tutorial compatibility",
0 commit comments