summaryrefslogtreecommitdiff
path: root/cli/assets.rs
blob: a0abca1156cedcf21b2e97053efd907ce5ddc860 (plain)
1
2
3
4
5
6
7
8
static DENO_RUNTIME: &str = include_str!("../js/lib.deno_runtime.d.ts");

pub fn get_source_code(name: &str) -> Option<&'static str> {
  match name {
    "lib.deno_runtime.d.ts" => Some(DENO_RUNTIME),
    _ => deno_typescript::get_asset(name),
  }
}