summaryrefslogtreecommitdiff
path: root/cli/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/state.rs')
-rw-r--r--cli/state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/state.rs b/cli/state.rs
index 139584394..f4e3d9c84 100644
--- a/cli/state.rs
+++ b/cli/state.rs
@@ -84,6 +84,8 @@ pub struct State {
pub js_compiler: JsCompiler,
pub json_compiler: JsonCompiler,
pub ts_compiler: TsCompiler,
+
+ pub include_deno_namespace: bool,
}
impl Clone for ThreadSafeState {
@@ -151,6 +153,7 @@ impl ThreadSafeState {
argv_rest: Vec<String>,
dispatch_selector: ops::OpSelector,
progress: Progress,
+ include_deno_namespace: bool,
) -> Result<Self, ErrBox> {
let custom_root = env::var("DENO_DIR").map(String::into).ok();
@@ -223,6 +226,7 @@ impl ThreadSafeState {
ts_compiler,
js_compiler: JsCompiler {},
json_compiler: JsonCompiler {},
+ include_deno_namespace,
};
Ok(ThreadSafeState(Arc::new(state)))
@@ -302,6 +306,7 @@ impl ThreadSafeState {
argv,
ops::op_selector_std,
Progress::new(),
+ true,
)
.unwrap()
}