diff --git a/lib/theme_store/directory_importer.rb b/lib/theme_store/directory_importer.rb index 50c041e406c..c8cbbe5a0a5 100644 --- a/lib/theme_store/directory_importer.rb +++ b/lib/theme_store/directory_importer.rb @@ -8,7 +8,10 @@ module ThemeStore def import! FileUtils.mkdir_p(temp_folder) - FileUtils.cp_r("#{@theme_dir}/.", temp_folder) + Dir.glob("*", base: @theme_dir) do |entry| + next if %w[node_modules src spec].include?(entry) + FileUtils.cp_r(File.join(@theme_dir, entry), temp_folder) + end end end end