Skip to content

fix(triage): replace node --experimental-strip-types with tsx#159

Merged
keinstn merged 1 commit into
developfrom
agent/keinstn__baton-158
Jun 24, 2026
Merged

fix(triage): replace node --experimental-strip-types with tsx#159
keinstn merged 1 commit into
developfrom
agent/keinstn__baton-158

Conversation

@keinstn

@keinstn keinstn commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Closes #158

Adds tsx as a devDependency and npm script so the triage script runs correctly on Node.js 26, which has built-in TypeScript type-stripping but does not remap .js imports to .ts files at runtime.

  • tsx in devDependencies
  • triage npm script: tsx scripts/triage/index.ts
  • README updated to use npm run triage / npx tsx instead of node --experimental-strip-types

All 337 tests pass, lint clean.

Node.js 26 built-in type-stripping does not remap .js import specifiers
to .ts files, causing ERR_MODULE_NOT_FOUND when running the triage script
because src/ imports use .js extensions (required for the tsc build).

Switch to tsx which transparently handles .js → .ts resolution at runtime.
Add a `triage` npm script and update README to use npm run triage / npx tsx.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@keinstn

keinstn commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

[Baton Reviewer] Review result: pass. The PR matches the issue scope (tsx devDependency, triage npm script, README command updates), and the triage entrypoint starts via tsx without ERR_MODULE_NOT_FOUND.

Managed by Baton; do not edit the marker line manually.

@keinstn
keinstn merged commit 1250966 into develop Jun 24, 2026
4 checks passed
@keinstn
keinstn deleted the agent/keinstn__baton-158 branch June 24, 2026 17: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.

fix(triage): replace node --experimental-strip-types with tsx for running triage script

1 participant