This repository was archived by the owner on Dec 21, 2024. It is now read-only.
File tree 1 file changed +7
-10
lines changed
packages/toolchain/src/tasks/deploy
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,12 @@ pub async fn build_and_upload(
54
54
} ) ;
55
55
56
56
// Search for a Deno lockfile
57
- let deno_lockfile_path = [ "deno.lock" ] . iter ( ) . find_map ( |file_name| {
58
- let path = project_root. join ( file_name) ;
59
- if path. exists ( ) {
60
- Some ( path. display ( ) . to_string ( ) )
61
- } else {
62
- None
63
- }
64
- } ) ;
57
+ let project_deno_lockfile_path = project_root. join ( "deno.lock" ) ;
58
+ let deno_lockfile_path = if project_deno_lockfile_path. exists ( ) {
59
+ Some ( project_deno_lockfile_path. display ( ) . to_string ( ) )
60
+ } else {
61
+ opts. build_config . deno . lock_path . clone ( )
62
+ } ;
65
63
66
64
// Build the bundle to the output dir. This will bundle all Deno dependencies into a
67
65
// single JS file.
@@ -84,8 +82,7 @@ pub async fn build_and_upload(
84
82
. map ( |x| project_root. join ( x) . display ( ) . to_string ( ) )
85
83
} ) ,
86
84
import_map_url : opts. build_config . deno . import_map_url . clone ( ) ,
87
- lock_path : deno_lockfile_path
88
- . or_else ( || opts. build_config . deno . lock_path . clone ( ) ) ,
85
+ lock_path : deno_lockfile_path,
89
86
} ,
90
87
bundle : js_utils:: schemas:: build:: Bundle {
91
88
minify : opts. build_config . unstable . minify ( ) ,
You can’t perform that action at this time.
0 commit comments