#!/usr/bin/env ruby # frozen_string_literal: true # This file was auto-generated by Packwerk through `packwerk init` # Needs to be run in test environment in order to have test helper paths available in the autoload paths ENV["RAILS_ENV"] = "test" # Command line arguments needs to be duplicated because spring modifies it packwerk_argv = ARGV.dup begin load(File.expand_path("../spring", __FILE__)) rescue LoadError => e raise unless e.message.include?("spring") end require File.expand_path("../../config/environment", __FILE__) require "packwerk" cli = Packwerk::Cli.new cli.run(packwerk_argv)