diff --git a/lib/tailwindcss/commands.rb b/lib/tailwindcss/commands.rb index 08b70d33..89b202bf 100644 --- a/lib/tailwindcss/commands.rb +++ b/lib/tailwindcss/commands.rb @@ -42,7 +42,7 @@ def executable(exe_path: DEFAULT_DIR) MESSAGE end - exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f| + exe_file = Dir.glob(File.expand_path(File.join(exe_path, "**", "tailwindcss"))).find do |f| Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME) end end