summaryrefslogtreecommitdiff
path: root/cli/tools/bundle.rs
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-01-24 12:36:51 +1100
committerGitHub <noreply@github.com>2024-01-24 02:36:51 +0100
commit4c0b66baab854617993cb242e3be8fe91fb9b0fc (patch)
tree9ceef2735035f4f062a4229871bc6b880fa03f04 /cli/tools/bundle.rs
parent46b91eceb15c3941bf1f8f62b98026ad3fde3e9f (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/tools/bundle.rs')
-rw-r--r--cli/tools/bundle.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/tools/bundle.rs b/cli/tools/bundle.rs
index c70392419..0e54e59f6 100644
--- a/cli/tools/bundle.rs
+++ b/cli/tools/bundle.rs
@@ -21,11 +21,8 @@ pub async fn bundle(
bundle_flags: BundleFlags,
) -> Result<(), AnyError> {
log::info!(
- "{} \"deno bundle\" is deprecated and will be removed in the future.",
- colors::yellow("Warning"),
- );
- log::info!(
- "Use alternative bundlers like \"deno_emit\", \"esbuild\" or \"rollup\" instead."
+ "{}",
+ colors::yellow("⚠️ Warning: `deno bundle` is deprecated and will be removed in Deno 2.0.\nUse an alternative bundler like \"deno_emit\", \"esbuild\" or \"rollup\" instead."),
);
if let Some(watch_flags) = &bundle_flags.watch {