Resolve local and npm package rules.