Skip to content

Commit

Permalink
perf(cli): reads webpack, typescript and babel config options in para…
Browse files Browse the repository at this point in the history
…llel (#797)
  • Loading branch information
sverweij authored Apr 24, 2023
1 parent 8a89bd8 commit 307c307
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .dependency-cruiser.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"^node_modules",
"^\\.yarn/cache",
"^os$",
"^fs$",
"^fs(/promises)?$",
"^path$",
"^url$",
"$1",
Expand Down
12 changes: 7 additions & 5 deletions src/cli/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ async function runCruise(pFileDirectoryArray, pCruiseOptions) {
setUpListener(lCruiseOptions);

bus.emit("start");
const [lResolveOptions, tsConfig, babelConfig] = await Promise.all([
extractResolveOptions(lCruiseOptions),
extractTSConfigOptions(lCruiseOptions),
extractBabelConfigOptions(lCruiseOptions),
]);
const lReportingResult = await cruise(
pFileDirectoryArray,
lCruiseOptions,
await extractResolveOptions(lCruiseOptions),
{
tsConfig: await extractTSConfigOptions(lCruiseOptions),
babelConfig: await extractBabelConfigOptions(lCruiseOptions),
}
lResolveOptions,
{ tsConfig, babelConfig }
);

bus.emit("progress", "cli: writing results", { complete: 1 });
Expand Down

0 comments on commit 307c307

Please sign in to comment.