function findLockfile(rootDirectory, config) {
	return config.lockfiles
		.map(filename => path.resolve(rootDirectory || '.', filename))
		.find(filepath => fs.existsSync(filepath));
}
@param {string} rootDirectory
@param {import('./types.d.ts').PackageManagerConfig} config