Skip to content

Commit 0969349

Browse files
committed
lint
1 parent bb184f0 commit 0969349

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/host/src/node/path-utils.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -308,23 +308,27 @@ export function findPackageDependencyPaths(
308308
path.join(packageRoot, "noop.js"),
309309
);
310310

311-
const { dependencies = {}, napiDependencies = [] } = readPackageSync({ cwd: packageRoot });
311+
const { dependencies = {}, napiDependencies = [] } = readPackageSync({
312+
cwd: packageRoot,
313+
});
312314

313315
const safeNApiDependencies: string[] = Array.isArray(napiDependencies)
314316
? napiDependencies.map(String)
315317
: [];
316318

317319
return Object.fromEntries(
318-
Object.keys(dependencies).concat(safeNApiDependencies).flatMap((dependencyName) => {
319-
const resolvedDependencyRoot = resolvePackageRoot(
320-
requireFromPackageRoot,
321-
dependencyName,
322-
);
320+
Object.keys(dependencies)
321+
.concat(safeNApiDependencies)
322+
.flatMap((dependencyName) => {
323+
const resolvedDependencyRoot = resolvePackageRoot(
324+
requireFromPackageRoot,
325+
dependencyName,
326+
);
323327

324-
return resolvedDependencyRoot
325-
? [[dependencyName, resolvedDependencyRoot]]
326-
: [];
327-
}),
328+
return resolvedDependencyRoot
329+
? [[dependencyName, resolvedDependencyRoot]]
330+
: [];
331+
}),
328332
);
329333
}
330334

0 commit comments

Comments
 (0)