From c094a1c549f821df9066a7dd3758bdc2b27522ba Mon Sep 17 00:00:00 2001 From: isaiahshall <95551503+isaiahshall@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:39:25 -0400 Subject: [PATCH] chore(turbo): added a Makefile command for clearing the turborepo local build cache (#6362) Co-authored-by: Isaiah Hall --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 2e78587dd5de..1dc19677d86b 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,12 @@ turbo-build: tpk: npx turbo run build --filter='./packages/*' +# Clears the Turborepo local build cache +turbo-clean: + @read -p "Are you sure you want to delete your local cache? [y/N]: " ans && [ $${ans:-N} = y ] + @echo "\nDeleted cache folders: \n--------" + @find . -name '.turbo' -type d -prune -print -exec rm -rf '{}' + && echo '\n' + server-protocols: yarn generate-clients -s yarn test:server-protocols