Skip to content

Commit

Permalink
Add accessible raw config (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
shageman authored Jul 11, 2023
1 parent c4e733f commit df5013d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/parse_packwerk/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Configuration < T::Struct
const :exclude, T::Array[String]
const :package_paths, T::Array[String]
const :requires, T::Array[String]
const :raw, T::Hash[String, T.untyped]

sig { returns(Configuration) }
def self.fetch
Expand All @@ -22,7 +23,8 @@ def self.fetch
Configuration.new(
exclude: excludes(raw_packwerk_config),
package_paths: package_paths(raw_packwerk_config),
requires: raw_packwerk_config['require'] || []
requires: raw_packwerk_config['require'] || [],
raw: raw_packwerk_config
)
end

Expand Down

0 comments on commit df5013d

Please sign in to comment.