diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-24 12:36:51 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 02:36:51 +0100 |
commit | 4c0b66baab854617993cb242e3be8fe91fb9b0fc (patch) | |
tree | 9ceef2735035f4f062a4229871bc6b880fa03f04 /cli/args/flags.rs | |
parent | 46b91eceb15c3941bf1f8f62b98026ad3fde3e9f (diff) |
refactor: set removal version for `deno bundle` (#22062)
This change sets the removal version for the `deno bundle` sub-command
for Deno v2. The warnings appear when `deno bundle` is run and in the
`--help` menu.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 8bb29e72d..ae63b710c 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1169,7 +1169,10 @@ fn bundle_subcommand() -> Command { Command::new("bundle") .about("Bundle module and dependencies into single file") .long_about( - "Output a single JavaScript file with all dependencies. + "⚠️ Warning: `deno bundle` is deprecated and will be removed in Deno 2.0. +Use an alternative bundler like \"deno_emit\", \"esbuild\" or \"rollup\" instead. + +Output a single JavaScript file with all dependencies. deno bundle https://deno.land/std/http/file_server.ts file_server.bundle.js |