diff --git a/package.json b/package.json index 46cebd4f..f8f53cf7 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "concurrently": "^9.2.1", "eslint": "^9.39.4", "eslint-config-ndla": "^6.0.15-alpha.0", - "typescript": "^5.9.3", + "typescript": "^6.0.3", "typescript-eslint": "^8.57.1", "vitest": "^4.1.4" }, diff --git a/tsconfig.json b/tsconfig.json index 371f5487..503a0d15 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { - "module": "commonjs", + "module": "nodenext", "esModuleInterop": true, - "target": "ES2019", + "target": "esnext", "noImplicitAny": true, - "moduleResolution": "node", + "moduleResolution": "nodenext", "sourceMap": true, "outDir": "build", "strict": true, @@ -17,13 +17,9 @@ "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "skipLibCheck": true, + "rootDir": "src", "lib": ["es2020", "esnext.asynciterable", "DOM"], - "types": ["vitest/globals"], - "plugins": [ - { - "name": "typescript-strict-plugin" - } - ] + "types": ["vitest/globals"] }, "include": ["src/**/*"], "exclude": ["**/*-test.ts"] diff --git a/yarn.lock b/yarn.lock index 9d04b549..a235b2db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6366,7 +6366,7 @@ __metadata: punycode: "npm:^2.3.1" sanitize-html: "npm:^2.17.0" source-map-support: "npm:^0.5.21" - typescript: "npm:^5.9.3" + typescript: "npm:^6.0.3" typescript-eslint: "npm:^8.57.1" vitest: "npm:^4.1.4" winston: "npm:^3.13.0" @@ -8231,23 +8231,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.9.3": - version: 5.9.3 - resolution: "typescript@npm:5.9.3" +"typescript@npm:^6.0.3": + version: 6.0.3 + resolution: "typescript@npm:6.0.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/6bd7552ce39f97e711db5aa048f6f9995b53f1c52f7d8667c1abdc1700c68a76a308f579cd309ce6b53646deb4e9a1be7c813a93baaf0a28ccd536a30270e1c5 + checksum: 10c0/4a25ff5045b984370f48f196b3a0120779b1b343d40b9a68d114ea5e5fff099809b2bb777576991a63a5cd59cf7bffd96ff6fe10afcefbcb8bd6fb96ad4b6606 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^5.9.3#optional!builtin": - version: 5.9.3 - resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin::version=5.9.3&hash=5786d5" +"typescript@patch:typescript@npm%3A^6.0.3#optional!builtin": + version: 6.0.3 + resolution: "typescript@patch:typescript@npm%3A6.0.3#optional!builtin::version=6.0.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430 + checksum: 10c0/2f25c74e65663c248fa1ade2b8459d9ce5372ff9dad07067310f132966ebec1d93f6c42f0baf77a6b6a7a91460463f708e6887013aaade22111037457c6b25df languageName: node linkType: hard