Skip to content

Commit db7f863

Browse files
chore(deps-dev): bump typescript from 5.9.3 to 6.0.2 (#29329)
* chore(deps-dev): bump typescript from 5.9.3 to 6.0.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.2) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore(typescript): set --ignoreConfig when checking specific file * chore(typescript): specify types in tsconfig.json It now defaults to `[]` in TypeScript 6. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Claas Augner <caugner@mozilla.com>
1 parent 95fedec commit db7f863

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"prettier": "~3.8.0",
9090
"strip-ansi": "^7.1.0",
9191
"tempy": "^3.1.0",
92-
"typescript": "~5.9.2",
92+
"typescript": "~6.0.2",
9393
"typescript-eslint": "~8.58.0",
9494
"web-features": "^3.14.0",
9595
"web-specs": "^3.0.0",

scripts/generate-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const compile = async (
174174
generateCompatDataTypes(),
175175
].join('\n\n');
176176
await fs.writeFile(destination, ts);
177-
spawn('tsc', ['--skipLibCheck', '../types/types.d.ts'], {
177+
spawn('tsc', ['--skipLibCheck', '--ignoreConfig', '../types/types.d.ts'], {
178178
cwd: dirname,
179179
stdio: 'inherit',
180180
});

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"forceConsistentCasingInFileNames": true,
1818
"strict": true,
1919
"skipLibCheck": true,
20-
"maxNodeModuleJsDepth": 0
20+
"maxNodeModuleJsDepth": 0,
21+
"types": ["mocha"]
2122
},
2223
"exclude": ["build", "node_modules", "coverage"],
2324
"typeRoots": ["./node_modules/@types", "./types"]

0 commit comments

Comments
 (0)