Skip to content

ci: fix latest-TypeScript typings gate (TS 7 removed moduleResolution=node)#4

Merged
Acro merged 1 commit into
masterfrom
claude/npm-package-review-0xjzp8
Jul 12, 2026
Merged

ci: fix latest-TypeScript typings gate (TS 7 removed moduleResolution=node)#4
Acro merged 1 commit into
masterfrom
claude/npm-package-review-0xjzp8

Conversation

@Acro

@Acro Acro commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Fixes the red package-boundary job on master.

Diagnosis: the "latest TypeScript" typings gate ran tsc --moduleResolution node, and TypeScript 7 (now typescript@latest, 7.0.2) removed the legacy node/node10 resolution — the step fails with TS5108: Option 'moduleResolution=node10' has been removed before ever checking the d.ts. The package's typings are fine: every other step in the job is green (CJS + ESM smokes, TS 3.4.5 floor gate).

Fix: the latest-TS gate now uses --module node16 --moduleResolution node16, which is what modern Node consumers use and additionally exercises the exports map's import/require type conditions. The pinned TS 3.4.5 floor gate keeps its legacy flags (3.4 predates node16 resolution and is pinned, so it can't drift).

Verified locally against the packed tarball with TS 7.0.2: old flags exit 1 (TS5108), new flags exit 0.

One-line diff to .github/workflows/ci.yml; no package code changes. Worth merging before cutting the v3.0.0 release so the release ships from a green master (the publish workflow itself is unaffected — its gates don't include this step).

🤖 Generated with Claude Code


Generated by Claude Code

TypeScript 7 removed the legacy 'node' (node10) moduleResolution (TS5108),
which broke the package-boundary job's latest-TS step. node16 resolution is
what modern Node consumers use anyway and additionally exercises the exports
map's import/require type conditions. The pinned TS 3.4.5 floor gate keeps
the legacy flags it needs. Reproduced locally against TS 7.0.2: old flags
exit 1 (TS5108), node16 flags exit 0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013eq96Mbqa2dBCAN3YCyrDK
@Acro
Acro merged commit 46f1c64 into master Jul 12, 2026
8 checks passed
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.

2 participants