lib/js_dependency.rb in js_dependency-0.2.0 vs lib/js_dependency.rb in js_dependency-0.2.1

- old
+ new

@@ -55,11 +55,11 @@ list = [] parents_paths(target_pathname, parent_analyze_level, index) do |parent_path, _child_path| list << parent_path end output = list.uniq - output_pathname&.write(output) + output_pathname&.write(output.sort.join("\n")) output end def self.children(src_path, target_path, alias_paths: nil, child_analyze_level: 1, output_path: nil) output_pathname = Pathname.new(output_path) if output_path @@ -73,10 +73,10 @@ list = [] children_paths(target_pathname, child_analyze_level, index) do |_parent_path, child_path| list << child_path end output = list.uniq - output_pathname&.write(output) + output_pathname&.write(output.sort.join("\n")) output end # @param [String] target_path # @param [Hash] index