Skip to content

Commit 1a7523b

Browse files
committed
renovate: fix build
pnpm leaves behind dangling symlinks when pruning, so we just delete and reinstall instead.
1 parent 192a777 commit 1a7523b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/by-name/re/renovate/package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ stdenv.mkDerivation (finalAttrs: {
5353
yq '.engines.node = "${nodejs.version}"' -i package.json
5454
5555
pnpm build
56-
pnpm prune --prod --ignore-scripts
56+
find -name 'node_modules' -type d -exec rm -rf {} \; || true
57+
pnpm install --offline --prod --ignore-scripts
5758
''
5859
# The optional dependency re2 is not built by pnpm and needs to be built manually.
5960
# If re2 is not built, you will get an annoying warning when you run renovate.

0 commit comments

Comments
 (0)