diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-29 20:41:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 20:41:48 -0400 |
commit | e46584a75a5a94cede193945dfd59eed8417aea0 (patch) | |
tree | ed32a276974ccb4e238b3b78c7261df2dff23bc1 /cli/main.rs | |
parent | d5ef14eca65c78f4463a6082b392c3a8b097f7a1 (diff) |
fix(vendor): ignore import map in output directory instead of erroring (#14998)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs index 4c7fa8f53..4cbb49eca 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -769,7 +769,7 @@ async fn bundle_command( if let Ok(Some(import_map_path)) = ps .options - .resolve_import_map_path() + .resolve_import_map_specifier() .map(|ms| ms.and_then(|ref s| s.to_file_path().ok())) { paths_to_watch.push(import_map_path); @@ -1237,8 +1237,7 @@ async fn vendor_command( flags: Flags, vendor_flags: VendorFlags, ) -> Result<i32, AnyError> { - let ps = ProcState::build(flags).await?; - tools::vendor::vendor(ps, vendor_flags).await?; + tools::vendor::vendor(flags, vendor_flags).await?; Ok(0) } |