diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-03-26 08:43:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 08:43:58 +0100 |
commit | d5e0e8c0c29c3cb563d043dc5a1bd43cdcd055fb (patch) | |
tree | 2e1e40fdaa8cb9654ac13aa14155ae510d91bfea | |
parent | 385b14463ce4f1623ed89bb00a896f3d15eac3ce (diff) |
fix: include deno.crypto in "deno types" (#9863)
-rw-r--r-- | cli/main.rs | 3 | ||||
-rw-r--r-- | cli/tsc.rs | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index c2fa20c1c..99178b10a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -278,7 +278,7 @@ fn print_cache_info( pub fn get_types(unstable: bool) -> String { let mut types = format!( - "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}", + "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}", crate::tsc::DENO_NS_LIB, crate::tsc::DENO_CONSOLE_LIB, crate::tsc::DENO_URL_LIB, @@ -286,6 +286,7 @@ pub fn get_types(unstable: bool) -> String { crate::tsc::DENO_FETCH_LIB, crate::tsc::DENO_WEBGPU_LIB, crate::tsc::DENO_WEBSOCKET_LIB, + crate::tsc::DENO_CRYPTO_LIB, crate::tsc::SHARED_GLOBALS_LIB, crate::tsc::WINDOW_LIB, ); diff --git a/cli/tsc.rs b/cli/tsc.rs index 4026f9329..3e38a6918 100644 --- a/cli/tsc.rs +++ b/cli/tsc.rs @@ -36,6 +36,7 @@ pub static DENO_FETCH_LIB: &str = include_str!(env!("DENO_FETCH_LIB_PATH")); pub static DENO_WEBGPU_LIB: &str = include_str!(env!("DENO_WEBGPU_LIB_PATH")); pub static DENO_WEBSOCKET_LIB: &str = include_str!(env!("DENO_WEBSOCKET_LIB_PATH")); +pub static DENO_CRYPTO_LIB: &str = include_str!(env!("DENO_CRYPTO_LIB_PATH")); pub static SHARED_GLOBALS_LIB: &str = include_str!("dts/lib.deno.shared_globals.d.ts"); pub static WINDOW_LIB: &str = include_str!("dts/lib.deno.window.d.ts"); |