Skip to content

Conversation

@pralkarz
Copy link
Contributor

@pralkarz pralkarz commented Sep 4, 2024

This PR replaces execa with a lighter alternative.

Some notes:

  1. tinyexec only provides an asynchronous API. My changes aim to keep the existing behavior through async/await, while also following the ESLint rules (e.g. not inlining (await func(...)).stdout but extracting the await output to a separate variable).
  2. I went ahead and added some miscellaneous things to .gitignore for smoother DX. 😄
  3. I tackled the comments regarding mocking execaSync (now x). Please let me know if you'd prefer to keep the old approach.

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: 00d1b94

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
pretty-quick Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 4, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pralkarz pralkarz changed the title chore: Replace execa with tinyexec chore: replace execa with tinyexec Sep 7, 2024
@JounQin
Copy link
Member

JounQin commented Mar 4, 2025

Sorry I didn't notice this PR for a long time, seems great.

@JounQin JounQin enabled auto-merge (squash) March 4, 2025 15:46
@JounQin JounQin disabled auto-merge March 4, 2025 15:46
@JounQin JounQin enabled auto-merge (squash) March 4, 2025 15:46
@JounQin JounQin changed the title chore: replace execa with tinyexec feat: replace execa with tinyexec Mar 4, 2025
@JounQin JounQin merged commit dcf5da4 into prettier:master Mar 4, 2025
7 of 8 checks passed
@pralkarz pralkarz deleted the execa-to-tinyexec branch March 4, 2025 18:01
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