refactor: integrate deno_graph into CLI (#12369)

This commit is contained in:
Kitson Kelly 2021-10-11 08:26:22 +11:00 committed by GitHub
parent 5a8a989b78
commit a7baf5f2bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 2970 additions and 5116 deletions

View file

@ -106,7 +106,9 @@ pub async fn print_docs(
let source_file_specifier =
ModuleSpecifier::parse("deno://lib.deno.d.ts").unwrap();
let graph = create_graph(
source_file_specifier.clone(),
vec![source_file_specifier.clone()],
false,
None,
&mut loader,
None,
None,
@ -142,7 +144,9 @@ pub async fn print_docs(
import_map: ps.maybe_import_map.clone(),
};
let graph = create_graph(
root_specifier.clone(),
vec![root_specifier.clone()],
false,
None,
&mut loader,
Some(&resolver),
None,