From 2dfc0aca7c6a04d54fe6f9a73be70fc4c591d552 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 7 Mar 2024 20:16:32 -0500 Subject: fix(publish): make include and exclude work (#22720) 1. Stops `deno publish` using some custom include/exclude behaviour from other sub commands 2. Takes ancestor directories into account when resolving gitignore 3. Backards compatible change that adds ability to unexclude an exclude by using a negated glob at a more specific level for all sub commands (see https://github.com/denoland/deno_config/pull/44). --- cli/tools/lint/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools/lint') diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index ee7350fb4..1b81fca5a 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -263,7 +263,7 @@ async fn lint_files( } fn collect_lint_files(files: FilePatterns) -> Result, AnyError> { - FileCollector::new(|path, _| is_script_ext(path)) + FileCollector::new(|e| is_script_ext(e.path)) .ignore_git_folder() .ignore_node_modules() .ignore_vendor_folder() -- cgit v1.2.3