Skip to content

build: drop tsx, run tests on bare node#64

Merged
ungoldman merged 2 commits into
mainfrom
drop-tsx
Jul 6, 2026
Merged

build: drop tsx, run tests on bare node#64
ungoldman merged 2 commits into
mainfrom
drop-tsx

Conversation

@ungoldman

Copy link
Copy Markdown
Owner

Removes tsx from the toolchain. Relative imports now carry the real .ts extension and tsc rewrites them to .js at emit (rewriteRelativeImportExtensions, TS 5.7+), so bare node --test resolves everything natively.

Changes

  • src and test relative imports use .ts extensions
  • tsconfig.json gains allowImportingTsExtensions, tsconfig.build.json gains rewriteRelativeImportExtensions
  • test scripts run without --import=tsx, and the tsx devDep is removed

Verification

npm test (13/13), npm run coverage (100% lines/branches/functions), and npm run test:pack (runtime import and type resolution of the packed tarball) all pass.

@ungoldman ungoldman merged commit ea63231 into main Jul 6, 2026
3 checks passed
@ungoldman ungoldman deleted the drop-tsx branch July 6, 2026 02: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.

1 participant