Skip to content

build(deps-dev): bump typescript from 6.0.3 to 7.0.2 in /docs/site - #22395

Closed
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/docs/site/typescript-7.0.2
Closed

build(deps-dev): bump typescript from 6.0.3 to 7.0.2 in /docs/site#22395
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/npm_and_yarn/docs/site/typescript-7.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 11, 2026

Copy link
Copy Markdown
Contributor

Bumps typescript from 6.0.3 to 7.0.2.

Commits
Maintainer changes

This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 11, 2026
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 11, 2026
Bumps [typescript](https://github.com/microsoft/TypeScript) from 6.0.3 to 7.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/docs/site/typescript-7.0.2 branch from d9c2a63 to 4b729c5 Compare July 11, 2026 08:41
@bloxster

Copy link
Copy Markdown
Collaborator

Closing this one for now — TypeScript 7 isn't yet compatible with our docs toolchain.

Why it fails CI: TS7 (the native Go port) removed the baseUrl compiler option, so npm run typecheck (tsc) fails with error TS5102: Option 'baseUrl' has been removed, which fails the docs-site / build job and blocks the merge.

This can't be fixed by editing docs/site/tsconfig.json alone — baseUrl is inherited from the extended base config @docusaurus/tsconfig@3.10.2 (which still sets "baseUrl": "."), and an inherited baseUrl can't be unset from the child config. It's an upstream ecosystem lag: Docusaurus 3.x's shared tsconfig isn't TS7-compatible yet.

Verified locally against the PR head (Node 22, TS 7.0.2):

  • npm ci — clean, 0 vulnerabilities ✅
  • npm run typecheck — ❌ fails (baseUrl removed)
  • npm run build — ✅ passes (the actual site deploy uses webpack/babel, not tsc, so deploy itself is unaffected)

No security or supply-chain concern with the bump itself — this is purely a toolchain-compatibility gate. We'll pick TS7 back up once Docusaurus ships a baseUrl-free tsconfig.

@dependabot close

@bloxster

Copy link
Copy Markdown
Collaborator

@dependabot close

@bloxster bloxster closed this Jul 14, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/docs/site/typescript-7.0.2 branch July 14, 2026 11:51
pull Bot pushed a commit to Dustin4444/erigon that referenced this pull request Jul 27, 2026
…rigontech#22764)

## Why

Dependabot erigontech#22395 (`typescript` 6.0.3 → 7.0.2) was closed because it
failed docs-site CI:

```
docs/site/tsconfig.json(7,5): error TS5102: Option 'baseUrl' has been removed.
                              Please remove it from your configuration.
```

TypeScript 7 **removed** `baseUrl`. Our `"ignoreDeprecations": "6.0"`
silenced TS 6's TS5101 *deprecation*, but TS 7 rejects the option
itself, so that escape hatch expires at the major boundary.

**Deleting only our own `baseUrl` line would not fix it.** `extends:
@docusaurus/tsconfig` would inherit upstream's — it still ships one as
of 3.10.2 — and an inherited `compilerOption` cannot be unset by the
extending config. The error would simply move from `(7,5)` to `(6,3)`.

## What

1. **`docs/site/tsconfig.json`** — inline the base config minus
`baseUrl`, dropping the now-useless `ignoreDeprecations`.
2. **`docs/site/scripts/check-tsconfig-drift.mjs`** (+ `npm run
check:tsconfig`) — inlining means upstream changes stop reaching us, so
this diffs our copy against `node_modules/@docusaurus/tsconfig` modulo
declared deltas, and reports when upstream drops `baseUrl` and the whole
workaround can be reverted. Wired into `docs-site-build.yml` ahead of
the existing typecheck.

The guard depends on nothing but Node, deliberately: a version that
imported `typescript` to parse JSONC broke under the very upgrade it
guards (erigontech/cocoon#37).

## `@site/*` is unaffected here

Verified via the TypeScript API — `@site/docusaurus.config` resolves to
`docs/site/docusaurus.config.ts` both before and after:

```
OLD (extends + our own baseUrl: "."):  @site/docusaurus.config -> <site>/docusaurus.config.ts
NEW (inlined, no baseUrl):             @site/docusaurus.config -> <site>/docusaurus.config.ts
```

Worth noting because this is where erigon differed from its siblings: in
cocoon and zilkworm-docs `baseUrl` was *only inherited*, so it resolved
to `node_modules/@docusaurus/tsconfig` and left `@site/*` silently
broken. Our explicit `baseUrl: "."` is what kept the alias correct — and
dropping it costs nothing, because `paths` now resolves against the
tsconfig's own directory, which is the same `docs/site` root.

## Verification

In `docs/site`, under **both** toolchains:

| | TS 6.0.3 | TS 7.0.2 |
|---|---|---|
| `npm run check:tsconfig` | exit 0 | exit 0 |
| `npm run typecheck` | exit 0 | exit 0 |
| `npm run build` | exit 0 | exit 0 |

## Relationship to erigontech#22763

**Supersedes erigontech#22763**, which added a Dependabot ignore rule for
`typescript` majors to stop the closed PR resurfacing on every 7.x
release. That deferral is unnecessary if this lands — recommend closing
erigontech#22763. If you'd rather stay on TS 6 for now, do the opposite: merge
erigontech#22763 and close this.

Same fix as erigontech/cocoon#36 and erigontech/zilkworm-docs#13, both
now merged and running TypeScript 7.0.2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Bloxster <gianni.morselli@erigon.tech>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

2 participants