From 39a21fd78eb6d9a13d46d108af35c58a3f550332 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 12 Aug 2024 19:51:58 -0400 Subject: feat(publish): error on missing license file (#25011) Closes https://github.com/denoland/deno/issues/24676 --- cli/tools/registry/diagnostics.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli') 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, } } -- cgit v1.2.3