chore(deps-dev): bump typescript from 6.0.3 to 7.0.2 #14

Merged
dependabot[bot] merged 2 commits from dependabot/npm_and_yarn/typescript-7.0.2 into main 2026-07-13 16:40:05 +00:00
4 changed files with 844 additions and 152 deletions

View file

@ -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.

View file

@ -1,5 +1,5 @@
{
"app": "npx ts-node bin/app.ts",
"app": "tsx bin/app.ts",
"watch": {
"include": ["**"],
"exclude": [

988
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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",
seahaven-openswe[bot] commented 2026-07-13 04:51:11 +00:00 (Migrated from github.com)
Review

🟠 TypeScript 7 breaks CDK synth via ts-node

Upgrading typescript to 7.0.2 breaks the CDK app entry point. cdk synth (configured in cdk.json as npx ts-node bin/app.ts) crashes with:

TypeError: Cannot read properties of undefined (reading 'fileExists')
    at readConfig (node_modules/ts-node/dist/configuration.js:91:33)

ts-node@10.9.2 calls require('typescript').sys, but TypeScript 7.0.2’s CJS entry (lib/version.cjs) only exports version and versionMajorMinor; it no longer exposes the sys object or the full compiler API. I verified this in the sandbox: npm run build succeeds, but npm run synth fails with the above error. Reverting to typescript@6.0.3 restores synthesis.

To merge this upgrade, either:

  • Update the toolchain to a ts-node / tsx configuration that supports TypeScript 7, or
  • Replace the app command in cdk.json with a runner that pre-compiles with tsc before 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.

<!-- open-swe-review-comment {"id":"f_6cb157148a","file_path":"package.json","start_line":20,"end_line":20,"side":"RIGHT"} --> 🟠 **TypeScript 7 breaks CDK synth via ts-node** Upgrading `typescript` to `7.0.2` breaks the CDK app entry point. `cdk synth` (configured in `cdk.json` as `npx ts-node bin/app.ts`) crashes with: ``` TypeError: Cannot read properties of undefined (reading 'fileExists') at readConfig (node_modules/ts-node/dist/configuration.js:91:33) ``` `ts-node@10.9.2` calls `require('typescript').sys`, but TypeScript 7.0.2’s CJS entry (`lib/version.cjs`) only exports `version` and `versionMajorMinor`; it no longer exposes the `sys` object or the full compiler API. I verified this in the sandbox: `npm run build` succeeds, but `npm run synth` fails with the above error. Reverting to `typescript@6.0.3` restores synthesis. To merge this upgrade, either: - Update the toolchain to a `ts-node` / `tsx` configuration that supports TypeScript 7, or - Replace the `app` command in `cdk.json` with a runner that pre-compiles with `tsc` before 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.*
seahaven-openswe[bot] commented 2026-07-13 16:39:39 +00:00 (Migrated from github.com)
Review

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.

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.