# pnpm refuses to install (ERR_PNPM_IGNORED_BUILDS) if a dependency has a # postinstall script that is neither approved nor explicitly declined. # # `allowBuilds` is the pnpm 11 spelling; `ignoredBuiltDependencies` is kept for # pnpm 10, which does not understand `allowBuilds`. Both must list the same # packages. None of these are needed to run `next build`: # sharp — image-optimisation binary; unused, the app has no next/image # unrs-resolver — native resolver for eslint-config-next (lint only) # msw — pulled in by the `shadcn` CLI; its postinstall only writes a # browser service worker allowBuilds: msw: false sharp: false unrs-resolver: false ignoredBuiltDependencies: - sharp - unrs-resolver - msw