chore: some->forEach (#424)

This commit is contained in:
Luo Yu 2019-11-04 13:28:11 -06:00 committed by Evan You
parent 25af8dc73b
commit fec47bb3ac

View File

@ -14,7 +14,7 @@ const targets = (exports.targets = fs.readdirSync('packages').filter(f => {
exports.fuzzyMatchTarget = (partialTargets, includeAllMatching) => {
const matched = []
partialTargets.some(partialTarget => {
partialTargets.forEach(partialTarget => {
for (const target of targets) {
if (target.match(partialTarget)) {
matched.push(target)