{"repo":"RoyBkker/next-nuke","free":true,"listed":false,"github":"https://github.com/RoyBkker/next-nuke","clone":"git clone https://github.com/RoyBkker/next-nuke.git","description":"npkill for Next.js — nuke bloated .next folders and reinstall a fresh instance. Monorepo & pnpm aware.","language":"TypeScript","stars":12,"topics":["cli","developer-tools","devtools","disk-space","monorepo","nextjs","nodejs","pnpm","turborepo"],"license":"MIT","category":"dev-tools","readme_excerpt":"next-nuke Reset a Next.js project's build state in one command. next-nuke finds every .next in your repo, shows you what it will delete and how much disk you get back, and can reinstall dependencies afterwards. Monorepo- and pnpm-aware. --- Why not rm -rf .next ? Usually rm -rf .next is fine. Two cases where it isn't: Turborepo can put the folder straight back. turbo build caches task outputs keyed on an input hash, and a standard Next.js pipeline lists .next/ among those outputs. Delete .next , rebuild without changing an input, and Turbo reports a cache hit and restores the build you just deleted. The clean rebuild you thought you did is the old build. next-nuke notices the .turbo cache and tells you; --turbo clears it. A monorepo has more than one. You need to know where every app lives, and you probably want to skip some of them. next-nuke finds them, sizes them, and gives you a checklist. There's also the reinstall. --full deletes node modules alongside .next , works out which package manager your lockfile belongs to, and runs a single install at the workspace root. --- Safety next-nuke runs rm -rf , so it's built defensively: - It only ever deletes folders named .next , node modules , .turbo , .next/cache , or .next/dev/cache — never your source files, configs, or documents. Every path is re-checked against this rule immediately before deletion. - It refuses to run at your home directory, the filesystem root, or any ancestor of home. - It stays in scope — every target m","default_branch":null,"files":null,"tree":[],"storefront":"/r/RoyBkker","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RoyBkker/next-nuke/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}