mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
refactor: move FileCollector
to deno_config (#24433)
This commit is contained in:
parent
d4d3a3c54f
commit
80df9aec1d
19 changed files with 117 additions and 635 deletions
|
@ -1299,7 +1299,13 @@ impl ConfigData {
|
|||
}
|
||||
};
|
||||
|
||||
let vendor_dir = config_file.as_ref().and_then(|c| c.vendor_dir_path());
|
||||
let vendor_dir = config_file.as_ref().and_then(|c| {
|
||||
if c.vendor() == Some(true) {
|
||||
Some(c.specifier.to_file_path().ok()?.parent()?.join("vendor"))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
});
|
||||
|
||||
// Load lockfile
|
||||
let lockfile = config_file.as_ref().and_then(resolve_lockfile_from_config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue