@@ -11,10 +11,8 @@ export const FRESH_VERSION = "2.2.0";
1111export const PREACT_VERSION = "10.27.2" ;
1212export const PREACT_SIGNALS_VERSION = "2.5.0" ;
1313
14- // Function to filter out node_modules and vendor directories from logs
15- const HIDE_FILES = / [ \\ / ] + ( n o d e _ m o d u l e s | v e n d o r ) [ \\ / ] + / ;
16- // Directories we should completely skip when walking the tree. This keeps us
17- // from loading vendored dependencies (often thousands of files) into ts-morph.
14+ // Paths we never want to process or surface in logs. Used both for walking the
15+ // tree (skip) and for hiding vendor-ish paths from user-facing summaries.
1816const SKIP_DIRS =
1917 / (?: [ \\ / ] \. [ ^ \\ / ] + (?: [ \\ / ] | $ ) | [ \\ / ] ( n o d e _ m o d u l e s | v e n d o r | d o c s | \. g i t | \. n e x t | \. t u r b o | _ f r e s h | d i s t | b u i l d | t a r g e t | \. c a c h e ) (?: [ \\ / ] | $ ) ) / ;
2018export interface DenoJson {
@@ -189,7 +187,7 @@ export async function updateProject(dir: string) {
189187 } )
190188 ) {
191189 filesToProcess . push ( entry . path ) ;
192- if ( ! HIDE_FILES . test ( entry . path ) ) userFileCount ++ ;
190+ if ( ! SKIP_DIRS . test ( entry . path ) ) userFileCount ++ ;
193191 }
194192 const totalFiles = filesToProcess . length ;
195193
@@ -245,7 +243,7 @@ export async function updateProject(dir: string) {
245243
246244 // Filter modified files to show only user files
247245 const modifiedFilesToShow = modifiedFilesList . filter ( ( filePath ) =>
248- ! HIDE_FILES . test ( filePath )
246+ ! SKIP_DIRS . test ( filePath )
249247 ) ;
250248 const unmodifiedCount = Math . max (
251249 userFileCount - modifiedFilesToShow . length ,
0 commit comments