From 795ed23b356dc044cfb497a6189d588604a6c335 Mon Sep 17 00:00:00 2001 From: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:37:13 -0700 Subject: fix(future): Emit `deno install` warning less often, suggest `deno install` in error message (#24706) Two small changes: - In our BYONM errors, suggest running `deno install` instead of `npm install` if `DENO_FUTURE` is set - Only emit warning about `deno install` changes if you do `deno install ` with deno_future unset --- tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles.out | 1 - .../npm/lifecycle_scripts/future_install_all_lifecycles_not_run.out | 1 - 2 files changed, 2 deletions(-) (limited to 'tests/specs/npm/lifecycle_scripts') diff --git a/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles.out b/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles.out index 059afdfaa..f62079d3f 100644 --- a/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles.out +++ b/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles.out @@ -1,4 +1,3 @@ -⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag. preinstall deno preinstall.js node preinstall.js diff --git a/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles_not_run.out b/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles_not_run.out index 8db36055f..7d432ead9 100644 --- a/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles_not_run.out +++ b/tests/specs/npm/lifecycle_scripts/future_install_all_lifecycles_not_run.out @@ -1,4 +1,3 @@ -⚠️ `deno install` behavior will change in Deno 2. To preserve the current behavior use the `-g` or `--global` flag. [UNORDERED_START] Download http://localhost:4260/@denotest/node-lifecycle-scripts Download http://localhost:4260/@denotest/bin -- cgit v1.2.3