mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-23 15:18:15 -05:00
16 lines
452 B
JavaScript
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
|
|
}
|
|
}
|
|
}
|