mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
compile lib.deno_runtime.d.ts into executable (#2209)
This commit is contained in:
parent
b7d8a0c6f6
commit
b426ecce80
1 changed files with 1 additions and 4 deletions
|
@ -47,7 +47,6 @@ use futures::lazy;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
use log::{LevelFilter, Metadata, Record};
|
use log::{LevelFilter, Metadata, Record};
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::path::Path;
|
|
||||||
|
|
||||||
static LOGGER: Logger = Logger;
|
static LOGGER: Logger = Logger;
|
||||||
|
|
||||||
|
@ -144,12 +143,10 @@ fn create_worker_and_state(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn types_command() {
|
fn types_command() {
|
||||||
let p = Path::new(concat!(
|
let content = include_str!(concat!(
|
||||||
env!("GN_OUT_DIR"),
|
env!("GN_OUT_DIR"),
|
||||||
"/gen/cli/lib/lib.deno_runtime.d.ts"
|
"/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);
|
println!("{}", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue