apply single file rule for packages