Skip to content

Commit

Permalink
Fix common_component_to_path
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyr committed Jul 20, 2022
1 parent f312fd8 commit 752bafd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/react_on_rails/packs_generator.rb
Expand Up @@ -136,7 +136,9 @@ def self.component_name_to_path(paths)
end

def self.common_component_to_path
common_components_paths = Dir.glob("#{components_search_path}/*[!(.server.|.client.)]*")
common_components_paths = Dir.glob("#{components_search_path}/*").reject do |f|
f.include?(".client.") || f.include?(".server.")
end
component_name_to_path(common_components_paths)
end

Expand Down

0 comments on commit 752bafd

Please sign in to comment.