Skip to content

replace spawndamnit with tinyexec - #1875

Merged
Andarist merged 12 commits into
changesets:nextfrom
beeequeue:tinyexec
Mar 25, 2026
Merged

replace spawndamnit with tinyexec#1875
Andarist merged 12 commits into
changesets:nextfrom
beeequeue:tinyexec

Conversation

@beeequeue

Copy link
Copy Markdown
Member

part of #1869

replaces spawndamnit with the smaller tinyexec which will also dedupe much better as many other packages use it, as can even be seen in this repo! 😄

image

the only change code-wise is that tinyexec puts the node-specific options under nodeOptions instead of the root options objects:

-spawn("ls", { cwd: "./foo" })
+exec("ls", { nodeOptions: { cwd: "./foo" } })

@changeset-bot

changeset-bot Bot commented Mar 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4de524d

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

This PR includes changesets to release 7 packages
Name Type
@changesets/release-utils Major
@changesets/apply-release-plan Patch
@changesets/test-utils Patch
@changesets/cli Patch
@changesets/git Patch
@changesets/read Patch
@changesets/get-release-plan Patch

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

@codecov

codecov Bot commented Mar 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.69231% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.52%. Comparing base (74ad3f3) to head (4de524d).
⚠️ Report is 1 commits behind head on next.

Files with missing lines Patch % Lines
packages/cli/src/commands/publish/npm-utils.ts 0.00% 5 Missing and 2 partials ⚠️
packages/git/src/index.ts 94.73% 1 Missing ⚠️
packages/release-utils/src/run.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1875      +/-   ##
==========================================
+ Coverage   82.50%   82.52%   +0.01%     
==========================================
  Files          53       53              
  Lines        2384     2357      -27     
  Branches      698      697       -1     
==========================================
- Hits         1967     1945      -22     
+ Misses        375      370       -5     
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/apply-release-plan/src/index.test.ts Outdated
Comment on lines -95 to -101
const activeProcesses = new Set<ChildProcess>();

onExit(() => {
for (let child of activeProcesses) {
child.kill(SIGTERM);
}
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow, this dates back to: df424a4#diff-bc83e21a29c754b54d601fc5b2ab7be373aba7da931f30bf0b7a986dbf87defa

I have NO recollection of adding this 😅

Comment thread packages/release-utils/src/run.ts
Comment thread packages/release-utils/src/utils.ts
Comment thread packages/release-utils/src/utils.test.ts Outdated
@Andarist
Andarist merged commit 12f20ea into changesets:next Mar 25, 2026
8 checks passed
@beeequeue
beeequeue deleted the tinyexec branch March 27, 2026 15:42
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.

3 participants