diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-25 12:27:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 12:27:30 -0600 |
commit | b426ecce80a968ae77cde9e242a9014bff371f79 (patch) | |
tree | 49175da253bfb5d93aaf8215f58c92838b64b2d9 /cli/main.rs | |
parent | b7d8a0c6f6e90a65243264faa3f702d1a9471090 (diff) |
compile lib.deno_runtime.d.ts into executable (#2209)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/main.rs b/cli/main.rs index 436abe718..5bde60fb6 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -47,7 +47,6 @@ use futures::lazy; use futures::Future; use log::{LevelFilter, Metadata, Record}; use std::env; -use std::path::Path; static LOGGER: Logger = Logger; @@ -144,12 +143,10 @@ fn create_worker_and_state( } fn types_command() { - let p = Path::new(concat!( + let content = include_str!(concat!( env!("GN_OUT_DIR"), "/gen/cli/lib/lib.deno_runtime.d.ts" )); - let content_bytes = std::fs::read(p).unwrap(); - let content = std::str::from_utf8(&content_bytes[..]).unwrap(); println!("{}", content); } |