From 2aa09691c9ed7c234e876009d5419737fc4cbac0 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 13:13:54 -0500 Subject: [PATCH 1/8] chore: migrate rootDir and baseDir values --- .../node-core-integration-tests/tsconfig.types.json | 3 ++- dev-packages/node-integration-tests/tsconfig.types.json | 3 ++- dev-packages/test-utils/tsconfig.types.json | 3 ++- packages/astro/tsconfig.types.json | 3 ++- packages/aws-serverless/tsconfig.types.json | 3 ++- packages/browser-utils/tsconfig.types.json | 3 ++- packages/browser/tsconfig.types.json | 3 ++- packages/bun/tsconfig.types.json | 3 ++- packages/cloudflare/tsconfig.types.json | 3 ++- packages/core/tsconfig.types.json | 3 ++- packages/deno/tsconfig.build.json | 1 + packages/deno/tsconfig.types.json | 3 ++- packages/feedback/tsconfig.json | 1 - packages/feedback/tsconfig.types.json | 3 ++- packages/gatsby/tsconfig.types.json | 3 ++- packages/google-cloud-serverless/tsconfig.types.json | 3 ++- packages/hono/tsconfig.types.json | 3 ++- packages/integration-shims/tsconfig.types.json | 3 ++- packages/nestjs/tsconfig.setup-types.json | 3 ++- packages/nestjs/tsconfig.types.json | 3 ++- packages/nextjs/tsconfig.types.json | 3 ++- packages/node-core/tsconfig.types.json | 3 ++- packages/node-native/tsconfig.json | 1 + packages/node-native/tsconfig.types.json | 1 + packages/node/tsconfig.types.json | 3 ++- packages/nuxt/tsconfig.types.json | 3 ++- packages/opentelemetry/tsconfig.types.json | 3 ++- packages/profiling-node/tsconfig.json | 1 + packages/profiling-node/tsconfig.types.json | 1 + packages/react-router/tsconfig.types.json | 3 ++- packages/react/tsconfig.types.json | 3 ++- packages/remix/tsconfig.types.json | 3 ++- packages/replay-canvas/tsconfig.types.json | 3 ++- packages/replay-internal/tsconfig.types.json | 3 ++- packages/replay-worker/tsconfig.types.json | 3 ++- packages/solid/tsconfig.routers-types.json | 3 ++- packages/solid/tsconfig.types.json | 3 ++- packages/solidstart/tsconfig.subexports-types.json | 3 ++- packages/solidstart/tsconfig.types.json | 3 ++- packages/svelte/tsconfig.types.json | 3 ++- packages/sveltekit/tsconfig.types.json | 3 ++- packages/tanstackstart-react/tsconfig.types.json | 3 ++- packages/tanstackstart/tsconfig.types.json | 3 ++- packages/types/tsconfig.types.json | 3 ++- packages/typescript/tsconfig.json | 9 ++++----- packages/vercel-edge/tsconfig.types.json | 3 ++- packages/vue/tsconfig.router-types.json | 3 ++- packages/vue/tsconfig.types.json | 3 ++- packages/wasm/tsconfig.types.json | 3 ++- tsconfig-templates/tsconfig.types.json | 3 ++- 50 files changed, 95 insertions(+), 49 deletions(-) diff --git a/dev-packages/node-core-integration-tests/tsconfig.types.json b/dev-packages/node-core-integration-tests/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/dev-packages/node-core-integration-tests/tsconfig.types.json +++ b/dev-packages/node-core-integration-tests/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/dev-packages/node-integration-tests/tsconfig.types.json b/dev-packages/node-integration-tests/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/dev-packages/node-integration-tests/tsconfig.types.json +++ b/dev-packages/node-integration-tests/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/dev-packages/test-utils/tsconfig.types.json b/dev-packages/test-utils/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/dev-packages/test-utils/tsconfig.types.json +++ b/dev-packages/test-utils/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/astro/tsconfig.types.json b/packages/astro/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/astro/tsconfig.types.json +++ b/packages/astro/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/aws-serverless/tsconfig.types.json b/packages/aws-serverless/tsconfig.types.json index 03b57fcaa2a7..222c62d03f94 100644 --- a/packages/aws-serverless/tsconfig.types.json +++ b/packages/aws-serverless/tsconfig.types.json @@ -9,6 +9,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/packages/browser-utils/tsconfig.types.json b/packages/browser-utils/tsconfig.types.json index cf096d99a06a..a52d8b56a6f1 100644 --- a/packages/browser-utils/tsconfig.types.json +++ b/packages/browser-utils/tsconfig.types.json @@ -9,6 +9,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/browser/tsconfig.types.json b/packages/browser/tsconfig.types.json index 374fd9bc9364..84235fd481ba 100644 --- a/packages/browser/tsconfig.types.json +++ b/packages/browser/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/packages/bun/tsconfig.types.json b/packages/bun/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/bun/tsconfig.types.json +++ b/packages/bun/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/cloudflare/tsconfig.types.json b/packages/cloudflare/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/cloudflare/tsconfig.types.json +++ b/packages/cloudflare/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/core/tsconfig.types.json b/packages/core/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/core/tsconfig.types.json +++ b/packages/core/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/deno/tsconfig.build.json b/packages/deno/tsconfig.build.json index 87025d5676c5..6357e56f37cc 100644 --- a/packages/deno/tsconfig.build.json +++ b/packages/deno/tsconfig.build.json @@ -3,6 +3,7 @@ "include": ["./lib.deno.d.ts", "src/**/*"], "compilerOptions": { "outDir": "build", + "rootDir": "./src", "lib": ["esnext"], "module": "esnext", "target": "esnext", diff --git a/packages/deno/tsconfig.types.json b/packages/deno/tsconfig.types.json index 1e3cbfc7997a..df379535fcfa 100644 --- a/packages/deno/tsconfig.types.json +++ b/packages/deno/tsconfig.types.json @@ -4,6 +4,7 @@ "declaration": true, "declarationMap": false, "emitDeclarationOnly": true, - "outDir": "build/esm" + "outDir": "build/esm", + "rootDir": "./src" } } diff --git a/packages/feedback/tsconfig.json b/packages/feedback/tsconfig.json index 50734351f40b..4674a0e7fee3 100644 --- a/packages/feedback/tsconfig.json +++ b/packages/feedback/tsconfig.json @@ -7,7 +7,6 @@ "jsx": "react-jsx", "jsxImportSource": "preact", "skipLibCheck": true, - "baseUrl": "./", "paths": { "react": ["./node_modules/preact/compat/"], "react-dom": ["./node_modules/preact/compat/"] diff --git a/packages/feedback/tsconfig.types.json b/packages/feedback/tsconfig.types.json index 374fd9bc9364..84235fd481ba 100644 --- a/packages/feedback/tsconfig.types.json +++ b/packages/feedback/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/packages/gatsby/tsconfig.types.json b/packages/gatsby/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/gatsby/tsconfig.types.json +++ b/packages/gatsby/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/google-cloud-serverless/tsconfig.types.json b/packages/google-cloud-serverless/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/google-cloud-serverless/tsconfig.types.json +++ b/packages/google-cloud-serverless/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/hono/tsconfig.types.json b/packages/hono/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/hono/tsconfig.types.json +++ b/packages/hono/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/integration-shims/tsconfig.types.json b/packages/integration-shims/tsconfig.types.json index 16be672259fb..bc44fa39a8a9 100644 --- a/packages/integration-shims/tsconfig.types.json +++ b/packages/integration-shims/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/nestjs/tsconfig.setup-types.json b/packages/nestjs/tsconfig.setup-types.json index 2ef9310f3edc..7e7c0d18802b 100644 --- a/packages/nestjs/tsconfig.setup-types.json +++ b/packages/nestjs/tsconfig.setup-types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "./" + "outDir": "./", + "rootDir": "./src" }, "//": "This type is built separately because it is for a subpath export, which has problems if it is not in the root", diff --git a/packages/nestjs/tsconfig.types.json b/packages/nestjs/tsconfig.types.json index 6240cd92efaa..a4f71a441177 100644 --- a/packages/nestjs/tsconfig.types.json +++ b/packages/nestjs/tsconfig.types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" }, "//": "This is built separately in tsconfig.setup-types.json", diff --git a/packages/nextjs/tsconfig.types.json b/packages/nextjs/tsconfig.types.json index 978b51b8e126..ab5c81eefb46 100644 --- a/packages/nextjs/tsconfig.types.json +++ b/packages/nextjs/tsconfig.types.json @@ -11,6 +11,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/node-core/tsconfig.types.json b/packages/node-core/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/node-core/tsconfig.types.json +++ b/packages/node-core/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/node-native/tsconfig.json b/packages/node-native/tsconfig.json index b1109af19fdf..00e911109da2 100644 --- a/packages/node-native/tsconfig.json +++ b/packages/node-native/tsconfig.json @@ -4,6 +4,7 @@ "module": "esnext", "lib": ["es2020"], "outDir": "build", + "rootDir": "./src", "types": ["node"] }, "include": ["src/**/*"] diff --git a/packages/node-native/tsconfig.types.json b/packages/node-native/tsconfig.types.json index 7a01535e9a4c..e3ce52c16612 100644 --- a/packages/node-native/tsconfig.types.json +++ b/packages/node-native/tsconfig.types.json @@ -5,6 +5,7 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types", + "rootDir": "./src", "types": ["node"] }, "files": ["src/index.ts"] diff --git a/packages/node/tsconfig.types.json b/packages/node/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/node/tsconfig.types.json +++ b/packages/node/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/nuxt/tsconfig.types.json b/packages/nuxt/tsconfig.types.json index cab81135cd7a..0978a2184983 100644 --- a/packages/nuxt/tsconfig.types.json +++ b/packages/nuxt/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/opentelemetry/tsconfig.types.json b/packages/opentelemetry/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/opentelemetry/tsconfig.types.json +++ b/packages/opentelemetry/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/profiling-node/tsconfig.json b/packages/profiling-node/tsconfig.json index b1109af19fdf..00e911109da2 100644 --- a/packages/profiling-node/tsconfig.json +++ b/packages/profiling-node/tsconfig.json @@ -4,6 +4,7 @@ "module": "esnext", "lib": ["es2020"], "outDir": "build", + "rootDir": "./src", "types": ["node"] }, "include": ["src/**/*"] diff --git a/packages/profiling-node/tsconfig.types.json b/packages/profiling-node/tsconfig.types.json index 7a01535e9a4c..e3ce52c16612 100644 --- a/packages/profiling-node/tsconfig.types.json +++ b/packages/profiling-node/tsconfig.types.json @@ -5,6 +5,7 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types", + "rootDir": "./src", "types": ["node"] }, "files": ["src/index.ts"] diff --git a/packages/react-router/tsconfig.types.json b/packages/react-router/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/react-router/tsconfig.types.json +++ b/packages/react-router/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/react/tsconfig.types.json b/packages/react/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/react/tsconfig.types.json +++ b/packages/react/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/remix/tsconfig.types.json b/packages/remix/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/remix/tsconfig.types.json +++ b/packages/remix/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/replay-canvas/tsconfig.types.json b/packages/replay-canvas/tsconfig.types.json index 374fd9bc9364..84235fd481ba 100644 --- a/packages/replay-canvas/tsconfig.types.json +++ b/packages/replay-canvas/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/packages/replay-internal/tsconfig.types.json b/packages/replay-internal/tsconfig.types.json index 374fd9bc9364..84235fd481ba 100644 --- a/packages/replay-internal/tsconfig.types.json +++ b/packages/replay-internal/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/packages/replay-worker/tsconfig.types.json b/packages/replay-worker/tsconfig.types.json index 99004bd20579..bb06930d53f5 100644 --- a/packages/replay-worker/tsconfig.types.json +++ b/packages/replay-worker/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/solid/tsconfig.routers-types.json b/packages/solid/tsconfig.routers-types.json index e173ebc0eb87..fd6242d56ec7 100644 --- a/packages/solid/tsconfig.routers-types.json +++ b/packages/solid/tsconfig.routers-types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "./" + "outDir": "./", + "rootDir": "./src" }, "//": "This type is built separately because it is for a subpath export, which has problems if it is not in the root", diff --git a/packages/solid/tsconfig.types.json b/packages/solid/tsconfig.types.json index 510f8c4fae3f..03067ad3eebb 100644 --- a/packages/solid/tsconfig.types.json +++ b/packages/solid/tsconfig.types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" }, "//": "This is built separately in tsconfig.routers-types.json", diff --git a/packages/solidstart/tsconfig.subexports-types.json b/packages/solidstart/tsconfig.subexports-types.json index 52dd6d1d268c..c436b5742c96 100644 --- a/packages/solidstart/tsconfig.subexports-types.json +++ b/packages/solidstart/tsconfig.subexports-types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "./" + "outDir": "./", + "rootDir": "./src" }, // These types are built separately because they are for a subpath export, which has problems if they are not in the root diff --git a/packages/solidstart/tsconfig.types.json b/packages/solidstart/tsconfig.types.json index f7cc8c3d1610..bee3ae52c17a 100644 --- a/packages/solidstart/tsconfig.types.json +++ b/packages/solidstart/tsconfig.types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" }, // These are built separately in tsconfig.solidrouter-types.json diff --git a/packages/svelte/tsconfig.types.json b/packages/svelte/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/svelte/tsconfig.types.json +++ b/packages/svelte/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/sveltekit/tsconfig.types.json b/packages/sveltekit/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/sveltekit/tsconfig.types.json +++ b/packages/sveltekit/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/tanstackstart-react/tsconfig.types.json b/packages/tanstackstart-react/tsconfig.types.json index b1a51db073c2..95f5682aec13 100644 --- a/packages/tanstackstart-react/tsconfig.types.json +++ b/packages/tanstackstart-react/tsconfig.types.json @@ -4,6 +4,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/tanstackstart/tsconfig.types.json b/packages/tanstackstart/tsconfig.types.json index b1a51db073c2..95f5682aec13 100644 --- a/packages/tanstackstart/tsconfig.types.json +++ b/packages/tanstackstart/tsconfig.types.json @@ -4,6 +4,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/types/tsconfig.types.json b/packages/types/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/types/tsconfig.types.json +++ b/packages/types/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/typescript/tsconfig.json b/packages/typescript/tsconfig.json index 8dd1e93e2c6e..9e01eda53851 100644 --- a/packages/typescript/tsconfig.json +++ b/packages/typescript/tsconfig.json @@ -1,14 +1,12 @@ { "compilerOptions": { - "alwaysStrict": false, "declaration": true, "declarationMap": true, - "downlevelIteration": true, "importHelpers": true, "inlineSources": true, "isolatedModules": true, - "lib": ["es2020"], - "moduleResolution": "node", + "lib": ["es2020", "DOM"], + "moduleResolution": "bundler", "noErrorTruncation": true, "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, @@ -19,6 +17,7 @@ "strict": true, "strictBindCallApply": false, "target": "es2020", - "noUncheckedIndexedAccess": true + "noUncheckedIndexedAccess": true, + "types": ["node"] } } diff --git a/packages/vercel-edge/tsconfig.types.json b/packages/vercel-edge/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/vercel-edge/tsconfig.types.json +++ b/packages/vercel-edge/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/vue/tsconfig.router-types.json b/packages/vue/tsconfig.router-types.json index ef17c20dd7c1..3ac75fe5cdcf 100644 --- a/packages/vue/tsconfig.router-types.json +++ b/packages/vue/tsconfig.router-types.json @@ -5,7 +5,8 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "./" + "outDir": "./", + "rootDir": "./src" }, "//": "This type is built separately because it is for a subpath export, which has problems if it is not in the root", diff --git a/packages/vue/tsconfig.types.json b/packages/vue/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/packages/vue/tsconfig.types.json +++ b/packages/vue/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } diff --git a/packages/wasm/tsconfig.types.json b/packages/wasm/tsconfig.types.json index 374fd9bc9364..84235fd481ba 100644 --- a/packages/wasm/tsconfig.types.json +++ b/packages/wasm/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/npm/types" + "outDir": "build/npm/types", + "rootDir": "./src" } } diff --git a/tsconfig-templates/tsconfig.types.json b/tsconfig-templates/tsconfig.types.json index 65455f66bd75..5e5cc814cbec 100644 --- a/tsconfig-templates/tsconfig.types.json +++ b/tsconfig-templates/tsconfig.types.json @@ -5,6 +5,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": true, - "outDir": "build/types" + "outDir": "build/types", + "rootDir": "./src" } } From b9560f9a1007fbf041331b9463d138c337212fb9 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 13:14:09 -0500 Subject: [PATCH 2/8] chore: upgrade ts version --- package.json | 4 ++-- yarn.lock | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index a6d49966a0c8..941e96615613 100644 --- a/package.json +++ b/package.json @@ -127,10 +127,10 @@ "es-check": "^7.2.1", "eslint": "8.57.0", "jsdom": "^21.1.2", - "nx": "22.5.0", "madge": "8.0.0", "nodemon": "^3.1.10", "npm-run-all2": "^6.2.0", + "nx": "22.5.0", "oxfmt": "^0.32.0", "rimraf": "^5.0.10", "rollup": "^4.35.0", @@ -139,7 +139,7 @@ "size-limit": "~11.1.6", "sucrase": "^3.35.0", "ts-node": "10.9.2", - "typescript": "~5.8.0", + "typescript": "^6.0.0-beta", "vitest": "^3.2.4", "yalc": "^1.0.0-pre.53", "yarn-deduplicate": "6.0.2" diff --git a/yarn.lock b/yarn.lock index 08901460280e..54e08b396426 100644 --- a/yarn.lock +++ b/yarn.lock @@ -28692,7 +28692,6 @@ stylus@0.59.0, stylus@^0.59.0: sucrase@^3.27.0, sucrase@^3.35.0, sucrase@getsentry/sucrase#es2020-polyfills: version "3.36.0" - uid fd682f6129e507c00bb4e6319cc5d6b767e36061 resolved "https://codeload.github.com/getsentry/sucrase/tar.gz/fd682f6129e507c00bb4e6319cc5d6b767e36061" dependencies: "@jridgewell/gen-mapping" "^0.3.2" @@ -29672,16 +29671,16 @@ typescript@^5.7.3, typescript@^5.8.3: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f" integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw== +typescript@^6.0.0-beta: + version "6.0.0-beta" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.0-beta.tgz#2f87bd0cd1a291f675b3414a02a00bd4f7b48357" + integrity sha512-CldZdztDpQRLM1HC6WDQjQkQN5Ub5zRau737a1diGh3lPmb9oRsaWHk1y5iqK0o7+1bNJ0oXfEGRkAogFZBL+Q== + typescript@next: version "5.2.0-dev.20230530" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.0-dev.20230530.tgz#4251ade97a9d8a86850c4d5c3c4f3e1cb2ccf52c" integrity sha512-bIoMajCZWzLB+pWwncaba/hZc6dRnw7x8T/fenOnP9gYQB/gc4xdm48AXp5SH5I/PvvSeZ/dXkUMtc8s8BiDZw== -typescript@~5.8.0: - version "5.8.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e" - integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ== - uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" From ca93bc6fa329faeb92acc8cbfe7a9166036d0fba Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 13:15:02 -0500 Subject: [PATCH 3/8] fix: updat broken types to their new expectations --- .../lambda-extension/aws-lambda-extension.ts | 2 +- .../lib/polyfills/interactionCountPolyfill.ts | 2 +- .../src/metrics/web-vitals/types.ts | 2 +- packages/browser/src/eventbuilder.ts | 3 -- .../browser/src/integrations/spotlight.ts | 2 +- packages/browser/src/transports/fetch.ts | 2 +- packages/bun/src/transports/index.ts | 2 +- packages/cloudflare/src/transport.ts | 2 +- packages/deno/src/transports/index.ts | 2 +- packages/feedback/src/index.ts | 2 ++ .../src/util/createPerformanceEntries.ts | 1 + packages/svelte/src/config.ts | 3 +- packages/svelte/src/preprocessors.ts | 8 +++-- packages/svelte/src/types.ts | 32 +++++++++++++++++-- packages/vercel-edge/src/transports/index.ts | 2 +- 15 files changed, 49 insertions(+), 18 deletions(-) diff --git a/packages/aws-serverless/src/lambda-extension/aws-lambda-extension.ts b/packages/aws-serverless/src/lambda-extension/aws-lambda-extension.ts index ff2228fffabe..533ed14b307f 100644 --- a/packages/aws-serverless/src/lambda-extension/aws-lambda-extension.ts +++ b/packages/aws-serverless/src/lambda-extension/aws-lambda-extension.ts @@ -115,7 +115,7 @@ export class AwsLambdaExtension { fetch(upstreamSentryUrl, { method: 'POST', - body: envelopeBytes, + body: envelopeBytes as BodyInit, }).catch(err => { DEBUG_BUILD && debug.error('Error sending envelope to Sentry', err); }); diff --git a/packages/browser-utils/src/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.ts b/packages/browser-utils/src/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.ts index 4da20a602335..5f57c0c6952c 100644 --- a/packages/browser-utils/src/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.ts +++ b/packages/browser-utils/src/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.ts @@ -18,7 +18,7 @@ import { observe } from '../observe'; declare global { interface Performance { - interactionCount: number; + readonly interactionCount: number; } } diff --git a/packages/browser-utils/src/metrics/web-vitals/types.ts b/packages/browser-utils/src/metrics/web-vitals/types.ts index 8146849182b5..826cc8a5face 100644 --- a/packages/browser-utils/src/metrics/web-vitals/types.ts +++ b/packages/browser-utils/src/metrics/web-vitals/types.ts @@ -58,7 +58,7 @@ declare global { // https://wicg.github.io/event-timing/#sec-performance-event-timing interface PerformanceEventTiming extends PerformanceEntry { duration: DOMHighResTimeStamp; - interactionId: number; + readonly interactionId: number; } // https://wicg.github.io/layout-instability/#sec-layout-shift-attribution diff --git a/packages/browser/src/eventbuilder.ts b/packages/browser/src/eventbuilder.ts index 9823d596a502..262440402a45 100644 --- a/packages/browser/src/eventbuilder.ts +++ b/packages/browser/src/eventbuilder.ts @@ -161,12 +161,9 @@ function getPopFirstTopFrames(ex: Error & { framesToPop?: unknown }): number { } // https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Exception -// @ts-expect-error - WebAssembly.Exception is a valid class function isWebAssemblyException(exception: unknown): exception is WebAssembly.Exception { // Check for support - // @ts-expect-error - WebAssembly.Exception is a valid class if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.Exception !== 'undefined') { - // @ts-expect-error - WebAssembly.Exception is a valid class return exception instanceof WebAssembly.Exception; } else { return false; diff --git a/packages/browser/src/integrations/spotlight.ts b/packages/browser/src/integrations/spotlight.ts index bea72e029a97..6fcfc1b83ba5 100644 --- a/packages/browser/src/integrations/spotlight.ts +++ b/packages/browser/src/integrations/spotlight.ts @@ -44,7 +44,7 @@ function setupSidecarForwarding(client: Client, sidecarUrl: string): void { makeFetch(sidecarUrl, { method: 'POST', - body: serializeEnvelope(envelope), + body: serializeEnvelope(envelope) as BodyInit, headers: { 'Content-Type': 'application/x-sentry-envelope', }, diff --git a/packages/browser/src/transports/fetch.ts b/packages/browser/src/transports/fetch.ts index f6683c7005de..1e196794f10c 100644 --- a/packages/browser/src/transports/fetch.ts +++ b/packages/browser/src/transports/fetch.ts @@ -22,7 +22,7 @@ export function makeFetchTransport( pendingCount++; const requestOptions: RequestInit = { - body: request.body, + body: request.body as BodyInit, method: 'POST', referrerPolicy: 'strict-origin', headers: options.headers, diff --git a/packages/bun/src/transports/index.ts b/packages/bun/src/transports/index.ts index 20df5bb4b521..043145d55a24 100644 --- a/packages/bun/src/transports/index.ts +++ b/packages/bun/src/transports/index.ts @@ -7,7 +7,7 @@ import { createTransport, suppressTracing } from '@sentry/core'; export function makeFetchTransport(options: BaseTransportOptions): Transport { function makeRequest(request: TransportRequest): PromiseLike { const requestOptions: RequestInit = { - body: request.body, + body: request.body as BodyInit, method: 'POST', headers: options.headers, }; diff --git a/packages/cloudflare/src/transport.ts b/packages/cloudflare/src/transport.ts index 8e0e82aae7e0..6069ec631189 100644 --- a/packages/cloudflare/src/transport.ts +++ b/packages/cloudflare/src/transport.ts @@ -82,7 +82,7 @@ export class IsolatedPromiseBuffer { export function makeCloudflareTransport(options: CloudflareTransportOptions): Transport { function makeRequest(request: TransportRequest): PromiseLike { const requestOptions: RequestInit = { - body: request.body, + body: request.body as BodyInit, method: 'POST', headers: options.headers, ...options.fetchOptions, diff --git a/packages/deno/src/transports/index.ts b/packages/deno/src/transports/index.ts index e906ce96e4fc..6f9d189f9537 100644 --- a/packages/deno/src/transports/index.ts +++ b/packages/deno/src/transports/index.ts @@ -24,7 +24,7 @@ export function makeFetchTransport(options: BaseTransportOptions): Transport { function makeRequest(request: TransportRequest): PromiseLike { const requestOptions: RequestInit = { - body: request.body, + body: request.body as BodyInit, method: 'POST', referrerPolicy: 'strict-origin', headers: options.headers, diff --git a/packages/feedback/src/index.ts b/packages/feedback/src/index.ts index 2f95cf86fd1f..16e1a5340a1e 100644 --- a/packages/feedback/src/index.ts +++ b/packages/feedback/src/index.ts @@ -5,3 +5,5 @@ export { buildFeedbackIntegration } from './core/integration'; export { getFeedback } from './core/getFeedback'; export { feedbackModalIntegration } from './modal/integration'; export { feedbackScreenshotIntegration } from './screenshot/integration'; +export type { ActorComponent } from './core/components/Actor'; +export type { OverrideFeedbackConfiguration } from './core/types'; diff --git a/packages/replay-internal/src/util/createPerformanceEntries.ts b/packages/replay-internal/src/util/createPerformanceEntries.ts index b8a39f233074..67e943f5c680 100644 --- a/packages/replay-internal/src/util/createPerformanceEntries.ts +++ b/packages/replay-internal/src/util/createPerformanceEntries.ts @@ -20,6 +20,7 @@ const ENTRY_TYPES: Record< > = { // @ts-expect-error TODO: entry type does not fit the create* functions entry type resource: createResourceEntry, + // @ts-expect-error TODO: entry type does not fit the create* functions entry type paint: createPaintEntry, // @ts-expect-error TODO: entry type does not fit the create* functions entry type navigation: createNavigationEntry, diff --git a/packages/svelte/src/config.ts b/packages/svelte/src/config.ts index 47a45ba0d9a4..2d11683e4e64 100644 --- a/packages/svelte/src/config.ts +++ b/packages/svelte/src/config.ts @@ -1,6 +1,5 @@ -import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; import { componentTrackingPreprocessor, defaultComponentTrackingOptions } from './preprocessors'; -import type { SentryPreprocessorGroup, SentrySvelteConfigOptions, SvelteConfig } from './types'; +import type { PreprocessorGroup, SentryPreprocessorGroup, SentrySvelteConfigOptions, SvelteConfig } from './types'; const defaultSentryOptions: SentrySvelteConfigOptions = { componentTracking: defaultComponentTrackingOptions, diff --git a/packages/svelte/src/preprocessors.ts b/packages/svelte/src/preprocessors.ts index c7df0e258c0f..9ddd4ae9a939 100644 --- a/packages/svelte/src/preprocessors.ts +++ b/packages/svelte/src/preprocessors.ts @@ -1,6 +1,10 @@ import MagicString from 'magic-string'; -import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; -import type { ComponentTrackingInitOptions, SentryPreprocessorGroup, TrackComponentOptions } from './types'; +import type { + ComponentTrackingInitOptions, + PreprocessorGroup, + SentryPreprocessorGroup, + TrackComponentOptions, +} from './types'; export const defaultComponentTrackingOptions: Required = { trackComponents: true, diff --git a/packages/svelte/src/types.ts b/packages/svelte/src/types.ts index ff79920ab9a4..711a89ab0e86 100644 --- a/packages/svelte/src/types.ts +++ b/packages/svelte/src/types.ts @@ -1,5 +1,4 @@ -import type { CompileOptions } from 'svelte/types/compiler'; -import type { PreprocessorGroup } from 'svelte/types/compiler/preprocess'; +import type { CompileOptions } from 'svelte/compiler'; // Adds an id property to the preprocessor object we can use to check for duplication // in the preprocessors array @@ -70,3 +69,32 @@ export type TrackComponentOptions = { */ componentName?: string; } & SpanOptions; + +// vendor those types from svelte/types/compiler/preprocess +export interface Processed { + code: string; + map?: string | object; + dependencies?: string[]; + toString?: () => string; +} +export declare type MarkupPreprocessor = (options: { + content: string; + filename?: string; +}) => Processed | void | Promise; +export declare type Preprocessor = (options: { + /** + * The script/style tag content + */ + content: string; + attributes: Record; + /** + * The whole Svelte file content + */ + markup: string; + filename?: string; +}) => Processed | void | Promise; +export interface PreprocessorGroup { + markup?: MarkupPreprocessor; + style?: Preprocessor; + script?: Preprocessor; +} diff --git a/packages/vercel-edge/src/transports/index.ts b/packages/vercel-edge/src/transports/index.ts index 668fb6a4c236..4fba86a5d0f7 100644 --- a/packages/vercel-edge/src/transports/index.ts +++ b/packages/vercel-edge/src/transports/index.ts @@ -80,7 +80,7 @@ export class IsolatedPromiseBuffer { export function makeEdgeTransport(options: VercelEdgeTransportOptions): Transport { function makeRequest(request: TransportRequest): PromiseLike { const requestOptions: RequestInit = { - body: request.body, + body: request.body as BodyInit, method: 'POST', headers: options.headers, ...options.fetchOptions, From ff4376678b0d4ccfc30da3b8a792f2c7d2387152 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 13:35:14 -0500 Subject: [PATCH 4/8] fix: type exports and deno tsconfig --- dev-packages/node-core-integration-tests/tsconfig.types.json | 2 +- dev-packages/node-integration-tests/tsconfig.types.json | 2 +- packages/deno/tsconfig.types.json | 1 + packages/nuxt/src/runtime/utils.ts | 2 +- packages/sveltekit/src/server-common/handle.ts | 1 - packages/sveltekit/src/vite/svelteConfig.ts | 1 - packages/vue/src/index.ts | 1 + 7 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dev-packages/node-core-integration-tests/tsconfig.types.json b/dev-packages/node-core-integration-tests/tsconfig.types.json index 5e5cc814cbec..d7b754ff432d 100644 --- a/dev-packages/node-core-integration-tests/tsconfig.types.json +++ b/dev-packages/node-core-integration-tests/tsconfig.types.json @@ -6,6 +6,6 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types", - "rootDir": "./src" + "rootDir": "." } } diff --git a/dev-packages/node-integration-tests/tsconfig.types.json b/dev-packages/node-integration-tests/tsconfig.types.json index 5e5cc814cbec..d7b754ff432d 100644 --- a/dev-packages/node-integration-tests/tsconfig.types.json +++ b/dev-packages/node-integration-tests/tsconfig.types.json @@ -6,6 +6,6 @@ "declarationMap": true, "emitDeclarationOnly": true, "outDir": "build/types", - "rootDir": "./src" + "rootDir": "." } } diff --git a/packages/deno/tsconfig.types.json b/packages/deno/tsconfig.types.json index df379535fcfa..9e741b4b274e 100644 --- a/packages/deno/tsconfig.types.json +++ b/packages/deno/tsconfig.types.json @@ -1,5 +1,6 @@ { "extends": "./tsconfig.json", + "include": ["src/**/*", "lib.deno.d.ts"], "compilerOptions": { "declaration": true, "declarationMap": false, diff --git a/packages/nuxt/src/runtime/utils.ts b/packages/nuxt/src/runtime/utils.ts index ce8069c58cdb..ba92fc06082b 100644 --- a/packages/nuxt/src/runtime/utils.ts +++ b/packages/nuxt/src/runtime/utils.ts @@ -1,6 +1,6 @@ import type { ClientOptions, Context, SerializedTraceData } from '@sentry/core'; import { captureException, debug, getClient, getTraceMetaTags } from '@sentry/core'; -import type { VueOptions } from '@sentry/vue/src/types'; +import type { VueOptions } from '@sentry/vue'; import type { CapturedErrorContext } from 'nitropack/types'; import type { NuxtRenderHTMLContext } from 'nuxt/app'; import type { ComponentPublicInstance } from 'vue'; diff --git a/packages/sveltekit/src/server-common/handle.ts b/packages/sveltekit/src/server-common/handle.ts index 26872a0f6f24..c0e33c49c031 100644 --- a/packages/sveltekit/src/server-common/handle.ts +++ b/packages/sveltekit/src/server-common/handle.ts @@ -128,7 +128,6 @@ async function instrumentHandle( // to avoid doing the dynamic import on every request if (options.injectFetchProxyScript == null) { try { - // @ts-expect-error - the dynamic import is fine here const { VERSION } = await import('@sveltejs/kit'); options.injectFetchProxyScript = isFetchProxyRequired(VERSION); } catch { diff --git a/packages/sveltekit/src/vite/svelteConfig.ts b/packages/sveltekit/src/vite/svelteConfig.ts index ae0a29a25243..b8f439092bee 100644 --- a/packages/sveltekit/src/vite/svelteConfig.ts +++ b/packages/sveltekit/src/vite/svelteConfig.ts @@ -39,7 +39,6 @@ export async function loadSvelteConfig(): Promise Date: Thu, 19 Feb 2026 13:41:02 -0500 Subject: [PATCH 5/8] fix: inline options into angular config to avoid module resolution compatability --- packages/angular/tsconfig.ngc.json | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/angular/tsconfig.ngc.json b/packages/angular/tsconfig.ngc.json index 2e86b8e3a6b4..daadd211b81f 100644 --- a/packages/angular/tsconfig.ngc.json +++ b/packages/angular/tsconfig.ngc.json @@ -2,12 +2,34 @@ // This tsconfig is used when building @sentry/angular with the Angular // compiler and `ng-packagr`. It configures a production build conforming // to the Angular Package Format (APF). +// +// Does NOT extend the shared base tsconfig because ng-packagr ships its own +// older TypeScript that doesn't support "moduleResolution": "bundler". { - "extends": "./tsconfig.json", + "include": ["**/*.ts", "src/**/*"], + "exclude": ["patch-vitest.ts", "setup-test.ts"], "compilerOptions": { - "target": "es2020", + "declaration": false, "declarationMap": false, + "experimentalDecorators": true, + "importHelpers": true, + "inlineSources": true, + "isolatedModules": true, "lib": ["DOM", "es2020"], + "moduleResolution": "node", + "noErrorTruncation": true, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noUncheckedIndexedAccess": true, + "preserveWatchOutput": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "strictBindCallApply": false, + "target": "es2020", + "types": ["node"], "baseUrl": "./" }, "angularCompilerOptions": { From 9522cb4d9cbec51a444dc5cae00459389e34b4d0 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 13:51:35 -0500 Subject: [PATCH 6/8] chore: bump ts in verify script thanks kamil --- scripts/verify-packages-versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verify-packages-versions.js b/scripts/verify-packages-versions.js index 81eac62e9c90..779213c5b254 100644 --- a/scripts/verify-packages-versions.js +++ b/scripts/verify-packages-versions.js @@ -1,6 +1,6 @@ const pkg = require('../package.json'); -const TYPESCRIPT_VERSION = '~5.8.0'; +const TYPESCRIPT_VERSION = '^6.0.0-beta'; if (pkg.devDependencies.typescript !== TYPESCRIPT_VERSION) { console.error(` From 8d659fbf0ca0d0bb025c7c204c3a3f872341ab0d Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 14:04:59 -0500 Subject: [PATCH 7/8] fix: unused ts expect errors --- packages/react-router/test/server/wrapServerAction.test.ts | 1 - packages/react-router/test/server/wrapServerLoader.test.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/react-router/test/server/wrapServerAction.test.ts b/packages/react-router/test/server/wrapServerAction.test.ts index 043d838aa90a..149b90d570c0 100644 --- a/packages/react-router/test/server/wrapServerAction.test.ts +++ b/packages/react-router/test/server/wrapServerAction.test.ts @@ -120,7 +120,6 @@ describe('wrapServerAction', () => { it('should skip span creation and warn when instrumentation API is used', async () => { // Reset modules to get a fresh copy with unset warning flag vi.resetModules(); - // @ts-expect-error - Dynamic import for module reset works at runtime but vitest's typecheck doesn't fully support it const { wrapServerAction: freshWrapServerAction } = await import('../../src/server/wrapServerAction'); // Set the global flag indicating instrumentation API is in use diff --git a/packages/react-router/test/server/wrapServerLoader.test.ts b/packages/react-router/test/server/wrapServerLoader.test.ts index 7dfb39bbed42..ce3be0f4319a 100644 --- a/packages/react-router/test/server/wrapServerLoader.test.ts +++ b/packages/react-router/test/server/wrapServerLoader.test.ts @@ -120,7 +120,6 @@ describe('wrapServerLoader', () => { it('should skip span creation and warn when instrumentation API is used', async () => { // Reset modules to get a fresh copy with unset warning flag vi.resetModules(); - // @ts-expect-error - Dynamic import for module reset works at runtime but vitest's typecheck doesn't fully support it const { wrapServerLoader: freshWrapServerLoader } = await import('../../src/server/wrapServerLoader'); // Set the global flag indicating instrumentation API is in use From e59c9db9697742597319a089dcf414c4a39ccc6e Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 19 Feb 2026 14:19:13 -0500 Subject: [PATCH 8/8] chore: fix ember tsconfig --- packages/ember/tsconfig.json | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/packages/ember/tsconfig.json b/packages/ember/tsconfig.json index e472924f4d0f..25436a743e00 100644 --- a/packages/ember/tsconfig.json +++ b/packages/ember/tsconfig.json @@ -4,25 +4,30 @@ "target": "es2022", "lib": ["DOM", "ES2022"], "allowJs": true, - "moduleResolution": "node", "allowSyntheticDefaultImports": true, "alwaysStrict": true, "strictNullChecks": true, "strictPropertyInitialization": true, "noEmitOnError": false, "noEmit": true, - "baseUrl": ".", "module": "esnext", "experimentalDecorators": true, "paths": { - "dummy/tests/*": ["tests/*"], - "dummy/*": ["tests/dummy/app/*", "app/*"], - "@sentry/ember": ["addon"], - "@sentry/ember/*": ["addon/*"], - "@sentry/ember/test-support": ["addon-test-support"], - "@sentry/ember/test-support/*": ["addon-test-support/*"], - "*": ["types/*"] + "dummy/tests/*": ["./tests/*"], + "dummy/*": ["./tests/dummy/app/*", "./app/*"], + "@sentry/ember": ["./addon"], + "@sentry/ember/*": ["./addon/*"], + "@sentry/ember/test-support": ["./addon-test-support"], + "@sentry/ember/test-support/*": ["./addon-test-support/*"], + "*": ["./types/*"] } }, - "include": ["app/**/*", "addon/**/*", "tests/**/*", "types/**/*", "test-support/**/*", "addon-test-support/**/*"] + "include": [ + "./app/**/*", + "./addon/**/*", + "./tests/**/*", + "./types/**/*", + "./test-support/**/*", + "./addon-test-support/**/*" + ] }