Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
mattquinlan440 committed Jul 10, 2024
1 parent 0cd95b8 commit 3ff9554
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function resolveRequiredDependencyScripts({ dependencies, dependencyMap }
ac.assertType(dependencies, Object, 'dependencies');
ac.assertType(dependencyMap, Object, 'dependencyMap');

const scriptsArray = dependencies.reduce((scriptsArray, dependency) => {
if(dependencyMap[dependency.packageName]) {
const dependencyScripts = dependencies.reduce((scriptsArray, dependency) => {
if (dependencyMap[dependency.packageName]) {
const scripts = getScripts({
externalPackageEntry: dependencyMap[dependency.packageName],
version: dependency.version
Expand All @@ -27,5 +27,5 @@ export function resolveRequiredDependencyScripts({ dependencies, dependencyMap }
return scriptsArray;
}, []);

return scriptsArray;
return dependencyScripts;
}

0 comments on commit 3ff9554

Please sign in to comment.