diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-30 17:58:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-30 21:58:24 +0000 |
commit | f891e73bbfc4a8f4f24039dd046c8d3de80e2c56 (patch) | |
tree | d3ca7e1163550cc7fee6d523269d6a3636218da0 /cli/npm | |
parent | 55137c9db4ed7226a6a68256c3cb9fdad7ad7c83 (diff) |
refactor: remove DENO_FUTURE (#25314)
Diffstat (limited to 'cli/npm')
-rw-r--r-- | cli/npm/managed/resolvers/local.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cli/npm/managed/resolvers/local.rs b/cli/npm/managed/resolvers/local.rs index 8f729d79c..b88dd57cf 100644 --- a/cli/npm/managed/resolvers/local.rs +++ b/cli/npm/managed/resolvers/local.rs @@ -831,22 +831,14 @@ async fn sync_resolution_with_fs( } if !packages_with_scripts_not_run.is_empty() { - let (maybe_install, maybe_install_example) = if *crate::args::DENO_FUTURE { - ( - " or `deno install`", - " or `deno install --allow-scripts=pkg1,pkg2`", - ) - } else { - ("", "") - }; let packages = packages_with_scripts_not_run .iter() .map(|(_, p)| format!("npm:{p}")) .collect::<Vec<_>>() .join(", "); log::warn!("{}: Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. - This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache`{maybe_install} - (e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>`{maybe_install_example}):\n {packages}", crate::colors::yellow("warning")); + This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` + (e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`):\n {packages}", crate::colors::yellow("warning")); for (scripts_warned_path, _) in packages_with_scripts_not_run { let _ignore_err = fs::write(scripts_warned_path, ""); } |