From cddefecfff38215cef509aa6c0a2119682b49c15 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 23 Feb 2024 15:56:49 +0100 Subject: feat: infer dependencies from package.json (#22563) This PR enhances the `deno publish` command to infer dependencies from `package.json` if present. --- cli/args/flags.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 44bb0dde1..7712a291e 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -756,12 +756,12 @@ impl Flags { .ok() } Task(_) | Check(_) | Coverage(_) | Cache(_) | Info(_) | Eval(_) - | Test(_) | Bench(_) | Repl(_) | Compile(_) => { + | Test(_) | Bench(_) | Repl(_) | Compile(_) | Publish(_) => { std::env::current_dir().ok() } Bundle(_) | Completions(_) | Doc(_) | Fmt(_) | Init(_) | Install(_) | Uninstall(_) | Jupyter(_) | Lsp | Lint(_) | Types | Upgrade(_) - | Vendor(_) | Publish(_) => None, + | Vendor(_) => None, } } -- cgit v1.2.3