Skip to content

Commit

Permalink
build: bump TypeScript config to Node 18 versions
Browse files Browse the repository at this point in the history
This should have been done as part of us dropping support for Node 16 as
this allows us to reduce the number of polyfills generated. It also
means we can start generating ESM files if we want by updating our
packages to use the `module` type. The change to the `module` setting in
`tsconfig.json` requires us to bump ts-jest to a new minor version that
supports the option.
  • Loading branch information
ivomurrell committed Jan 2, 2025
1 parent 64fa6a6 commit c7f41db
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 39 deletions.
133 changes: 97 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@commitlint/config-conventional": "^16.0.0",
"@dotcom-reliability-kit/eslint-config": "^2.0.0",
"@financial-times/eslint-config-next": "^6.0.0",
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node18": "^18.2.4",
"@types/jest": "^27.4.0",
"@types/node": "^18.19.55",
"@typescript-eslint/eslint-plugin": "^5.57.0",
Expand All @@ -39,7 +39,7 @@
"lint-staged": "^10.5.4",
"prettier": "^2.8.8",
"release-please": "^15.0.0",
"ts-jest": "^29.1.2",
"ts-jest": "^29.2.5",
"typescript": "~5.4.5",
"winston": "^3.13.0",
"zod2md": "^0.1.2"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"composite": true,
"declaration": true,
Expand Down

0 comments on commit c7f41db

Please sign in to comment.