diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-10 20:06:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 20:06:59 -0400 |
commit | 28aa489de9cd4f995ec2fc02e2c9d224e89f4c01 (patch) | |
tree | b316937a47fe9c8f9f6768bc13b9a686c07cf42f /cli/main.rs | |
parent | 5fd74bfa1c5ed514c3e19fdb2e8590fe251d3ee6 (diff) |
feat(compile): unstable npm and node specifier support (#19005)
This is the initial support for npm and node specifiers in `deno
compile`. The npm packages are included in the binary and read from it via
a virtual file system. This also supports the `--node-modules-dir` flag,
dependencies specified in a package.json, and npm binary commands (ex.
`deno compile --unstable npm:cowsay`)
Closes #16632
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs index c3421b0cd..03e7cf41e 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -36,7 +36,6 @@ static GLOBAL: Jemalloc = Jemalloc; use crate::args::flags_from_vec; use crate::args::DenoSubcommand; use crate::args::Flags; -use crate::resolver::CliGraphResolver; use crate::util::display; use crate::util::v8::get_v8_flags_from_env; use crate::util::v8::init_v8_flags; @@ -97,7 +96,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { Ok(0) } DenoSubcommand::Compile(compile_flags) => { - tools::standalone::compile(flags, compile_flags).await?; + tools::compile::compile(flags, compile_flags).await?; Ok(0) } DenoSubcommand::Coverage(coverage_flags) => { |