Files
pnpm/.pnpmfile.cjs
Zoltan Kochan 4d18bec33c perf: use rclonefile to fix cloning on macOS and Windows Dev Drive (#7031)
close #5001

---------

Co-authored-by: Ignacio Aldama Vicente <sr.drabx@gmail.com>
2023-10-04 12:39:02 +03:00

16 lines
452 B
JavaScript

module.exports = {
hooks: {
readPackage: (manifest) => {
if (manifest.name === '@reflink/reflink') {
for (const depName of Object.keys(manifest.optionalDependencies)) {
// We don't need refclone on Linux as Node.js supports reflinks out of the box on Linux
if (depName.includes('linux')) {
delete manifest.optionalDependencies[depName]
}
}
}
return manifest
}
}
}