fix(install): cache type only module deps in deno install (#26497)

Fixes https://github.com/denoland/deno/issues/26180.
This commit is contained in:
Nathan Whitaker 2024-10-23 15:01:45 -07:00 committed by GitHub
parent 92ed4d38db
commit 69e1d7a4ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 40 additions and 0 deletions

View file

@ -963,6 +963,9 @@ impl CliOptions {
match self.sub_command() {
DenoSubcommand::Cache(_) => GraphKind::All,
DenoSubcommand::Check(_) => GraphKind::TypesOnly,
DenoSubcommand::Install(InstallFlags {
kind: InstallKind::Local(_),
}) => GraphKind::All,
_ => self.type_check_mode().as_graph_kind(),
}
}