Skip to content

Commit

Permalink
Optimize findManifestDependencies (#247)
Browse files Browse the repository at this point in the history
* Optimize findManifestDependencies

* Fix return
  • Loading branch information
Connormiha authored Sep 19, 2023
1 parent 0a94bc4 commit 43b68a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const findManifestDependencies = async ({ manifest, isProduction, isStrict, dir,

const scripts = Object.entries(manifest.scripts ?? {}).reduce((scripts, [scriptName, script]) => {
if (script && (scriptFilter.length === 0 || scriptFilter.includes(scriptName))) {
return [...scripts, script];
scripts.push(script);
}
return scripts;
}, [] as string[]);
Expand Down

0 comments on commit 43b68a8

Please sign in to comment.