perf: make updater faster by streaming instead of reading into memory (#3630)

Fix system crash (OOM) caused by updater spending time in folders like
docs/

- Skip hidden and vendor directories (node_modules, vendor, docs, etc.)
to avoid OOM
- free ASTs immediately
- ts-morph dependency bumped to ^27.0.2

Closes https://github.com/denoland/fresh/issues/3483

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sam Ottenhoff
2026-03-25 20:01:01 +01:00
committed by GitHub
co-authored by Bartek Iwańczuk Claude Opus 4.6
parent c863097779
commit 022835cce6
4 changed files with 63 additions and 52 deletions
+1 -1
View File
@@ -86,7 +86,7 @@
"tailwindcss": "npm:tailwindcss@^4.1.10",
"postcss": "npm:postcss@8.5.6",
"ts-morph": "npm:ts-morph@^26.0.0",
"ts-morph": "npm:ts-morph@^27.0.2",
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
"github-slugger": "npm:github-slugger@^2.0.0",