Skip to content

Run Glint's transform through its standalone entry; no TypeScript 5 at runtime - #2

Merged
NullVoxPopuli merged 2 commits into
NullVoxPopuli:mainfrom
NullVoxPopuli-ai-agent:standalone-transform
Aug 25, 2026
Merged

Run Glint's transform through its standalone entry; no TypeScript 5 at runtime#2
NullVoxPopuli merged 2 commits into
NullVoxPopuli:mainfrom
NullVoxPopuli-ai-agent:standalone-transform

Conversation

@NullVoxPopuli-ai-agent

@NullVoxPopuli-ai-agent NullVoxPopuli-ai-agent commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Follows #1. Resolves the "Why does the mapper depend on TypeScript 5?" question from the README: it no longer does.

@glint/ember-tsc 1.11.0 ships @glint/ember-tsc/transform/standalone (typed-ember/glint#1226), which analyzes the script parts of a .gts file with ember-estree instead of the TypeScript JavaScript API. lib/requests/transform.js now uses it, and typescript moves from dependencies to devDependencies (still used by lint:types and the CompilerOptions type import in protocol.ts).

Script parse errors take the same path content-tag errors already did: the mapper reports the error and returns no transformed text for that file, and TypeScript 7's own parser recovers from there. Same outcome as before for content-tag failures; for the narrower class of errors that swc tolerated but oxc does not, the file used to get a degraded transform and now gets the raw-source fallback.

Verified:

  • pnpm test 20/20 (all five test-packages under TS 7, both diagnostics-tests, unit)
  • pnpm test:examples both examples typecheck
  • pnpm lint:types, prettier clean
  • importing lib/requests/transform.js loads zero TypeScript 5 modules

minimumReleaseAgeExclude gains @glint/ember-tsc@1.11.0 and ember-estree@0.8.0 (both released today).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN

NullVoxPopuli-ai-agent and others added 2 commits August 25, 2026 14:44
`@glint/ember-tsc/transform/standalone` (typed-ember/glint#1226)
analyzes the script parts of a .gts file with ember-estree instead of
the TypeScript JavaScript API, so the mapper no longer carries
TypeScript 5 at runtime. It stays a devDependency for `lint:types` and
the `CompilerOptions` type import in protocol.ts.

Script parse errors now take the same path as content-tag errors: the
error is reported and no transformed text is returned for the file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FsXgxh6vNRWMCNcAQ3g6TN
@NullVoxPopuli
NullVoxPopuli merged commit 645e587 into NullVoxPopuli:main Aug 25, 2026
5 checks passed
@NullVoxPopuli NullVoxPopuli added the enhancement New feature or request label Aug 26, 2026
@github-actions github-actions Bot mentioned this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants