Skip to content

Drop filter-files and mkdirp in favour of native fs#168

Merged
soulgalore merged 1 commit into
mainfrom
drop-filter-files-mkdirp
May 17, 2026
Merged

Drop filter-files and mkdirp in favour of native fs#168
soulgalore merged 1 commit into
mainfrom
drop-filter-files-mkdirp

Conversation

@soulgalore
Copy link
Copy Markdown
Member

The combine build step used filter-files to enumerate category directories
and JS files under lib/dom, and mkdirp in an npm script to create the dist
output directory. Both jobs are a few lines of node:fs (readdirSync,
statSync, mkdirSync recursive), so the dependencies were carrying their
weight purely to spell those primitives.

The combine script now ensures its own output directory exists, which lets
the npm script collapse to a single node call. With this change coach-core
ships with three runtime dependencies — pagexray, third-party-web,
wappalyzer-core — and no incidental ones.

Co-authored-by: Claude noreply@anthropic.com

  The combine build step used filter-files to enumerate category directories
  and JS files under lib/dom, and mkdirp in an npm script to create the dist
  output directory. Both jobs are a few lines of node:fs (readdirSync,
  statSync, mkdirSync recursive), so the dependencies were carrying their
  weight purely to spell those primitives.

  The combine script now ensures its own output directory exists, which lets
  the npm script collapse to a single node call. With this change coach-core
  ships with three runtime dependencies — pagexray, third-party-web,
  wappalyzer-core — and no incidental ones.

  Co-authored-by: Claude noreply@anthropic.com
@soulgalore soulgalore merged commit c07bf9e into main May 17, 2026
3 checks passed
@soulgalore soulgalore deleted the drop-filter-files-mkdirp branch May 17, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant