From e40187179d8ffa7766ec410f09b2c20973eed49e Mon Sep 17 00:00:00 2001 From: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com> Date: Wed, 6 May 2026 12:29:46 +0200 Subject: [PATCH] packages/client-ts: Fix TypeScript config, ESBuild warnings (#21863) * packages/client-ts: drop composite/incremental from tsconfig template Sync with goauthentik/client-ts#13. The flags are the mechanism of the missing-dist release bug upstream; harmless in the monorepo (no publishing) but pointless for a single-package, no-project-references setup. Keeping the two trees aligned avoids drift. Co-Authored-By: Agent (authentik-m-sync-packages-final-concrete-buff) <279763771+playpen-agent@users.noreply.github.com> * Fix package not building. --------- Co-authored-by: Agent (authentik-m-sync-packages-final-concrete-buff) <279763771+playpen-agent@users.noreply.github.com> --- packages/client-ts/package.json | 3 ++- packages/client-ts/templates/tsconfig.mustache | 2 -- packages/client-ts/tsconfig.json | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/client-ts/package.json b/packages/client-ts/package.json index 1c4e4abb7a..aee985f001 100644 --- a/packages/client-ts/package.json +++ b/packages/client-ts/package.json @@ -8,7 +8,8 @@ "url": "https://github.com/goauthentik/authentik.git" }, "scripts": { - "build": "tsc && tsc -p tsconfig.esm.json", + "clean": "tsc -b --clean tsconfig.json tsconfig.esm.json", + "build": "npm run clean && tsc -b tsconfig.json tsconfig.esm.json", "prepare": "npm run build" }, "main": "./dist/index.js", diff --git a/packages/client-ts/templates/tsconfig.mustache b/packages/client-ts/templates/tsconfig.mustache index 17aa9b7803..3da6b4340f 100644 --- a/packages/client-ts/templates/tsconfig.mustache +++ b/packages/client-ts/templates/tsconfig.mustache @@ -1,9 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "composite": true, "isolatedModules": true, - "incremental": true, "rootDir": "src", "strict": true, "newLine": "lf", diff --git a/packages/client-ts/tsconfig.json b/packages/client-ts/tsconfig.json index 90e44ec2b5..e2b7fa0d4f 100644 --- a/packages/client-ts/tsconfig.json +++ b/packages/client-ts/tsconfig.json @@ -1,9 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { - "composite": true, "isolatedModules": true, - "incremental": true, "rootDir": "src", "strict": true, "newLine": "lf",