Skip to content

Commit a5db02d

Browse files
committed
fix(docs): pin typescript and tsx majors in examples runner
Unpinned, typescript now resolves to 7.x, which no longer ships lib/_tsc.js and crashes Yarn 4's builtin compat/typescript patch during install, failing docs/examples/bootstrap.sh before any example runs. Matches the existing pin in docs/examples/ts/bootstrap.sh.
1 parent ecbb18d commit a5db02d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • docs/examples/ts/aztecjs_runner

docs/examples/ts/aztecjs_runner/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ setup_project() {
115115
[ ${#NPM_DEPS[@]} -gt 0 ] && yarn_add_with_retry "${NPM_DEPS[@]}"
116116
fi
117117

118-
yarn_add_with_retry -D typescript tsx
118+
# Pin majors (matching ts/bootstrap.sh): unpinned, typescript resolves to 7.x, which drops
119+
# lib/_tsc.js and crashes Yarn's builtin compat/typescript patch at install time.
120+
yarn_add_with_retry -D "typescript@^5.3.3" "tsx@^4"
119121

120122
# Copy tsconfig
121123
cp "$EXAMPLES_DIR/tsconfig.template.json" tsconfig.json

0 commit comments

Comments
 (0)