diff --git a/lib/motoko/config.rb b/lib/motoko/config.rb index 798c60d..9b2310b 100644 --- a/lib/motoko/config.rb +++ b/lib/motoko/config.rb @@ -35,6 +35,7 @@ def load_user_config end def load_project_config + load_classes('.motoko') load_only_config('.motoko.yaml') end @@ -57,7 +58,7 @@ def load_only_config(filename) def load_classes(directory) Dir["#{directory}/formatters/*.rb", "#{directory}/resolvers/*.rb"].sort.each do |file| - require file + require File.expand_path(file) end end