chore(deps): remove tsx dependency and use Node native TypeScript execution#1525
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1525 +/- ##
==========================================
- Coverage 93.58% 83.63% -9.96%
==========================================
Files 5 5
Lines 78 55 -23
Branches 13 6 -7
==========================================
- Hits 73 46 -27
Misses 4 4
- Partials 1 5 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…cution - Remove tsx from root and packages/bod devDependencies - Replace tsx with node in all script entries (badge, canary, release, dev) - Add "type": "module" to root package.json for ESM detection - Change .js import extensions to .ts for Node native TS compatibility - Replace __dirname with import.meta.dirname in scripts - Add esbuild for JS bundling, use tsc for declarations only - Update bin/bod.js from require() to import (ESM compatibility) - Bump engines.node from >=18.0.0 to >=24.0.0 in all package.json files - Update AGENTS.md docs to reflect Node >=24 requirement
sabertazimi
force-pushed
the
chore/remove-tsx-bump-node-24
branch
from
June 5, 2026 11:33
32c18ea to
d828e4c
Compare
Remove esbuild from devDependencies and switch the compile script from `tsc && esbuild --bundle` to pure `tsc`. Configure tsconfig with rootDir and remove emitDeclarationOnly so tsc handles both type-checking and JavaScript output.
github-actions Bot
added a commit
that referenced
this pull request
Jun 5, 2026
…cution (#1525) * chore(deps): remove tsx dependency and use Node native TypeScript execution - Remove tsx from root and packages/bod devDependencies - Replace tsx with node in all script entries (badge, canary, release, dev) - Add "type": "module" to root package.json for ESM detection - Change .js import extensions to .ts for Node native TS compatibility - Replace __dirname with import.meta.dirname in scripts - Add esbuild for JS bundling, use tsc for declarations only - Update bin/bod.js from require() to import (ESM compatibility) - Bump engines.node from >=18.0.0 to >=24.0.0 in all package.json files - Update AGENTS.md docs to reflect Node >=24 requirement * chore(deps): remove esbuild dependency and use tsc-only compilation Remove esbuild from devDependencies and switch the compile script from `tsc && esbuild --bundle` to pure `tsc`. Configure tsconfig with rootDir and remove emitDeclarationOnly so tsc handles both type-checking and JavaScript output. 34d4559
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove
tsxandts-nodedependencies, leveraging Node v24's native TypeScript support (--experimental-strip-types).Changes
tsxfrom root andpackages/boddevDependenciestsxwithnodein all script entries (badge,canary,release,dev)"type": "module"to rootpackage.jsonfor ESM detection.jsimport extensions to.tsacross all source and test files (Node native TS doesn't rewrite.js→.ts)__dirnamewithimport.meta.dirnamein scriptsesbuildfor JS bundling inpackages/bod;tscnow emits declarations onlybin/bod.jsfromrequire()toimport(ESM compatibility)engines.nodefrom>=18.0.0to>=24.0.0in all 4package.jsonfilesAGENTS.mddocs to reflectNode >=24requirementTest plan
pnpm build— all packages compile successfullypnpm vitest run— 29/29 tests passpnpm dev --help— CLI runs vianode ./src/bod.tsnode scripts/badge.ts— root scripts execute correctlynode packages/bod/bin/bod.js --help— compiled binary workstsc --noEmit— type checking passes