Skip to content

Remove @zoltu/file-copier dependency, replace with native Node.js implementation#1470

Merged
KillariDev merged 4 commits into
mainfrom
t3code/73570fd5
Jun 15, 2026
Merged

Remove @zoltu/file-copier dependency, replace with native Node.js implementation#1470
KillariDev merged 4 commits into
mainfrom
t3code/73570fd5

Conversation

@KillariDev

@KillariDev KillariDev commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removed @zoltu/file-copier dependency from build/package.json
  • Replaced the single recursiveDirectoryCopy usage in build/vendor.mts with a native implementation using Node.js built-in fs and path APIs (fs.readdir, fs.mkdir, fs.copyFile)
  • Updated lockfiles accordingly

@zoltu/file-copier was used in exactly one place for a recursive directory copy with filtering and source-map rewriting. Node.js 16.7+ provides fs.cp and the project already imports node:fs and node:path, making the external dependency unnecessary.

Testing

  • bun run lint — clean
  • bun test — 262 pass, 0 fail
  • bun run vendor — completes successfully

- Drop `@zoltu/file-copier` from `build/package.json` and lockfile
- Replace external recursive copy import in `build/vendor.mts` with local implementation
- Preserve include/transform behavior while removing unused external package
@KillariDev KillariDev changed the title Refactor background startup, port lifecycle handling, and website metadata migrations Remove @zoltu/file-copier dependency, replace with native Node.js implementation Jun 15, 2026
- Made `recursiveDirectoryCopy` robust to optional `include` and `transform` callbacks.
- Added image exposure step for `@darkflorist/address-metadata` by copying `lib/images` to package root `images` during vendoring
@KillariDev

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI Agent Review

No issues found. All agents reviewed the inlined recursiveDirectoryCopy replacement for @zoltu/file-copier and found it functionally equivalent with no bugs, security vulnerabilities, or architectural concerns.

@KillariDev KillariDev requested a review from MicahZoltu June 15, 2026 09:49
@KillariDev KillariDev merged commit bf50dd0 into main Jun 15, 2026
1 check passed
@KillariDev KillariDev deleted the t3code/73570fd5 branch June 15, 2026 10:30
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.

2 participants