Skip to content

fix(release): verify imports typescript/sync, the 7.1 beta export - #108

Merged
t3dotgg merged 3 commits into
mainfrom
goport-relverify1
Oct 23, 2026
Merged

t3dotgg merged 3 commits into
mainfrom
goport-relverify1

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Every Release verify job fails on main. The step "npm install and check (@tsc-rs/typescript as typescript)" runs await import("typescript/unstable/sync"). At our pin 3e9236361fa9 (typescript@7.1.0-beta), Go's typescript package exports its API as ./sync, ./async, ./fs and so on. The ./unstable/* names are gone (microsoft/TypeScript#64681, "[api] Prepare for beta release"). So a release from main fails at verify, as the PR #106 run showed on all 6 platforms.

Fix

  • release.yml verify: import typescript/sync.

  • scripts/goport/npm-alias-test.sh: the same import and its check text.

  • npm/typescript-readme.md: name the new module paths.

  • release.yml "Check the tsc": grep -x ... > /dev/null in place of grep -qx. grep -q can end before the tsc does, and the tsc then dies of SIGPIPE (exit 141 under pipefail). This PR's first Release run hit it on darwin-x64 (the same fix as in perf(release): faster linux-x64 tsc (memfast, BOLT) #106).

The exports map itself needs no change: npm/pack.mjs copies Go's package.json exports at the pin.

This PR's Release run is the check: its verify jobs must pass. Nothing publishes on a pull request run.

Changes by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

t3dotgg and others added 2 commits October 23, 2026 08:15
At pin 3e9236361fa9 (typescript@7.1.0-beta) Go's typescript package
exports its API as ./sync, ./async and so on, not ./unstable/* (#64681).
The release verify step and npm-alias-test.sh imported
typescript/unstable/sync, so every release verify job failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: c7157225-1c62-4597-9acd-a01d616721be

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

`tsc --listFilesOnly | grep -qx` failed on darwin-x64 with exit 141:
grep -q ended at the first match, and the tsc died of SIGPIPE under
pipefail. grep without -q reads all of the output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@t3dotgg
t3dotgg merged commit 79348a0 into main Oct 23, 2026
23 checks passed
t3dotgg added a commit that referenced this pull request Oct 23, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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