class Importmap::Commands

def remove_line_from_file(path, pattern)

def remove_line_from_file(path, pattern)
  path = File.expand_path(path, destination_root)
  all_lines = File.readlines(path)
  with_lines_removed = all_lines.select { |line| line !~ pattern }
  File.open(path, "w") do |file|
    with_lines_removed.each { |line| file.write(line) }
  end
end