From 55ecf1c256f8e9637636687b53551315a26338ee Mon Sep 17 00:00:00 2001 From: Michel TURPIN Date: Thu, 4 Jan 2024 16:13:36 +0100 Subject: [PATCH] fix: use real path for module root dir (#6524) --- pkg-manager/plugin-commands-installation/src/recursive.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg-manager/plugin-commands-installation/src/recursive.ts b/pkg-manager/plugin-commands-installation/src/recursive.ts index bf77d8eb18f..07d12075bbc 100755 --- a/pkg-manager/plugin-commands-installation/src/recursive.ts +++ b/pkg-manager/plugin-commands-installation/src/recursive.ts @@ -170,6 +170,7 @@ export async function recursive ( const calculatedRepositoryRoot = await fs.realpath(calculateRepositoryRoot(opts.workspaceDir, importers.map(x => x.rootDir))) const isFromWorkspace = isSubdir.bind(null, calculatedRepositoryRoot) importers = await pFilter(importers, async ({ rootDir }: { rootDir: string }) => isFromWorkspace(await fs.realpath(rootDir))) + importers = await Promises.all(async ({rootDir, ...rest}) => ({ rootDir: await fs.realpath(rootDir), ...rest })) if (importers.length === 0) return true let mutation!: string switch (cmdFullName) {