• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kikobeats / untracked / 43605142951
94%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2026 02:30PM UTC
Jobs 3
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Nov 2026 02:29PM UTC coverage: 94.149% (-2.5%) from 96.61%
43605142951

push

github

web-flow
feat: add prune command (#63)

* feat: add prune command

`untracked prune [dir]` deletes files no production code reads from an
installed node_modules: source maps, type definitions, Flow sources,
readmes and changelogs. Ignore files only filter what gets copied, so
they cannot reach dependencies installed inside a Docker `RUN`.

It matches file names only, never follows symlinks, and keeps licenses,
dotfiles and typescript/lib. `--keep` takes relative or absolute paths,
`--dry-run` lists what would go, unknown flags are rejected, and an
unreadable or undeletable path is reported with exit code 1 while the
rest of the tree is still pruned.

On microlink-api's production dependencies: 17,489 files, 110.9 MB, in
about a second, with every dependency still loading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(prune): address review comments

- Match relative --keep paths against the path below the prune root, so
  an ancestor directory such as typescript/lib no longer turns the walk
  into a no-op. typescript's lib is still kept wherever it lives
  (node_modules/typescript/lib).
- `--keep /` no longer trims to the empty string and resolves to cwd.
- Set process.exitCode instead of calling process.exit, so a large
  dry-run piped to another process is not cut off.
- engines.node >= 20: tinyspawn already requires it.
- Resolve the CLI path in tests with fileURLToPath.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(prune): keep top-level typescript/lib and the root keep

A dependency tree copied to a custom root has typescript/lib at its top, which the node_modules/typescript/lib rule missed. A relative keep that normalizes to . now keeps the whole root instead of matching nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(prune): identify typescript lib by its package.json

Path rules missed a shape each round (custom roots, the typescript package as the root). A lib directory whose parent package.... (continued)

115 of 122 branches covered (94.26%)

Branch coverage included in aggregate %.

207 of 223 new or added lines in 5 files covered. (92.83%)

416 of 442 relevant lines covered (94.12%)

3477.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
79.82
bin/index.js
Jobs
ID Job ID Ran Files Coverage
1 43605142951.1 14 Nov 2026 02:30PM UTC 8
94.15
GitHub Action Run
2 43605142951.2 14 Nov 2026 02:38PM UTC 8
94.15
GitHub Action Run
3 43605142951.3 14 Nov 2026 02:42PM UTC 8
94.15
GitHub Action Run
Source Files on build 43605142951
  • Tree
  • List 8
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43605142951
  • 9ad6e5ba on github
  • Prev Build on master (#30846904035)
  • Next Build on master (#44051235418)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc