0992d50699
• Update all GitHub workflow files to use pnpm instead of npm • Replace npm commands with pnpm equivalents in devcontainer scripts • Remove package-lock.json files and update to use pnpm-lock.yaml • Consolidate node version references to use server/.nvmrc
26 lines
803 B
JavaScript
26 lines
803 B
JavaScript
module.exports = {
|
|
hooks: {
|
|
readPackage: (pkg) => {
|
|
if (pkg.name && pkg.name === "exiftool-vendored") {
|
|
if (pkg.optionalDependencies["exiftool-vendored.pl"]) {
|
|
pkg.dependencies["exiftool-vendored.pl"] =
|
|
pkg.optionalDependencies["exiftool-vendored.pl"];
|
|
delete pkg.optionalDependencies["exiftool-vendored.pl"];
|
|
}
|
|
}
|
|
if (pkg.name && pkg.name === "sharp") {
|
|
const optionalDeps = Object.keys(pkg.optionalDependencies).filter(
|
|
(dep) => dep.startsWith("@img")
|
|
);
|
|
for (const dep of optionalDeps) {
|
|
if (dep.includes("musl") || process.env.SKIP_SHARP_FILTERING) {
|
|
continue;
|
|
}
|
|
delete pkg.optionalDependencies[dep];
|
|
}
|
|
}
|
|
return pkg;
|
|
},
|
|
},
|
|
};
|