summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorMarvin Hagemeister <marvin@deno.com>2024-02-23 15:56:49 +0100
committerGitHub <noreply@github.com>2024-02-23 15:56:49 +0100
commitcddefecfff38215cef509aa6c0a2119682b49c15 (patch)
tree206068bb1eee956000404711f3aa8788080eed18 /cli/args/flags.rs
parent55fa61abc6490f98eb1bbd8ca02b34974fb54cb2 (diff)
feat: infer dependencies from package.json (#22563)
<!-- Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. 7. Open as a draft PR if your work is still in progress. The CI won't run all steps, but you can add '[ci]' to a commit message to force it to. 8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label. --> This PR enhances the `deno publish` command to infer dependencies from `package.json` if present.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs4
1 files changed, 2 insertions, 2 deletions
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,
}
}