Repository navigation
Conversation
Implements the upstream half of RFC ember-cli#976 (Enable Glint by Default). Glint v2 ships as @glint/ember-tsc (CLI + LSP), @glint/tsserver-plugin (TS Server plugin for editors), and @glint/template (type defs). - Replace @glint/core, @glint/environment-ember-loose, and @glint/environment-ember-template-imports with @glint/ember-tsc and @glint/tsserver-plugin in the app and addon package.json templates. @glint/template stays. - Update lint:types from `tsc --noEmit` to `ember-tsc --noEmit` (the v2 binary). - Drop `glint.environment` from both tsconfig.json templates (v2 has no environments) and add @glint/ember-tsc/types ambient types. - Remove the now-empty types/global.d.ts which only existed to import the v1 environment-ember-loose package. - Update typescript fixtures and snapshots to match. Glint v2 only supports template-tag (.gts/.gjs) authoring; the legacy .hbs registry pattern has been removed. JS-path defaults are unchanged in this PR; the @embroider/app-blueprint handles JS-path Glint enablement on top of these upstream changes. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced May 2, 2026
The previous commit removed packages/app-blueprint/files/types/global.d.ts (it only existed to import the v1 environment-ember-loose package, which is gone in Glint v2). The acceptance tests at tests/acceptance/new-test.js and tests/acceptance/addon-test.js still asserted that file existed for TS apps and didn't exist for JS apps. Drop those stale assertions. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
|
since we figured out how to get glint in the ember extension pack and working on js projects, I don't think we need this 🎉 thanks for helping us explore this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the upstream half of RFC #976: Enable Glint by Default. Glint v2 ships as a different package set than v1; this PR swaps the blueprints over.
@glint/core,@glint/environment-ember-loose, and@glint/environment-ember-template-imports→ replaced with@glint/ember-tscand@glint/tsserver-plugin.@glint/templatestays.lint:typesscript:tsc --noEmit→ember-tsc --noEmit(the v2 binary).glint.environmentremoved from the generatedtsconfig.json(Glint v2 has no environments).@glint/ember-tsc/typesadded tocompilerOptions.types.types/global.d.tstemplate existed only to import the v1environment-ember-loosepackage; with that gone, the file is removed.Glint v2 supports template-tag (
.gts/.gjs) authoring exclusively; the legacy.hbsregistry pattern has been retired upstream. Existing.hbsusers keep their templates working at runtime, but template type-checking is now.gts-only.JS-path defaults are unchanged here. The companion changes in ember-cli/ember-app-blueprint and ember-cli/ember-addon-blueprint handle JS-path Glint enablement on top of these upstream changes.
Related
Test plan
ember new my-app --typescript; confirm Glint v2 deps in package.json, no v1 leftovers.pnpm lint:types(ember-tsc --noEmit) — exits 0 on a fresh app.ember addon my-addon --typescript.🤖 Generated with Claude Code