proposal-system/infra/package.json
Adam Moussa 6692f856bc
fix(infra): run CDK app via tsx to support TypeScript 7
TypeScript 7.0.2 (the native-port build) no longer exposes the internal
compiler API (ts.sys) that ts-node@10.9.2 depends on, so
`npx ts-node bin/app.ts` fails during `cdk synth` with
"Cannot read properties of undefined (reading 'fileExists')".

Switch the CDK app runner to tsx (esbuild-based, version-agnostic — it
does not consume the typescript package's programmatic API), and pin tsx
as an infra devDependency. Verified `cdk synth` succeeds locally with
typescript 7.0.2 installed.
2026-07-08 16:51:54 -04:00

22 lines
467 B
JSON

{
"name": "proposal-system-infra",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"cdk": "cdk",
"synth": "cdk synth",
"deploy": "cdk deploy --all --require-approval broadening"
},
"dependencies": {
"aws-cdk-lib": "2.261.0",
"constructs": "^10.4.2"
},
"devDependencies": {
"@types/node": "^25.9.5",
"aws-cdk": "^2.1129.0",
"tsx": "^4.23.0",
"typescript": "~7.0.2"
}
}