From 539785cee40ea366af0128f5e6ca0b1a8a622855 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 27 Apr 2024 00:26:07 +0800 Subject: [PATCH] ignore xmake.lua for apis --- xmake/plugins/show/lists/apis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/plugins/show/lists/apis.lua b/xmake/plugins/show/lists/apis.lua index 7e481b2064c..f42f4b8399b 100644 --- a/xmake/plugins/show/lists/apis.lua +++ b/xmake/plugins/show/lists/apis.lua @@ -275,7 +275,7 @@ function script_extension_module_apis() local moduledirs = module.directories() for _, moduledir in ipairs(moduledirs) do moduledir = path.absolute(moduledir) - local modulefiles = os.files(path.join(moduledir, "**.lua|xmake.lua|private/**.lua|core/tools/**.lua|detect/tools/**.lua")) + local modulefiles = os.files(path.join(moduledir, "**.lua|**/xmake.lua|private/**.lua|core/tools/**.lua|detect/tools/**.lua")) if modulefiles then for _, modulefile in ipairs(modulefiles) do local modulename = path.relative(modulefile, moduledir)