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

Improve validation of execaSync() options #940

Merged
merged 1 commit into from
Mar 30, 2024
Merged

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Mar 29, 2024

This PR throws when using execaSync() with:

  • stdio: [..., 'ipc'] option, to give a better error message than child_process.spawnSync() does
  • detached: true option, since that's a noop with spawnSync()
  • cancelSignal option, since that's a noop with spawnSync(), and cannot be emulated by Execa since that would require sending a termination signal, and the PID is only known after the subprocess ended, when using spawnSync()

@sindresorhus sindresorhus merged commit f6e1ac1 into main Mar 30, 2024
14 checks passed
@sindresorhus sindresorhus deleted the validate-sync-values branch March 30, 2024 03:25
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