Skip to content

perf: replace execa to nano-spawn#101

Merged
yusukebe merged 2 commits intohonojs:mainfrom
ryoppippi:feat/execa
May 18, 2025
Merged

perf: replace execa to nano-spawn#101
yusukebe merged 2 commits intohonojs:mainfrom
ryoppippi:feat/execa

Conversation

@ryoppippi
Copy link
Copy Markdown
Contributor

@ryoppippi ryoppippi commented May 13, 2025

Hi @yusukebe !

This pr replaces execa to nano-spawn. As a result, the bin size is 0.5MB smaller.
I don't modify the test code because it is just works fine.
Also nano-spawn is esm only library and the previous tsconfig doesn't work for getting type info of nano-spawn, so I modified the moduleResolution to bundler

@ryoppippi ryoppippi changed the title fix: module resolution is bundler fix: replace execa to nano-spawn May 13, 2025
Copy link
Copy Markdown
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe yusukebe changed the title fix: replace execa to nano-spawn perf: replace execa to nano-spawn May 18, 2025
@yusukebe
Copy link
Copy Markdown
Member

@ryoppippi

Looks good. I've relabeled it as perf. Using perf is typically used to improve speed. However, reducing file size is also akin to performance tuning.

With PR, I'll release a patch version that includes this change.

Thanks!

@yusukebe yusukebe merged commit 8248e68 into honojs:main May 18, 2025
3 checks passed
@ryoppippi ryoppippi deleted the feat/execa branch May 18, 2025 19:37
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