From 36297f1fdcbe577da555953443a07978f23b57fe Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Mon, 3 Feb 2025 18:30:59 +0100 Subject: [PATCH] pnpm prune needs to work after build --- heroku-postbuild-cleanup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/heroku-postbuild-cleanup.js b/heroku-postbuild-cleanup.js index 35559f9..2709737 100644 --- a/heroku-postbuild-cleanup.js +++ b/heroku-postbuild-cleanup.js @@ -10,7 +10,11 @@ if (process.env.CI === undefined) { await (async () => { for await (const entry of glob("*")) { - if (entry === "heroku-postbuild-cleanup.js" || entry === "package.json") { + if ( + entry === "node_modules" || + entry === "heroku-postbuild-cleanup.js" || + entry === "package.json" + ) { continue; } try {