Skip to content

build: pin typescript to ^6.0.3 so eslint can run - #12

Merged
schplitt merged 1 commit into
mainfrom
build/downgrade-typescript-6
Jul 31, 2026
Merged

build: pin typescript to ^6.0.3 so eslint can run#12
schplitt merged 1 commit into
mainfrom
build/downgrade-typescript-6

Conversation

@schplitt

Copy link
Copy Markdown
Owner

Why

pnpm lint currently crashes at config load, before reading any source file. Two stacked toolchain problems, both from the catalog pinning typescript ^7.0.2:

  1. typescript-eslint (pulled in by @schplitt/eslint-config) does not support TS 7.0 yet — it errors out.
  2. Loading the flat config under TS 7 on Node 26 also trips a Node ESM-loader ERR_INTERNAL_ASSERTION.

Proof it's config-load (not code): eslint --print-config <file> fails identically.

Change

Pin the catalog typescript to ^6.0.3 (latest 6.x — the same version iso4 uses). pnpm lint now runs and passes.

Also regenerates one stale API snapshot (types/iso4export type *, matching the re-export source) that current tsdown emits regardless of TS version — unrelated to the pin, just a drift the build corrects.

No changeset: TypeScript is a dev-only dependency; no published-package behavior change.

Validation (all under TS 6.0.3)

  • pnpm lint — exit 0 (was crashing)
  • pnpm build
  • pnpm typecheck
  • pnpm test:run — durable-isolates 27, durable-workflows 19

Note

This is independent of the vocabulary-rename PR (#11). Once this lands, #11 rebases onto main and becomes lint-checkable too.

typescript-eslint (via @schplitt/eslint-config) does not support TS 7.0 yet,
and loading the flat config under TS 7 on Node 26 also triggers a Node ESM
loader assertion — together they make `pnpm lint` crash at config-load before
reading any file. Pin the catalog to the latest 6.x (6.0.3, same as iso4);
`pnpm lint` now runs clean, and build/test/typecheck still pass.

Also regenerates a stale `types/iso4` API snapshot (`export type *`, matching
the re-export source) that current tsdown emits regardless of TS version.
@schplitt
schplitt merged commit 73435ff into main Jul 31, 2026
1 check passed
@schplitt
schplitt deleted the build/downgrade-typescript-6 branch July 31, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant