Skip to content

Commit b277e89

Browse files
committed
DEV: Update the TypeScript 7 nightly and Glint
`typescript` moves to `7.1.0-dev.20260930.4`, `@glint/ember-tsc` to 1.11.6 and `@glint/tsserver-plugin` to 2.7.9. `ember-content-mapper` 0.3.1 and `@glint/template` 1.9.0 are already the latest releases. - This is the newest nightly without microsoft/TypeScript#64656. From `7.1.0-dev.20261001.1` on, declaration emit fails with TS5088 on an inferred type that refers to itself, where earlier versions wrote `any` at the cycle. Seven places in core hit it. - In newer nightlies, the sync API's `createProgram` takes the compiler options as its second argument. `dts-generator.ts` now passes an empty object there, which works with both forms.
1 parent fb8ff69 commit b277e89

5 files changed

Lines changed: 95 additions & 93 deletions

File tree

‎frontend/discourse-types/dts-generator.ts‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ export default function generate(options: Options): void {
103103

104104
const api = new API({ cwd: baseDir });
105105
try {
106-
const { fileNames, options: compilerOptions } =
107-
api.parseJsonConfigFileContent({}, { configDirectory: baseDir });
108-
const program = api.createProgram(fileNames, { compilerOptions });
106+
const { fileNames } = api.parseJsonConfigFileContent(
107+
{},
108+
{ configDirectory: baseDir }
109+
);
110+
const program = api.createProgram(fileNames, {});
109111

110112
for (const fileName of program.getSourceFileNames()) {
111113
// Default libraries and other packages' files stay out of the bundle

‎frontend/discourse-types/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"devDependencies": {
8787
"@types/node": "^26.4.0",
8888
"compare-versions": "^6.1.1",
89-
"typescript": "7.1.0-dev.20260901.1"
89+
"typescript": "7.1.0-dev.20260930.4"
9090
},
9191
"engines": {
9292
"node": ">= 20",

‎frontend/discourse/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@fullcalendar/moment-timezone": "^6.1.20",
5151
"@fullcalendar/timegrid": "^6.1.20",
5252
"@glimmer/syntax": "0.95.0",
53-
"@glint/ember-tsc": "^1.11.4",
53+
"@glint/ember-tsc": "^1.11.6",
5454
"@glint/template": "^1.9.0",
5555
"@highlightjs/cdn-assets": "11.12.0",
5656
"@json-editor/json-editor": "2.17.2",
@@ -176,7 +176,7 @@
176176
"source-map-js": "^1.2.1",
177177
"testem": "^3.20.2",
178178
"tracked-built-ins": "^4.1.2",
179-
"typescript": "7.1.0-dev.20260901.1",
179+
"typescript": "7.1.0-dev.20260930.4",
180180
"util": "^0.12.5",
181181
"xss": "^1.0.15"
182182
},

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"@discourse/lint-configs": "^3.8.0",
88
"@discourse/moment-timezone-names-translations": "^1.0.0",
99
"@fortawesome/fontawesome-free": "7.3.1",
10-
"@glint/ember-tsc": "^1.11.4",
11-
"@glint/tsserver-plugin": "^2.7.7",
10+
"@glint/ember-tsc": "^1.11.6",
11+
"@glint/tsserver-plugin": "^2.7.9",
1212
"@rdil/parallel-prettier": "^3.0.0",
1313
"concurrently": "^10.0.5",
1414
"ember-content-mapper": "^0.3.1",
@@ -23,7 +23,7 @@
2323
"postcss-value-parser": "^4.2.0",
2424
"prettier": "3.8.1",
2525
"stylelint": "17.5.0",
26-
"typescript": "7.1.0-dev.20260901.1"
26+
"typescript": "7.1.0-dev.20260930.4"
2727
},
2828
"scripts": {
2929
"prepare": "pnpm types:generate",

0 commit comments

Comments
 (0)