Repository navigation
What's Changed
- Remove programmatic API (
src/index.ts, CJS/ESM library exports, type declarations). CLI-only distribution. - Drop
main,module,types, andexportsfields frompackage.json. Build produces onlydist/cli.js. - Fix Windows command execution: replace
resolveExecutablewrapper withshell: trueon Win32 inrunCommandandinstallUpdate. - Fix
installUpdateto passshell: process.platform === "win32"tospawninstead of resolvingnpm.cmdmanually. - Export
installUpdatefrom public API (was missing). - Restrict CI workflow triggers to
mainbranch for bothpushandpull_requestevents. - Expand test coverage for cleanup, detection, and safety-matrix edge cases.
- Add
sweep <dir>command: walk a directory tree, find all project roots, detect caches per project, display a sorted table with project, cache path, size, and age. Supports--days/--min-ageto filter by cache age,--dry-run,--json, and interactive multi-select cleanup. - Add
reclaim <size>command: parse a human-readable size target (e.g.5gb,500mb), auto-select the safest candidates (safe → oldest → largest) until the target is met, display a plan, and confirm before deleting. Supports--dry-run,--yes, and--json. - Add runtime active-process protection: automatically scan running dev servers (
next dev,vite,turbo,jest --watch,vitest,playwright,cypress); skip active caches with PID indicator unless--forceis used. - Add
orphanedcommand and--orphanedflag: detect caches whose tools, dependencies, or configuration files no longer exist in the project; preview with--dry-runor clear interactively. - Add Docker build cache support (
nkc list --docker,nkc clean --docker): inspect build cache size withdocker system dfand prune safely withdocker builder prune.
Install
npm install -g nukecacheFull changelog: https://github.com/kiron0/nukecache/commits/v0.6.0