From 4cb52e8eefae3be4138776399b7411ba2b1c38cf Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 14 Jan 2025 03:28:25 +0100 Subject: [PATCH] feat(build): Add tsconfig.json for TypeScript configuration --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- tsconfig.json | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/changelog.md b/changelog.md index 4c4aaf6..be6daac 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-01-14 - 1.1.0 - feat(build) +Add tsconfig.json for TypeScript configuration + +- Introduced tsconfig.json with configurations targeting ES2022 and using NodeNext for module system. +- Enabled experimental decorators and verbatim module syntax in TypeScript config. + ## 2025-01-14 - 1.0.19 - fix(core) Upgraded dependencies and fixed test export issue diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index c1d61b4..7b8b5a6 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@consent.software/webclient', - version: '1.0.19', + version: '1.1.0', description: 'a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.' } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..dfe5a55 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "experimentalDecorators": true, + "useDefineForClassFields": false, + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "esModuleInterop": true, + "verbatimModuleSyntax": true + }, + "exclude": [ + "dist_*/**/*.d.ts" + ] +}