mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor: add RootConfig
(#14985)
This commit is contained in:
parent
5b7bcefa11
commit
01adbb1efb
21 changed files with 917 additions and 819 deletions
|
@ -96,7 +96,7 @@ pub async fn print_docs(
|
|||
flags: Flags,
|
||||
doc_flags: DocFlags,
|
||||
) -> Result<(), AnyError> {
|
||||
let ps = ProcState::build(Arc::new(flags)).await?;
|
||||
let ps = ProcState::build(flags).await?;
|
||||
let source_file = doc_flags
|
||||
.source_file
|
||||
.unwrap_or_else(|| "--builtin".to_string());
|
||||
|
@ -122,7 +122,7 @@ pub async fn print_docs(
|
|||
doc_parser.parse_source(
|
||||
&source_file_specifier,
|
||||
MediaType::Dts,
|
||||
get_types(ps.flags.unstable).into(),
|
||||
get_types(ps.config.unstable()).into(),
|
||||
)
|
||||
} else {
|
||||
let module_specifier = resolve_url_or_path(&source_file)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue