From ad0aebf30c3f306f3a2f2d9735df4fce30809477 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 10 Oct 2022 18:21:34 +0300 Subject: [PATCH] fix: path the project directory to the readPackage hook close #5443 --- packages/hooks.read-package-hook/src/createReadPackageHook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks.read-package-hook/src/createReadPackageHook.ts b/packages/hooks.read-package-hook/src/createReadPackageHook.ts index 8bb10756252..c75056dd546 100644 --- a/packages/hooks.read-package-hook/src/createReadPackageHook.ts +++ b/packages/hooks.read-package-hook/src/createReadPackageHook.ts @@ -61,6 +61,6 @@ export function createReadPackageHook ( } const readPackageAndExtend = hooks.length === 1 ? hooks[0] - : ((pkg: PackageManifest | ProjectManifest, dir: string) => pipeWith(async (f, res) => f(await res, dir), hooks as any)(pkg)) as ReadPackageHook // eslint-disable-line @typescript-eslint/no-explicit-any + : ((pkg: PackageManifest | ProjectManifest, dir: string) => pipeWith(async (f, res) => f(await res, dir), hooks as any)(pkg, dir)) as ReadPackageHook // eslint-disable-line @typescript-eslint/no-explicit-any return readPackageAndExtend }