This repository was archived by the owner on Mar 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export async function run(options: Options) {
8282
8383 if ( newModelPaths . length ) {
8484 if ( logsEnabled ) {
85- const logPaths = [ ... newModelPaths ] . map ( ( at ) => `- ${ at } ` ) . join ( '\n' ) ;
85+ const logPaths = newModelPaths . map ( ( at ) => `- ${ at } ` ) . join ( '\n' ) ;
8686 console . log ( `Added file(s) to watch:\n${ logPaths } ` ) ;
8787 }
8888
@@ -92,12 +92,12 @@ export async function run(options: Options) {
9292
9393 if ( removeModelPaths . length ) {
9494 if ( logsEnabled ) {
95- const logPaths = [ ... removeModelPaths ] . map ( ( at ) => `- ${ at } ` ) . join ( '\n' ) ;
96- console . log ( `Added file(s) to watch:\n${ logPaths } ` ) ;
95+ const logPaths = removeModelPaths . map ( ( at ) => `- ${ at } ` ) . join ( '\n' ) ;
96+ console . log ( `Removed file(s) from watch:\n${ logPaths } ` ) ;
9797 }
9898
99- removeModelPaths . forEach ( ( at ) => watchedPaths . add ( at ) ) ;
100- watcher . add ( removeModelPaths ) ;
99+ removeModelPaths . forEach ( ( at ) => watchedPaths . delete ( at ) ) ;
100+ watcher . unwatch ( removeModelPaths ) ;
101101 }
102102 } catch ( e ) {
103103 console . error ( e ) ;
You can’t perform that action at this time.
0 commit comments