File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ struct ServeArgs {
179
179
struct BuildArgs {
180
180
#[ arg( short, long, help = "Build only content <FILES>" ) ]
181
181
files : Vec < PathBuf > ,
182
- #[ arg( short , long, help = "Build only content listed in <FILE_LIST>" ) ]
182
+ #[ arg( long, help = "Build only content listed in <FILE_LIST>" ) ]
183
183
file_list : Option < PathBuf > ,
184
184
#[ arg( short, long, help = "Abort build on warnings" ) ]
185
185
deny_warnings : bool ,
Original file line number Diff line number Diff line change @@ -33,12 +33,13 @@ impl Deps {
33
33
if let Some ( package_json) =
34
34
std:: env:: var_os ( "DEPS_PACKAGE_JSON" ) . or_else ( || std:: env:: var_os ( "deps_package_json" ) )
35
35
{
36
+ println ! ( "{package_json:?}" ) ;
36
37
let path = Path :: new ( & package_json) ;
37
- if let Some ( deps ) = fs:: read_to_string ( path)
38
- . ok ( )
39
- . and_then ( |json_str| serde_json :: from_str ( & json_str ) . ok ( ) )
40
- {
41
- return Ok ( deps ) ;
38
+ if let Some ( deps_json ) = fs:: read_to_string ( path) . ok ( ) . and_then ( |json_str| {
39
+ let s = serde_json :: from_str :: < DepsPackageJson > ( & json_str ) ;
40
+ s . ok ( )
41
+ } ) {
42
+ return Ok ( deps_json . dependencies ) ;
42
43
} else {
43
44
tracing:: error!( "unable to parse {}" , path. display( ) ) ;
44
45
}
You can’t perform that action at this time.
0 commit comments