mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 17:03:14 +00:00
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.
22 lines
438 B
JSON
22 lines
438 B
JSON
{
|
|
"app": "npx tsx bin/app.ts",
|
|
"watch": {
|
|
"include": ["**"],
|
|
"exclude": [
|
|
"README.md",
|
|
"cdk*.json",
|
|
"**/*.d.ts",
|
|
"**/*.js",
|
|
"tsconfig.json",
|
|
"package*.json",
|
|
"node_modules",
|
|
"dist"
|
|
]
|
|
},
|
|
"context": {
|
|
"env": "prod",
|
|
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
|
|
"@aws-cdk/core:checkSecretUsage": true,
|
|
"@aws-cdk/core:target-partitions": ["aws"]
|
|
}
|
|
}
|