Commit 068c65d
authored
fix(docs-examples): pin typescript to 5.x in execute runner (#24736)
The `docs/examples/bootstrap.sh execute` step is failing CI. The example
runner does an unpinned `yarn add -D typescript tsx`, and
`typescript@latest`
on npm is now `7.0.2` (the native port). Its package layout has no
`lib/_tsc.js`, so Yarn 4's builtin compat patch fails to apply:
```
Error: typescript@patch:...npm%3A7.0.2...: ENOENT: no such file or directory, lstat '.../lib/_tsc.js'
```
Pin the install to `typescript@^5.3.3` — the same line the rest of the
monorepo
uses (resolves to 5.9.3) and matching the existing pin in
`docs/examples/ts/bootstrap.sh`. Verified with Yarn 4.13.0: the unpinned
add
reproduces the `_tsc.js` error, the pinned add applies the compat patch
cleanly.1 parent 632095c commit 068c65d
2 files changed
Lines changed: 5 additions & 2 deletions
File tree
- docs
- docs-developers/docs/tutorials/js_tutorials
- examples/ts/aztecjs_runner
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments