chore(deps-dev): bump typescript from 6.0.3 to 7.0.2 #14
4 changed files with 844 additions and 152 deletions
|
|
@ -40,7 +40,7 @@ Single stack `seahaven-external-dev-baseline`:
|
|||
## CDK app
|
||||
|
||||
This repo is an AWS CDK application (TypeScript). `cdk.json` is the CDK
|
||||
entry point: it sets `app` to `npx ts-node bin/app.ts`, so the CLI runs the
|
||||
entry point: it sets `app` to `tsx bin/app.ts`, so the CLI runs the
|
||||
TypeScript source directly with no separate build step, and pins the CDK
|
||||
feature flags / context the stack synthesizes against.
|
||||
|
||||
|
|
|
|||
2
cdk.json
2
cdk.json
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"app": "npx ts-node bin/app.ts",
|
||||
"app": "tsx bin/app.ts",
|
||||
"watch": {
|
||||
"include": ["**"],
|
||||
"exclude": [
|
||||
|
|
|
|||
988
package-lock.json
generated
988
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -16,8 +16,8 @@
|
|||
"@types/source-map-support": "^0.5.10",
|
||||
"aws-cdk": "^2.1129.0",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "~6.0.3"
|
||||
"tsx": "~4.23.0",
|
||||
"typescript": "~7.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"aws-cdk-lib": "2.261.0",
|
||||
|
Resolved by the latest commit. The author replaced Resolved by the latest commit. The author replaced `ts-node` with `tsx` in `package.json` and `cdk.json`, so `cdk synth` no longer crashes. I verified locally with the new HEAD (`4199ad5`): `npm run build` and `npm run synth` both succeed, and the CDK template is emitted as expected. Closing this thread.
|
||||
|
|
|
|||
Reference in a new issue
🟠 TypeScript 7 breaks CDK synth via ts-node
Upgrading
typescriptto7.0.2breaks the CDK app entry point.cdk synth(configured incdk.jsonasnpx ts-node bin/app.ts) crashes with:ts-node@10.9.2callsrequire('typescript').sys, but TypeScript 7.0.2’s CJS entry (lib/version.cjs) only exportsversionandversionMajorMinor; it no longer exposes thesysobject or the full compiler API. I verified this in the sandbox:npm run buildsucceeds, butnpm run synthfails with the above error. Reverting totypescript@6.0.3restores synthesis.To merge this upgrade, either:
ts-node/tsxconfiguration that supports TypeScript 7, orappcommand incdk.jsonwith a runner that pre-compiles withtscbefore invoking the CDK CLI.As it stands, the deploy path is broken.
(Refers to line 20)
Your feedback helps Open SWE learn. React with 👍 or 👎 to tell us if this review comment was useful.