summaryrefslogtreecommitdiff
path: root/js/build.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-10-04 20:28:51 -0400
committerGitHub <noreply@github.com>2019-10-04 20:28:51 -0400
commitb81e5db17aa8b3088d6034ddf86b79c69410f012 (patch)
tree579e4c23d60d1b0d038156bc28a04f74ea87b2f0 /js/build.rs
parent9049213867d30f7df090a83b6baf3e0717a4d2d2 (diff)
Merge deno_cli_snapshots into deno_cli (#3064)
Diffstat (limited to 'js/build.rs')
-rw-r--r--js/build.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/js/build.rs b/js/build.rs
deleted file mode 100644
index 1063fd8eb..000000000
--- a/js/build.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-use std::env;
-use std::path::PathBuf;
-
-fn main() {
- // To debug snapshot issues uncomment:
- // deno_typescript::trace_serializer();
-
- println!(
- "cargo:rustc-env=TS_VERSION={}",
- deno_typescript::ts_version()
- );
-
- let c = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
- let o = PathBuf::from(env::var_os("OUT_DIR").unwrap());
-
- let root_names = vec![c.join("main.ts")];
- let bundle = o.join("CLI_SNAPSHOT.js");
- let state = deno_typescript::compile_bundle(&bundle, root_names).unwrap();
- assert!(bundle.exists());
- deno_typescript::mksnapshot_bundle(&bundle, state).unwrap();
-
- let root_names = vec![c.join("compiler.ts")];
- let bundle = o.join("COMPILER_SNAPSHOT.js");
- let state = deno_typescript::compile_bundle(&bundle, root_names).unwrap();
- assert!(bundle.exists());
- deno_typescript::mksnapshot_bundle_ts(&bundle, state).unwrap();
-}