From 0c041c6aeab69aa315907ead275734ea250936c6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 10 Aug 2026 10:38:56 +0000 Subject: [PATCH] fix(ci): silence TS5101 baseUrl deprecation for Playwright builds Next 16.3 typechecks the isolated .next-playwright tsconfig during production UI builds; TypeScript 6 treats baseUrl as deprecated (TS5101) and fails the critical Playwright gate after the npm-production bump. --- scripts/run-lighthouse-budget.mjs | 8 +++++++- scripts/run-playwright.mjs | 3 +++ tsconfig.json | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/run-lighthouse-budget.mjs b/scripts/run-lighthouse-budget.mjs index 6bc98da207..57a4b6de4f 100644 --- a/scripts/run-lighthouse-budget.mjs +++ b/scripts/run-lighthouse-budget.mjs @@ -315,7 +315,13 @@ try { `${JSON.stringify( { extends: "../../tsconfig.json", - compilerOptions: { baseUrl: "../..", paths: { "@/*": ["src/*"] } }, + compilerOptions: { + // TypeScript 6 deprecates baseUrl (TS5101). Next 16.3+ typechecks this + // isolated config during `next build`, so silence until paths migrate. + ignoreDeprecations: "6.0", + baseUrl: "../..", + paths: { "@/*": ["src/*"] }, + }, }, null, 2, diff --git a/scripts/run-playwright.mjs b/scripts/run-playwright.mjs index 91c4a9c5f4..5118ef885a 100644 --- a/scripts/run-playwright.mjs +++ b/scripts/run-playwright.mjs @@ -254,6 +254,9 @@ try { { extends: "../../tsconfig.json", compilerOptions: { + // TypeScript 6 deprecates baseUrl (TS5101). Next 16.3+ typechecks this + // isolated config during `next build`, so silence until paths migrate. + ignoreDeprecations: "6.0", baseUrl: "../..", paths: { "@/*": ["src/*"] }, }, diff --git a/tsconfig.json b/tsconfig.json index d05a30f125..f305e2a439 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "isolatedModules": true, "jsx": "react-jsx", "incremental": true, + "ignoreDeprecations": "6.0", "tsBuildInfoFile": "node_modules/.cache/tsc/tsconfig.tsbuildinfo", "plugins": [ {