From 40fbc12c16b1a4a62526eec722b8829b6f122c35 Mon Sep 17 00:00:00 2001 From: Oscar Busk Date: Tue, 28 Oct 2025 00:45:12 +0100 Subject: [PATCH] Actually check for run_install before store_prune, to match documentation --- dist/index.js | Bin 271682 -> 271682 bytes src/pnpm-store-prune/index.ts | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index c71dedaa3bc692f396a1e3949cf6fa2d1024959e..98ad5297ac70c778f9d8a7a6537388106463d347 100644 GIT binary patch delta 38 rcmX?fO5o5bfem}5CrisLnY>Fnu6e&q`+gZlAZ7w$=I#4sSeiKiQX~(c delta 38 rcmX?fO5o5bfem}5C#T3nPu?ZHym`M&`+gZlAZ7w$=I#4sSeiKiSo{y^ diff --git a/src/pnpm-store-prune/index.ts b/src/pnpm-store-prune/index.ts index 1c3a85f..51814ea 100644 --- a/src/pnpm-store-prune/index.ts +++ b/src/pnpm-store-prune/index.ts @@ -4,13 +4,13 @@ import { Inputs } from '../inputs' import { patchPnpmEnv } from '../utils' export function pruneStore(inputs: Inputs) { - if (!inputs.storePrune) { - console.log('Store pruning is disabled, skipping pnpm store prune.') + if (inputs.runInstall.length === 0) { + console.log('No install commands were run, skipping pnpm store prune, remember to run it after pnpm install if caching the store.') return } - if (inputs.runInstall.length === 0) { - console.log('No install commands were run, skipping pnpm store prune, remember to run it after pnpm install if caching the store.') + if (!inputs.storePrune) { + console.log('Store pruning is disabled, skipping pnpm store prune.') return }