Skip to content

Commit d2ddea5

Browse files
Merge pull request #90 from aklkv/feat/glint-imports
chore: remove `@glint/environment-ember-*`
2 parents 7ba0556 + 814818b commit d2ddea5

5 files changed

Lines changed: 6 additions & 44 deletions

File tree

files/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"@embroider/vite": "^1.1.5",
4949
"@eslint/js": "^9.17.0",
5050
"@glimmer/component": "^2.0.0",<% if (typescript) { %>
51-
"@glint/ember-tsc": "^1.0.0",
52-
"@glint/template": "^1.6.0",
51+
"@glint/ember-tsc": "^1.0.3",
52+
"@glint/template": "^1.6.1",
5353
"@glint/tsserver-plugin": "^2.0.0",<% } %>
5454
"@rollup/plugin-babel": "^6.0.4",<% if (typescript) { %>
5555
"@types/qunit": "^2.19.12",<% } %>
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +0,0 @@
1-
// Add any types here that you need for local development only.
2-
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them!
3-
4-
import '@glint/environment-ember-loose';
5-
import '@glint/environment-ember-template-imports';
6-
7-
// Uncomment if you need to support consuming projects in loose mode
8-
//
9-
// declare module '@glint/environment-ember-loose/registry' {
10-
// export default interface Registry {
11-
// // Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
12-
// // See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
13-
// }
14-
// }
Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +0,0 @@
1-
// Add any types here that you need for local development only.
2-
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them!
3-
4-
import '@glint/environment-ember-loose';
5-
6-
import { default as MyRegistry } from '../src/template-registry';
7-
8-
declare module '@glint/environment-ember-loose/registry' {
9-
// Remove this once entries have been added! 👇
10-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
11-
export default interface Registry extends MyRegistry {
12-
// Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates)
13-
// See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons
14-
}
15-
}
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
import '@glint/environment-ember-loose';
2-
import '@glint/environment-ember-template-imports';
3-
4-
import { default as MyAddonRegistry } from 'my-addon/template-registry';
5-
6-
declare module '@glint/environment-ember-loose/registry' {
7-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
8-
export default interface Registry extends MyAddonRegistry {}
9-
}

tests/smoke-tests/--typescript.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ for (let packageManager of SUPPORTED_PACKAGE_MANAGERS) {
124124
"declarations/index.d.ts.map",
125125
"declarations/template-registry.d.ts",
126126
"declarations/template-registry.d.ts.map",
127-
"declarations/components/another-gts.gts.d.ts",
128-
"declarations/components/another-gts.gts.d.ts.map",
129-
"declarations/components/template-import.gts.d.ts",
130-
"declarations/components/template-import.gts.d.ts.map",
127+
"declarations/components/another-gts.d.ts",
128+
"declarations/components/another-gts.d.ts.map",
129+
"declarations/components/template-import.d.ts",
130+
"declarations/components/template-import.d.ts.map",
131131
"declarations/services/example.d.ts",
132132
"declarations/services/example.d.ts.map",
133133
]

0 commit comments

Comments
 (0)