From 94aff06cbc70ff6c8f1525d85155d38d2343ebea Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 17 Nov 2025 08:09:37 +0000 Subject: [PATCH] fix(tsconfig): Update TypeScript configs to ES2022 and remove deprecated compiler flags --- assets/tsconfig.json | 6 ++---- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- tsconfig.json | 2 -- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/assets/tsconfig.json b/assets/tsconfig.json index ba93097..ba3b16f 100644 --- a/assets/tsconfig.json +++ b/assets/tsconfig.json @@ -1,10 +1,8 @@ { "compilerOptions": { - "experimentalDecorators": true, - "target": "ES2020", - "module": "ES2020", + "target": "ES2022", + "module": "ES2022", "moduleResolution": "node12", - "useDefineForClassFields": false, "preserveValueImports": true, "esModuleInterop": true } diff --git a/changelog.md b/changelog.md index f3cdb07..3f94742 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-11-17 - 2.5.2 - fix(tsconfig) +Update TypeScript configs to ES2022 and remove deprecated compiler flags + +- assets/tsconfig.json: set target and module to ES2022 (was ES2020) +- assets/tsconfig.json and tsconfig.json: remove experimentalDecorators and useDefineForClassFields flags to align with updated TS setup + ## 2025-06-26 - 2.5.1 - fix(readme) Update license and legal information section in readme diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 9a07ebb..a32c8ab 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbundle', - version: '2.5.1', + version: '2.5.2', description: 'a multi-bundler tool supporting esbuild, rolldown, and rspack for painless bundling of web projects' } diff --git a/tsconfig.json b/tsconfig.json index dfe5a55..70d3f34 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,5 @@ { "compilerOptions": { - "experimentalDecorators": true, - "useDefineForClassFields": false, "target": "ES2022", "module": "NodeNext", "moduleResolution": "NodeNext",