summaryrefslogtreecommitdiff
path: root/cli/npm
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-09-26 10:13:33 -0700
committerGitHub <noreply@github.com>2024-09-26 17:13:33 +0000
commit543c687c3474233d674ba9938c40c9a33fab61e8 (patch)
tree3aff7af00892a16ce0a0240011f45116df4ab49f /cli/npm
parent13c53d9727e0e529d04fd8b7709cb84b723fb0d8 (diff)
feat(install): warn repeatedly about not-run lifecycle scripts on explicit installs (#25878)
Currently we only warn once. With this PR, we continue to warn about not-run scripts on explicit `deno install` (or cache). For `run` (or other subcommands) we only warn the once, as we do currently.
Diffstat (limited to 'cli/npm')
-rw-r--r--cli/npm/managed/resolvers/common/lifecycle_scripts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/managed/resolvers/common/lifecycle_scripts.rs b/cli/npm/managed/resolvers/common/lifecycle_scripts.rs
index a3c72634b..35040386c 100644
--- a/cli/npm/managed/resolvers/common/lifecycle_scripts.rs
+++ b/cli/npm/managed/resolvers/common/lifecycle_scripts.rs
@@ -111,7 +111,7 @@ impl<'a> LifecycleScripts<'a> {
.push((package, package_path.into_owned()));
}
} else if !self.strategy.has_run(package)
- && !self.strategy.has_warned(package)
+ && (self.config.explicit_install || !self.strategy.has_warned(package))
{
self
.packages_with_scripts_not_run