Skip to content

chore(deps-dev): bump typescript from 5.9.3 to 6.0.2#18

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2
Open

chore(deps-dev): bump typescript from 5.9.3 to 6.0.2#18
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 28, 2026

Bumps typescript from 5.9.3 to 6.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 28, 2026
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 28, 2026

Greptile Summary

This PR bumps typescript from 5.9.3 to 6.0.2 (a major version jump), but does not include the required tsconfig.json changes needed for TypeScript 6.0 compatibility, which will break the build.

Key concerns:

  • Build-breaking: missing \"types\": [\"node\"] in tsconfig.json — TypeScript 6.0 changes the default value of the types option from auto-discovering all @types/* packages to an empty array ([]). The project relies heavily on Node.js globals (process.env, process.exit, process.stdin, process.argv, process.platform, process.cwd()) that come from @types/node ambient types. Without explicitly setting \"types\": [\"node\"] in tsconfig.json, the build (tsc) will fail with Cannot find name 'process' across many source files.

  • Other TypeScript 6.0 defaults are already compatible — The tsconfig.json already explicitly sets strict: true, target: \"ES2020\", module: \"NodeNext\", moduleResolution: \"NodeNext\", rootDir: \"src\", and esModuleInterop: true, so those new TypeScript 6.0 defaults do not cause additional issues for this project.

  • Recommendation — Add a \"types\": [\"node\"] entry to compilerOptions in tsconfig.json before or alongside this merge.

Confidence Score: 4/5

Not safe to merge without a companion tsconfig.json fix — the TypeScript 6.0 types: [] default will break the build

The dependency bump triggers a real breaking change (TypeScript 6.0 types defaulting to []) that will cause tsc to fail on every process.* usage in the codebase. This is a concrete, reproducible build failure, not a speculative concern. All other TS 6.0 breaking defaults are already mitigated by the existing tsconfig.json explicit settings.

tsconfig.json needs "types": ["node"] added to compilerOptions to restore Node.js ambient type availability under TypeScript 6.0

Important Files Changed

Filename Overview
package.json Bumps the typescript devDependency version constraint from ^5.5.0 to ^6.0.2; triggers a major-version upgrade with multiple breaking default changes (most critically types: []) that will break the current tsconfig.json
package-lock.json Lock file updated to resolve typescript from 5.9.3 to 6.0.2; no issues in the lockfile itself

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["npm run build\n(tsc)"] --> B{"TypeScript 6.0\ntypes default"}
    B -->|"Old default (TS 5.x)\nauto-discovers @types/*"| C["@types/node included automatically"]
    B -->|"New default (TS 6.0)\ntypes: []"| D["@types/node NOT included"]
    C --> E["process, Buffer, etc. available\n✅ Build succeeds"]
    D --> F["process, Buffer, etc. missing\n❌ Build fails"]
    F --> G["Fix: add types: ['node']\nto tsconfig.json"]
    G --> E
Loading

Comments Outside Diff (1)

  1. tsconfig.json, line 1-14 (link)

    P1 TypeScript 6.0 breaks build: types now defaults to []

    TypeScript 6.0 changes the default value of the types compiler option from auto-discovering all @types/* packages to an empty array ([]). This means @types/node — listed in devDependencies — will no longer be automatically included, causing type errors across the entire codebase.

    The source files use process as a global in at least 15+ locations (e.g., process.env, process.exit, process.stdin, process.argv, process.platform, process.cwd()), all of which are provided by @types/node ambient declarations. Without "types": ["node"] in tsconfig.json, the TypeScript compiler will emit errors like Cannot find name 'process', breaking the npm run build step entirely.

    The Microsoft TypeScript 6.0 announcement explicitly states: "This will affect many projects. You will likely need to add \"types\": [\"node\"]"

    The fix needs to be applied to tsconfig.json (which this PR does not modify):

    {
      "compilerOptions": {
        "target": "ES2020",
        "module": "NodeNext",
        "moduleResolution": "NodeNext",
        "outDir": "dist",
        "rootDir": "src",
        "strict": true,
        "esModuleInterop": true,
        "declaration": true,
        "skipLibCheck": true,
        "types": ["node"]
      },
      "include": ["src"]
    }

    This PR should be held until a companion tsconfig.json change is included (or merged separately first).

Reviews (1): Last reviewed commit: "chore(deps-dev): bump typescript from 5...." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants