Skip to content
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

Fix stdio option #634

Merged
merged 1 commit into from
Dec 21, 2023
Merged

Fix stdio option #634

merged 1 commit into from
Dec 21, 2023

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Dec 21, 2023

This fixes the stdio option. Its types are currently incorrect.

Also, when passing more than 3 values to the stdio option (i.e. creating custom file descriptors), the additional values should work like the stdin/stdout/stderr options, e.g. allow web streams, file paths, file URLs, etc.

This PR also adds a better error message when users pass a Node.js stream to execaSync(). child_process.spawnSync() already forbids it, but the error message is less clear.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
panzarino Zach Panzarino
@sindresorhus sindresorhus merged commit 640ae39 into main Dec 21, 2023
@sindresorhus sindresorhus deleted the custom-fd branch December 21, 2023 20:22
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.

None yet

2 participants