summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-12 19:51:58 -0400
committerGitHub <noreply@github.com>2024-08-12 19:51:58 -0400
commit39a21fd78eb6d9a13d46d108af35c58a3f550332 (patch)
tree0fb56fc064be968506d4ccb4798fabf178e29ca3 /cli
parent631e175498203294f474031d169354d1cf648ca8 (diff)
feat(publish): error on missing license file (#25011)
Closes https://github.com/denoland/deno/issues/24676
Diffstat (limited to 'cli')
-rw-r--r--cli/tools/registry/diagnostics.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/tools/registry/diagnostics.rs b/cli/tools/registry/diagnostics.rs
index 54b281194..e1c6e4e65 100644
--- a/cli/tools/registry/diagnostics.rs
+++ b/cli/tools/registry/diagnostics.rs
@@ -172,8 +172,7 @@ impl Diagnostic for PublishDiagnostic {
MissingConstraint { .. } => DiagnosticLevel::Error,
BannedTripleSlashDirectives { .. } => DiagnosticLevel::Error,
SyntaxError { .. } => DiagnosticLevel::Error,
- // todo(#24676): make this an error in Deno 1.46
- MissingLicense { .. } => DiagnosticLevel::Warning,
+ MissingLicense { .. } => DiagnosticLevel::Error,
}
}