ts-node 10.x is incompatible with the TypeScript 7 compiler API (cdk synth fails with "Cannot read properties of undefined (reading 'fileExists')"). Swap the cdk.json app runner from ts-node to tsx, drop ts-node, pin tsx to 4.23.0 (matching sh-mcp), and bump typescript to ~7.0.2. Verified via cdk synth (exit 0) and tsc build.
23 lines
483 B
JSON
23 lines
483 B
JSON
{
|
|
"app": "npx tsx bin/exec-aide.ts",
|
|
"watch": {
|
|
"include": ["**"],
|
|
"exclude": [
|
|
"README.md",
|
|
"cdk*.json",
|
|
"**/*.d.ts",
|
|
"**/*.js",
|
|
"tsconfig.json",
|
|
".git",
|
|
"node_modules",
|
|
"src",
|
|
"listener"
|
|
]
|
|
},
|
|
"context": {
|
|
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
"@aws-cdk/core:checkSecretUsage": true,
|
|
"@aws-cdk/aws-iam:minimizePolicies": true,
|
|
"@aws-cdk/core:enablePartitionLiterals": true
|
|
}
|
|
}
|