mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
feat: denort binary (#9041)
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
e61e81eb57
commit
a44349dfdf
22 changed files with 315 additions and 258 deletions
|
@ -5,7 +5,6 @@ use crate::file_fetcher::CacheSetting;
|
|||
use crate::file_fetcher::FileFetcher;
|
||||
use crate::flags;
|
||||
use crate::http_cache;
|
||||
use crate::http_util;
|
||||
use crate::import_map::ImportMap;
|
||||
use crate::lockfile::Lockfile;
|
||||
use crate::module_graph::CheckOptions;
|
||||
|
@ -14,6 +13,7 @@ use crate::module_graph::TranspileOptions;
|
|||
use crate::module_graph::TypeLib;
|
||||
use crate::source_maps::SourceMapGetter;
|
||||
use crate::specifier_handler::FetchHandler;
|
||||
use crate::version;
|
||||
use deno_runtime::inspector::InspectorServer;
|
||||
use deno_runtime::permissions::Permissions;
|
||||
|
||||
|
@ -106,7 +106,7 @@ impl ProgramState {
|
|||
let maybe_inspector_server = match maybe_inspect_host {
|
||||
Some(host) => Some(Arc::new(InspectorServer::new(
|
||||
host,
|
||||
http_util::get_user_agent(),
|
||||
version::get_user_agent(),
|
||||
))),
|
||||
None => None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue