Skip to content

build: migrate typescript to ^7 (native tsc)#209

Closed
valkyriweb wants to merge 4 commits into
vincentkoc:mainfrom
valkyriweb:lue/ts7
Closed

build: migrate typescript to ^7 (native tsc)#209
valkyriweb wants to merge 4 commits into
vincentkoc:mainfrom
valkyriweb:lue/ts7

Conversation

@valkyriweb

Copy link
Copy Markdown

Why

CI-speedup track (2026-07-16 compute audit): typecheck was the last slow step in the ~51s quality job. TypeScript 7 (native Go tsc) typechecks this repo in <1s locally.

What

  • typescript ^5.9.3^7.0.2
  • tsconfig.json: explicit "types": ["node"] — TS7 did not auto-discover @types/node in the pnpm layout (every process/node-global usage produced TS2591 without it).

Verification (local, worktree)

  • pnpm typecheck — pass, 0.78s wall
  • pnpm build — pass (esbuild, 16ms)
  • pnpm test — 763/763 pass
  • pnpm lint — 0 warnings / 0 errors

No compiler-API consumers in this repo (only string fixtures mention typescript-eslint).

…it (#2)

The Claude Code / Desktop PreToolUse hook wrapped Bash without --store, so
compacted output was discarded and the footer's "not retrievable" was true,
forcing re-runs or /tmp dumps to recover full output.

Now the claude-code wrap passes --store, persisting the full uncompacted
output to a tokenjuice artifact, and the compaction footer cites that file's
path so the agent reads it directly instead of re-running the command.

- buildWrappedCommand: opt-in store/storeDir (other hosts unchanged)
- buildWrapAuthoritativeFooter: path-aware footer when a raw artifact exists
- decorateWrapInlineText: emit the stored raw path

Tests for the store flags, host emission, and the path-aware footer.
Typecheck drops to sub-second locally. TS7 did not auto-discover
@types/node under the pnpm layout (520 TS2591 'Cannot find name
process' errors), so the tsconfig now declares types:[node] explicitly.
763/763 tests + esbuild build pass on the new toolchain.
@valkyriweb

Copy link
Copy Markdown
Author

Opened against upstream by mistake — internal CI change for our fork. Apologies for the noise.

@valkyriweb valkyriweb closed this Jul 16, 2026
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