pub mod args; pub mod auth_tokens; pub mod cache; pub mod cdp; pub mod emit; pub mod errors; pub mod factory; pub mod file_fetcher; pub mod graph_container; pub mod graph_util; pub mod http_util; pub mod js; pub mod jsr; pub mod lsp; pub mod module_loader; pub mod napi; pub mod node; pub mod npm; pub mod ops; pub mod resolver; pub mod shared; pub mod standalone; pub mod task_runner; pub mod tools; pub mod tsc; pub mod util; pub mod version; pub mod worker; use crate::args::flags_from_vec; use crate::args::DenoSubcommand; use crate::args::Flags; use crate::util::display; use crate::util::v8::get_v8_flags_from_env; use crate::util::v8::init_v8_flags; pub use deno_runtime::UNSTABLE_GRANULAR_FLAGS; pub use deno_runtime; use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_core::error::JsError; use deno_core::futures::FutureExt; use deno_core::unsync::JoinHandle; use deno_npm::resolution::SnapshotFromLockfileError; use deno_runtime::fmt_errors::format_js_error; use deno_runtime::tokio_util::create_and_run_current_thread_with_maybe_metrics; use deno_terminal::colors; use factory::CliFactory; use std::env; use std::env::current_exe; use std::future::Future; use std::path::PathBuf; pub(crate) fn unstable_exit_cb(feature: &str, api_name: &str) { eprintln!( "Unstable API '{api_name}'. The `--unstable-{}` flag must be provided.", feature ); std::process::exit(70); } // TODO(bartlomieju): remove when `--unstable` flag is removed. pub(crate) fn unstable_warn_cb(feature: &str, api_name: &str) { eprintln!( "⚠️ {}", colors::yellow(format!( "The `{}` API was used with `--unstable` flag. The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-{}` instead.\nLearn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags", api_name, feature )) ); }