diff --git a/docs/pages/repo/docs/handbook/linting/typescript.mdx b/docs/pages/repo/docs/handbook/linting/typescript.mdx index f340f4e499b6c..c287e974714a0 100644 --- a/docs/pages/repo/docs/handbook/linting/typescript.mdx +++ b/docs/pages/repo/docs/handbook/linting/typescript.mdx @@ -37,19 +37,18 @@ Inside `packages/tsconfig`, we have a few `json` files which represent different "$schema": "https://json.schemastore.org/tsconfig", "display": "Default", "compilerOptions": { - "composite": false, - "declaration": true, - "declarationMap": true, "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "inlineSources": false, - "isolatedModules": true, - "moduleResolution": "node", - "noUnusedLocals": false, - "noUnusedParameters": false, - "preserveWatchOutput": true, "skipLibCheck": true, - "strict": true + "target": "es2022", + "resolveJsonModule": true, + "isolatedModules": true, + "moduleDetection": "force", + "strict": true, + "noUncheckedIndexedAccess": true, + "moduleResolution": "Bundler", + "module": "ESNext", + "noEmit": true, + "lib": ["es2022", "dom", "dom.iterable"], }, "exclude": ["node_modules"] } diff --git a/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx b/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx index 29efd5695408e..876fba1463261 100644 --- a/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx +++ b/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx @@ -72,7 +72,8 @@ You'll also need to add a `tsconfig.json` at `packages/math-helpers/tsconfig.jso "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "isolatedModules": true, - "moduleResolution": "node", + "module": "ESNext", + "moduleResolution": "Bundler", "preserveWatchOutput": true, "skipLibCheck": true, "noEmit": true, diff --git a/examples/basic/package.json b/examples/basic/package.json index 0f0ecd4f5a274..fb20cdc498691 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -10,7 +10,7 @@ "eslint": "^8.48.0", "prettier": "^3.0.3", "tsconfig": "workspace:*", - "turbo": "^1.10.12" + "turbo": "^1.10.16" }, "packageManager": "pnpm@8.9.0" } diff --git a/examples/basic/packages/tsconfig/base.json b/examples/basic/packages/tsconfig/base.json index 837bec347fae6..a0d2a1836406a 100644 --- a/examples/basic/packages/tsconfig/base.json +++ b/examples/basic/packages/tsconfig/base.json @@ -2,20 +2,18 @@ "$schema": "https://json.schemastore.org/tsconfig", "display": "Default", "compilerOptions": { - "composite": false, - "declaration": true, - "declarationMap": true, "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "inlineSources": false, - "isolatedModules": true, - "moduleResolution": "node", - "noUnusedLocals": false, - "noUnusedParameters": false, - "preserveWatchOutput": true, "skipLibCheck": true, + "target": "es2022", + "resolveJsonModule": true, + "isolatedModules": true, + "moduleDetection": "force", "strict": true, - "strictNullChecks": true + "noUncheckedIndexedAccess": true, + "moduleResolution": "Bundler", + "module": "ESNext", + "noEmit": true, + "lib": ["es2022", "dom", "dom.iterable"], }, "exclude": ["node_modules"] } diff --git a/examples/basic/packages/tsconfig/nextjs.json b/examples/basic/packages/tsconfig/nextjs.json index d5010a1bbca39..e3748f2006a1d 100644 --- a/examples/basic/packages/tsconfig/nextjs.json +++ b/examples/basic/packages/tsconfig/nextjs.json @@ -4,17 +4,9 @@ "extends": "./base.json", "compilerOptions": { "plugins": [{ "name": "next" }], - "allowJs": true, - "declaration": false, - "declarationMap": false, "incremental": true, - "jsx": "preserve", - "lib": ["dom", "dom.iterable", "esnext"], - "module": "esnext", - "noEmit": true, - "resolveJsonModule": true, - "strict": false, - "target": "es5" + "allowJs": true, + "jsx": "preserve" }, "include": ["src", "next-env.d.ts"], "exclude": ["node_modules"] diff --git a/examples/basic/packages/tsconfig/react-library.json b/examples/basic/packages/tsconfig/react-library.json index 36b62be3894dd..a755ffea05e30 100644 --- a/examples/basic/packages/tsconfig/react-library.json +++ b/examples/basic/packages/tsconfig/react-library.json @@ -4,8 +4,5 @@ "extends": "./base.json", "compilerOptions": { "jsx": "react-jsx", - "lib": ["ES2015", "DOM"], - "module": "ESNext", - "target": "es6" } } diff --git a/examples/basic/pnpm-lock.yaml b/examples/basic/pnpm-lock.yaml index 9192f0c62ac49..e91634be1eaeb 100644 --- a/examples/basic/pnpm-lock.yaml +++ b/examples/basic/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: workspace:* version: link:packages/tsconfig turbo: - specifier: ^1.10.12 - version: 1.10.12 + specifier: ^1.10.16 + version: 1.10.16 apps/docs: dependencies: @@ -4460,65 +4460,64 @@ packages: typescript: 5.2.2 dev: true - /turbo-darwin-64@1.10.12: - resolution: {integrity: sha512-vmDfGVPl5/aFenAbOj3eOx3ePNcWVUyZwYr7taRl0ZBbmv2TzjRiFotO4vrKCiTVnbqjQqAFQWY2ugbqCI1kOQ==} + /turbo-darwin-64@1.10.16: + resolution: {integrity: sha512-+Jk91FNcp9e9NCLYlvDDlp2HwEDp14F9N42IoW3dmHI5ZkGSXzalbhVcrx3DOox3QfiNUHxzWg4d7CnVNCuuMg==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-darwin-arm64@1.10.12: - resolution: {integrity: sha512-3JliEESLNX2s7g54SOBqqkqJ7UhcOGkS0ywMr5SNuvF6kWVTbuUq7uBU/sVbGq8RwvK1ONlhPvJne5MUqBCTCQ==} + /turbo-darwin-arm64@1.10.16: + resolution: {integrity: sha512-jqGpFZipIivkRp/i+jnL8npX0VssE6IAVNKtu573LXtssZdV/S+fRGYA16tI46xJGxSAivrZ/IcgZrV6Jk80bw==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-linux-64@1.10.12: - resolution: {integrity: sha512-siYhgeX0DidIfHSgCR95b8xPee9enKSOjCzx7EjTLmPqPaCiVebRYvbOIYdQWRqiaKh9yfhUtFmtMOMScUf1gg==} + /turbo-linux-64@1.10.16: + resolution: {integrity: sha512-PpqEZHwLoizQ6sTUvmImcRmACyRk9EWLXGlqceogPZsJ1jTRK3sfcF9fC2W56zkSIzuLEP07k5kl+ZxJd8JMcg==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-linux-arm64@1.10.12: - resolution: {integrity: sha512-K/ZhvD9l4SslclaMkTiIrnfcACgos79YcAo4kwc8bnMQaKuUeRpM15sxLpZp3xDjDg8EY93vsKyjaOhdFG2UbA==} + /turbo-linux-arm64@1.10.16: + resolution: {integrity: sha512-TMjFYz8to1QE0fKVXCIvG/4giyfnmqcQIwjdNfJvKjBxn22PpbjeuFuQ5kNXshUTRaTJihFbuuCcb5OYFNx4uw==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-windows-64@1.10.12: - resolution: {integrity: sha512-7FSgSwvktWDNOqV65l9AbZwcoueAILeE4L7JvjauNASAjjbuzXGCEq5uN8AQU3U5BOFj4TdXrVmO2dX+lLu8Zg==} + /turbo-windows-64@1.10.16: + resolution: {integrity: sha512-+jsf68krs0N66FfC4/zZvioUap/Tq3sPFumnMV+EBo8jFdqs4yehd6+MxIwYTjSQLIcpH8KoNMB0gQYhJRLZzw==} cpu: [x64] os: [win32] requiresBuild: true dev: true optional: true - /turbo-windows-arm64@1.10.12: - resolution: {integrity: sha512-gCNXF52dwom1HLY9ry/cneBPOKTBHhzpqhMylcyvJP0vp9zeMQQkt6yjYv+6QdnmELC92CtKNp2FsNZo+z0pyw==} + /turbo-windows-arm64@1.10.16: + resolution: {integrity: sha512-sKm3hcMM1bl0B3PLG4ifidicOGfoJmOEacM5JtgBkYM48ncMHjkHfFY7HrJHZHUnXM4l05RQTpLFoOl/uIo2HQ==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /turbo@1.10.12: - resolution: {integrity: sha512-WM3+jTfQWnB9W208pmP4oeehZcC6JQNlydb/ZHMRrhmQa+htGhWLCzd6Q9rLe0MwZLPpSPFV2/bN5egCLyoKjQ==} + /turbo@1.10.16: + resolution: {integrity: sha512-2CEaK4FIuSZiP83iFa9GqMTQhroW2QryckVqUydmg4tx78baftTOS0O+oDAhvo9r9Nit4xUEtC1RAHoqs6ZEtg==} hasBin: true - requiresBuild: true optionalDependencies: - turbo-darwin-64: 1.10.12 - turbo-darwin-arm64: 1.10.12 - turbo-linux-64: 1.10.12 - turbo-linux-arm64: 1.10.12 - turbo-windows-64: 1.10.12 - turbo-windows-arm64: 1.10.12 + turbo-darwin-64: 1.10.16 + turbo-darwin-arm64: 1.10.16 + turbo-linux-64: 1.10.16 + turbo-linux-arm64: 1.10.16 + turbo-windows-64: 1.10.16 + turbo-windows-arm64: 1.10.16 dev: true /type-check@0.4.0: