From 768d03a4b96d5b66bae80128ff3b530b2e5c480a Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 8 May 2024 16:11:39 +0200 Subject: [PATCH] update tsconfig in the correct place + enlarge the warning --- .../devops/tsconfig/index.js | 16 +++++++++++++--- src/Umbraco.Web.UI.Client/tsconfig.json | 9 ++++++++- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/devops/tsconfig/index.js b/src/Umbraco.Web.UI.Client/devops/tsconfig/index.js index e05b6550ab..e7dea16f82 100644 --- a/src/Umbraco.Web.UI.Client/devops/tsconfig/index.js +++ b/src/Umbraco.Web.UI.Client/devops/tsconfig/index.js @@ -3,13 +3,23 @@ import { format, resolveConfig } from 'prettier'; import { createImportMap } from '../importmap/index.js'; const tsconfigPath = 'tsconfig.json'; -const tsconfigComment = `// Don't edit this file directly. It is generated by /devops/tsconfig/index.js\n\n`; +const tsconfigComment = ` +/* ------------------------------------------------------------------------- + + +DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js + + + + +--------------------------------------------------------------------------- */ +`; const tsConfigBase = { compilerOptions: { module: 'esnext', - target: 'ES2020', - lib: ['es2020', 'dom', 'dom.iterable'], + target: 'es2022', + lib: ['es2022', 'dom', 'dom.iterable'], outDir: './types', allowSyntheticDefaultImports: true, experimentalDecorators: true, diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json index 63d9866574..316fbbe6d5 100644 --- a/src/Umbraco.Web.UI.Client/tsconfig.json +++ b/src/Umbraco.Web.UI.Client/tsconfig.json @@ -1,5 +1,12 @@ -// Don't edit this file directly. It is generated by /devops/tsconfig/index.js +/* ------------------------------------------------------------------------- + +DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js + + + + +--------------------------------------------------------------------------- */ { "compilerOptions": { "module": "esnext",