summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-01-06 02:38:23 +0100
committerGitHub <noreply@github.com>2021-01-06 02:38:23 +0100
commitbb884182218b5c12c7354c93860d69f65f59752a (patch)
tree21622b6c51841442ef5b2ce5c31453d715d73317 /cli/main.rs
parent4c4791b5899afe585738ac0a15ba5c21d36952cc (diff)
refactor(cli): remove 'js' module, simplify compiler snapshot (#9020)
This commit removes "js" module from "cli". It contained stuff related to TypeScript compiler (snapshot, declaration files) and thus it was moved to "tsc" module.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs13
1 files changed, 6 insertions, 7 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 932e465c0..7f6a80f30 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -25,7 +25,6 @@ mod http_cache;
mod http_util;
mod import_map;
mod info;
-mod js;
mod lockfile;
mod lsp;
mod media_type;
@@ -277,15 +276,15 @@ fn print_cache_info(
fn get_types(unstable: bool) -> String {
let mut types = format!(
"{}\n{}\n{}\n{}\n{}",
- crate::js::DENO_NS_LIB,
- crate::js::DENO_WEB_LIB,
- crate::js::DENO_FETCH_LIB,
- crate::js::SHARED_GLOBALS_LIB,
- crate::js::WINDOW_LIB,
+ crate::tsc::DENO_NS_LIB,
+ crate::tsc::DENO_WEB_LIB,
+ crate::tsc::DENO_FETCH_LIB,
+ crate::tsc::SHARED_GLOBALS_LIB,
+ crate::tsc::WINDOW_LIB,
);
if unstable {
- types.push_str(&format!("\n{}", crate::js::UNSTABLE_NS_LIB,));
+ types.push_str(&format!("\n{}", crate::tsc::UNSTABLE_NS_LIB,));
}
types