diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-07-10 11:18:10 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 03:18:10 +0200 |
commit | eb46296e974c686896486350bb00bf428a84e9fd (patch) | |
tree | 33427c6f8560459218ed5dff3834f6ccc6cb05ca /cli/args/flags.rs | |
parent | ff5163af05d95409cbb3d1a13f49a43fefd4849a (diff) |
feat: deprecate `deno vendor` (#22183)
This commit deprecates `deno vendor` subcommand in favor
of using `--vendor` flag or `"vendor": true` setting in the config file.
The subcommand is still available (until Deno 2) but is hidden from
the help output.
Closes #20584
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index d2321f32e..b07f3783a 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -2804,11 +2804,16 @@ update to a different location, use the --output flag }) } +// TODO(bartlomieju): this subcommand is now deprecated, remove it in Deno 2. fn vendor_subcommand() -> Command { Command::new("vendor") + .hide(true) .about("Vendor remote modules into a local directory") .long_about( - "Vendor remote modules into a local directory. + "⚠️ Warning: `deno vendor` is deprecated and will be removed in Deno 2.0. +Add `\"vendor\": true` to your `deno.json` or use the `--vendor` flag instead. + +Vendor remote modules into a local directory. Analyzes the provided modules along with their dependencies, downloads remote modules to the output directory, and produces an import map that |