setup: fix Cannot destructure property 'includeSelf' from null or undefined value

This commit is contained in:
Abdullah Atta
2025-10-11 19:35:10 +05:00
parent 3eccb1633b
commit 17efaf9932

View File

@@ -40,7 +40,7 @@ export async function findPackages(projects, root) {
return pkgs;
}
export async function findDependencies(packagePath, { includeSelf }) {
export async function findDependencies(packagePath, { includeSelf } = {}) {
const key = path.resolve(packagePath);
if (depMemo.has(key)) return Array.from(depMemo.get(key));
const pkg = readPackage(packagePath);