Skip to content

Commit df5013d

Browse files
authored
Add accessible raw config (#28)
1 parent c4e733f commit df5013d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/parse_packwerk/configuration.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class Configuration < T::Struct
77
const :exclude, T::Array[String]
88
const :package_paths, T::Array[String]
99
const :requires, T::Array[String]
10+
const :raw, T::Hash[String, T.untyped]
1011

1112
sig { returns(Configuration) }
1213
def self.fetch
@@ -22,7 +23,8 @@ def self.fetch
2223
Configuration.new(
2324
exclude: excludes(raw_packwerk_config),
2425
package_paths: package_paths(raw_packwerk_config),
25-
requires: raw_packwerk_config['require'] || []
26+
requires: raw_packwerk_config['require'] || [],
27+
raw: raw_packwerk_config
2628
)
2729
end
2830

0 commit comments

Comments
 (0)