diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-09-15 18:36:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-15 18:36:27 -0400 |
commit | c9ef182886cc07d35a5b27fb89163d8cf21a6a47 (patch) | |
tree | 6ba1605daa7e9e8cac3f6b926374086906f571b5 /cli/ops/compiler.rs | |
parent | 1d305c2ac785af6b28649f2023d5008e390eeca0 (diff) |
Make deno_cli installable via crates.io (#2946)
- Fixes cargo publish on deno_typescript, deno_cli_snapshots, and
deno_cli.
- Combines cli_snapshots and js into one directory.
- Extracts TS version at compile time rather than runtime
- Bumps version awkwardly - it was necessary to test end-to-end
publishing. Sorry.
- Adds git submodule deno_typescript/typescript
Diffstat (limited to 'cli/ops/compiler.rs')
-rw-r--r-- | cli/ops/compiler.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index 975e01ee1..2dd7422df 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -1,6 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. use super::dispatch_json::{Deserialize, JsonOp, Value}; -use crate::assets; use crate::state::ThreadSafeState; use crate::tokio_util; use deno::*; @@ -89,7 +88,7 @@ pub fn op_fetch_asset( _zero_copy: Option<PinnedBuf>, ) -> Result<JsonOp, ErrBox> { let args: FetchAssetArgs = serde_json::from_value(args)?; - if let Some(source_code) = assets::get_source_code(&args.name) { + if let Some(source_code) = deno_cli_snapshots::get_asset(&args.name) { Ok(JsonOp::Sync(json!(source_code))) } else { panic!("op_fetch_asset bad asset {}", args.name) |