build(deps): upgrade to typescript 6

TypeScript 6 enables `strict` by default and changes default @types
inclusion.
This commit is contained in:
Damien Retzinger
2026-06-09 18:03:30 -04:00
parent 9d3601a1e3
commit 6db07e2737
6 changed files with 12 additions and 9 deletions
+4 -4
View File
@@ -22,7 +22,7 @@
"eslint": "^10.4.1",
"jest": "^30.4.2",
"ts-jest": "^29.4.11",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.0"
}
},
@@ -5940,9 +5940,9 @@
}
},
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
"dev": true,
"license": "Apache-2.0",
"peer": true,
+1 -1
View File
@@ -31,7 +31,7 @@
"eslint": "^10.4.1",
"jest": "^30.4.2",
"ts-jest": "^29.4.11",
"typescript": "^5.9.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.0"
}
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -2,7 +2,7 @@ import { customVersionsValidator } from "./validations/custom-versions-validator
import { isKnownKind } from "./validations/is-known-kind";
import { KindValidator } from "./validator";
export const validateKind: KindValidator = (kind, custom_versions = null): boolean => {
export const validateKind: KindValidator = (kind, custom_versions): boolean => {
return validators.reduce((acc, el) => el(kind, custom_versions), true);
}
@@ -12,13 +12,13 @@ export const getMatrixForKind = (kind: string, project: string, versions = "", r
switch(kind){
case 'latest':
return getMatrixForVersions(project, latestJson[project]);
return getMatrixForVersions(project, latestJson[project as keyof typeof latestJson]);
case 'currently-supported':
return getMatrixForVersions(project, getCurrentlySupportedVersions(project, new Date()));
case 'usable':
return getMatrixForVersions(project, getUsableVersions(project));
case 'nightly':
return amendMatrixForNext(getMatrixForVersions(project, nightlyJson[project]), 'https://upstream-nightly.mage-os.org', getDayBefore());
return amendMatrixForNext(getMatrixForVersions(project, nightlyJson[project as keyof typeof nightlyJson]), 'https://upstream-nightly.mage-os.org', getDayBefore());
case 'all':
return getMatrixForVersions(project, Object.keys(getIndividualVersionsForProject(project)));
case 'custom':
+3
View File
@@ -2,5 +2,8 @@
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"typeRoots": ["../node_modules/@types"],
"types": ["jest"],
"target": "ES2022"
}
}