summaryrefslogtreecommitdiff
path: root/cli/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lib.rs')
-rw-r--r--cli/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index 311d8ce30..56705289f 100644
--- a/cli/lib.rs
+++ b/cli/lib.rs
@@ -54,6 +54,7 @@ pub mod version;
mod web_worker;
pub mod worker;
+use crate::compilers::TargetLib;
use crate::deno_error::js_check;
use crate::deno_error::{print_err_and_exit, print_msg_and_exit};
use crate::global_state::ThreadSafeGlobalState;
@@ -146,7 +147,12 @@ fn create_worker_and_state(
}
fn types_command() {
- println!("{}\n{}", crate::js::DENO_NS_LIB, crate::js::DENO_MAIN_LIB);
+ println!(
+ "{}\n{}\n{}",
+ crate::js::DENO_NS_LIB,
+ crate::js::SHARED_GLOBALS_LIB,
+ crate::js::WINDOW_LIB
+ );
}
fn print_cache_info(worker: MainWorker) {
@@ -198,7 +204,7 @@ async fn print_file_info(
let maybe_compiled = global_state_
.clone()
- .fetch_compiled_module(&module_specifier, None)
+ .fetch_compiled_module(&module_specifier, None, TargetLib::Main)
.await;
if let Err(e) = maybe_compiled {
debug!("compiler error exiting!");