Skip to content

Conversation

@spalladino
Copy link
Contributor

Summary

  • Fixed bug where yarn build -w would check for type errors but not emit JS changes
  • The swc commands in watch mode were constructed inline without the --watch flag
  • Extracted swc_args variable and use it consistently across all swc invocations
  • Added test case that verifies watch mode properly rebuilds JS when source files change

Test plan

  • Run ./scripts/tsc.test.sh - all 28 tests pass including new watch mode test
  • Run yarn build -w from yarn-project root, modify a file, verify JS is rebuilt

🤖 Generated with Claude Code

The swc commands in watch mode were constructed inline without the
--watch flag, causing JS files to not be rebuilt when source files
changed. Fixed by extracting swc_args and using it consistently
across all swc invocations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@spalladino spalladino requested a review from ludamad January 23, 2026 22:07
@spalladino spalladino added this pull request to the merge queue Jan 23, 2026
@AztecBot
Copy link
Collaborator

AztecBot commented Jan 23, 2026

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/f18868ca64ac5612�f18868ca64ac56128;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/valid_epoch_pruned_slash.test.ts (395s) (code: 1) group:e2e-p2p-epoch-flakes (\033Santiago Palladino\033: fix: pass --watch flag to swc in tsc.sh watch mode (#19912))

Merged via the queue into next with commit 73da05e Jan 23, 2026
16 checks passed
@spalladino spalladino deleted the palla/fix-tsc-watch-mode branch January 23, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants