diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-24 14:52:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 18:52:05 +0000 |
commit | ded6afccf21f0f6804fa5ff8bd7e5be6275092d5 (patch) | |
tree | d4f8131e6dc8e702bf3841be8525adde7afdba75 /cli/tools/registry/diagnostics.rs | |
parent | da70608700274392a8f134735ac3701eecd6cfa7 (diff) |
fix(publish): --dry-publish should error for gitignored excluded files (#23540)
Files that were gitignored only were not included in the diagnostic.
Diffstat (limited to 'cli/tools/registry/diagnostics.rs')
-rw-r--r-- | cli/tools/registry/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/registry/diagnostics.rs b/cli/tools/registry/diagnostics.rs index e3d24cd92..38366ed7e 100644 --- a/cli/tools/registry/diagnostics.rs +++ b/cli/tools/registry/diagnostics.rs @@ -296,7 +296,7 @@ impl Diagnostic for PublishDiagnostic { InvalidExternalImport { .. } => Some(Cow::Borrowed("replace this import with one from jsr or npm, or vendor the dependency into your package")), UnsupportedJsxTsx { .. } => None, ExcludedModule { .. } => Some( - Cow::Borrowed("remove the module from 'exclude' and/or 'publish.exclude' in the config file"), + Cow::Borrowed("remove the module from 'exclude' and/or 'publish.exclude' in the config file or use 'publish.exclude' with a negative glob to unexclude from gitignore"), ), } } |