diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-03 10:45:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 10:45:01 +0200 |
commit | bf7571a6f93659ef087ef529225642ce85e215d4 (patch) | |
tree | 189dd9ddbb150c45190f5c18a0e6a91ead099595 /cli/npm | |
parent | 3f6740ca52b938c5b792991d72b921c59cdda4d0 (diff) |
fix: make some warnings more standard (#25324)
Diffstat (limited to 'cli/npm')
-rw-r--r-- | cli/npm/managed/resolvers/local.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/managed/resolvers/local.rs b/cli/npm/managed/resolvers/local.rs index b88dd57cf..6ac83ee94 100644 --- a/cli/npm/managed/resolvers/local.rs +++ b/cli/npm/managed/resolvers/local.rs @@ -836,9 +836,9 @@ async fn sync_resolution_with_fs( .map(|(_, p)| format!("npm:{p}")) .collect::<Vec<_>>() .join(", "); - log::warn!("{}: Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. + 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` 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")); + (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, ""); } |