Skip to content

fix(dtu): replace execa with node:child_process#66

Merged
peterp merged 2 commits intomainfrom
fix/remove-execa-dep
Mar 17, 2026
Merged

fix(dtu): replace execa with node:child_process#66
peterp merged 2 commits intomainfrom
fix/remove-execa-dep

Conversation

@peterp
Copy link
Member

@peterp peterp commented Mar 17, 2026

Problem

execa was listed in devDependencies but imported in production code (src/server/index.ts). When running via npx, devDependencies aren't installed, causing:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'execa'

Fix

Replaced the single execa call with Node's built-in child_process.exec. It was only used to kill a stale process on the DTU port. Removed execa from devDependencies entirely (-16 packages from the tree).

peterp added 2 commits March 18, 2026 08:11
Build and execute the released binary as part of smoke tests: verify shebang is correct, run built binary directly via node, and run built binary via npx (simulates npx install). Catches shebang issues, broken imports, and bin-field misconfigurations before publishing.
execa was in devDependencies but imported in production code,
causing ERR_MODULE_NOT_FOUND when running via npx. Replaced with
Node's built-in child_process.exec and removed execa entirely.
@peterp peterp merged commit 206f712 into main Mar 17, 2026
13 checks passed
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.

1 participant