build(deps): migrate CDK app ts-node->tsx, adopt TypeScript 7 (INFRA-183) #75

Merged
amoussa1229 merged 1 commit from INFRA-183-tsnode-to-tsx into main 2026-07-08 21:33:52 +00:00
amoussa1229 commented 2026-07-08 21:19:41 +00:00 (Migrated from github.com)

Summary

Migrates the CDK app runner from ts-node to tsx so TypeScript 7 can be adopted. ts-node 10.x is incompatible with the TS7 compiler API: cdk synth fails with Cannot read properties of undefined (reading 'fileExists'). Mirrors the working tsx setup already in the org's sh-mcp repo.

Changes

  • cdk.json: app runner npx ts-node --prefer-ts-exts bin/exec-aide.ts -> npx tsx bin/exec-aide.ts (bin path unchanged; --prefer-ts-exts is a ts-node flag, not needed by tsx).
  • package.json: remove ts-node; add tsx pinned to 4.23.0 (same pin as sh-mcp); bump typescript ~6.0.3 -> ~7.0.2.
  • package-lock.json: regenerated.

Verification

  • npx cdk synth --quiet -> exit 0 (previously failed under ts-node + TS7).
  • npm run build (tsc) -> exit 0.
  • npm audit -> 0 vulnerabilities.
  • Pre-push security scanners -> RESULT: PASS.
## Summary Migrates the CDK app runner from `ts-node` to `tsx` so TypeScript 7 can be adopted. `ts-node` 10.x is incompatible with the TS7 compiler API: `cdk synth` fails with `Cannot read properties of undefined (reading 'fileExists')`. Mirrors the working `tsx` setup already in the org's `sh-mcp` repo. ## Changes - **cdk.json**: `app` runner `npx ts-node --prefer-ts-exts bin/exec-aide.ts` -> `npx tsx bin/exec-aide.ts` (bin path unchanged; `--prefer-ts-exts` is a ts-node flag, not needed by tsx). - **package.json**: remove `ts-node`; add `tsx` pinned to `4.23.0` (same pin as sh-mcp); bump `typescript` `~6.0.3` -> `~7.0.2`. - **package-lock.json**: regenerated. ## Verification - `npx cdk synth --quiet` -> exit 0 (previously failed under ts-node + TS7). - `npm run build` (`tsc`) -> exit 0. - `npm audit` -> 0 vulnerabilities. - Pre-push security scanners -> RESULT: PASS.
seahaven-openswe[bot] (Migrated from github.com) reviewed 2026-07-08 21:21:28 +00:00
seahaven-openswe[bot] (Migrated from github.com) left a comment

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in Web

## ✅ Open SWE Review: No issues found Open SWE reviewed this PR and found no potential bugs to report. [Open in Web](https://openswe.seahaven.com/agents/reviews/Sea-Haven-Industries/exec-aide/75) <!-- open-swe-reviewer pr=75 -->
This repo is archived. You cannot comment on pull requests.
No description provided.