Skip to content

fix: cross-platform clean script for Windows#45

Open
HJSTechnology wants to merge 1 commit into
wyre-technology:mainfrom
HJSTechnology:fix/windows-clean-script
Open

fix: cross-platform clean script for Windows#45
HJSTechnology wants to merge 1 commit into
wyre-technology:mainfrom
HJSTechnology:fix/windows-clean-script

Conversation

@HJSTechnology

Copy link
Copy Markdown

Summary

Replaces the Unix-only rm -rf dist in the clean npm script with a cross-platform Node fs.rmSync call.

- "clean": "rm -rf dist",
+ "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",

clean runs via the prebuild hook, so on Windows (where rm is unavailable) the build previously failed. This makes npm run clean, npm run build, and npm test work on Windows, macOS, and Linux.

Notes

  • Lockfile-only dependency bumps in the working tree are intentionally left out of this PR to keep it focused.

🤖 Generated with Claude Code

Replace `rm -rf dist` with a Node fs.rmSync call so `npm run clean`
(and the prebuild hook that depends on it) works on Windows where
`rm` is unavailable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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