Skip to content

Commit

Permalink
fix: path the project directory to the readPackage hook
Browse files Browse the repository at this point in the history
close #5443
  • Loading branch information
zkochan committed Oct 10, 2022
1 parent 96b507b commit ad0aebf
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
}

0 comments on commit ad0aebf

Please sign in to comment.