File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
packages/cargo-pgml-components Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " cargo-pgml-components"
3- version = " 0.1.23 "
3+ version = " 0.1.24 "
44edition = " 2021"
55authors = [" PostgresML <team@postgresml.org>" ]
66license = " MIT"
Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ pub fn debug() {
132132}
133133
134134pub fn watch ( ) {
135+ rebuild ( ) ;
136+
135137 let mut debouncer = unwrap_or_exit ! ( new_debouncer(
136138 Duration :: from_secs( 1 ) ,
137139 None ,
@@ -156,9 +158,7 @@ pub fn watch() {
156158 }
157159
158160 if detected {
159- print( "changes detected, rebuilding..." ) ;
160161 rebuild( ) ;
161- info( "done" ) ;
162162 }
163163 }
164164
@@ -211,7 +211,12 @@ pub fn lint(check: bool) {
211211}
212212
213213fn rebuild ( ) {
214- unwrap_or_exit ! ( execute_command(
215- Command :: new( "cargo" ) . arg( "pgml-components" ) . arg( "bundle" )
216- ) ) ;
214+ print ( "changes detected, rebuilding..." ) ;
215+ match execute_command ( Command :: new ( "cargo" ) . arg ( "pgml-components" ) . arg ( "bundle" ) ) {
216+ Ok ( _) => info ( "ok" ) ,
217+ Err ( err) => {
218+ error ( "error" ) ;
219+ error ! ( "{}" , err) ;
220+ }
221+ }
217222}
You can’t perform that action at this time.
0 commit comments