renovate: fix build

pnpm leaves behind dangling symlinks when pruning, so we just delete and reinstall instead.
This commit is contained in:
Marie Ramlow 2025-02-08 15:28:48 +01:00
parent 192a7778b4
commit 1a7523b963

View File

@ -53,7 +53,8 @@ stdenv.mkDerivation (finalAttrs: {
yq '.engines.node = "${nodejs.version}"' -i package.json
pnpm build
pnpm prune --prod --ignore-scripts
find -name 'node_modules' -type d -exec rm -rf {} \; || true
pnpm install --offline --prod --ignore-scripts
''
# The optional dependency re2 is not built by pnpm and needs to be built manually.
# If re2 is not built, you will get an annoying warning when you run renovate.