Skip to content

fix: add -p flag to mkdir to prevent build error on Unix systems #3411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

sw1tch3roo
Copy link

@sw1tch3roo sw1tch3roo commented Jul 6, 2025

This PR fixes a build issue on Unix-like systems (e.g., macOS, Linux) where the command mkdir in packages/playground-examples/scripts/copyFiles.js fails because the parent directories may not exist.

Added a check to ensure the target directory exists before calling mkdir.

Replaced mkdir with mkdir -p to avoid errors when the directory tree doesn't exist.

Tested locally: the build now completes successfully on macOS.

Thank you for reviewing this fix!

P.S. This issue doesn't occur on Windows because mkdir there behaves like mkdir -p by default, but it fails on Unix-based systems without the -p flag.

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