update tsconfig in the correct place + enlarge the warning

This commit is contained in:
Mads Rasmussen
2024-05-08 16:11:39 +02:00
parent 3c07e70cb1
commit 768d03a4b9
2 changed files with 21 additions and 4 deletions

View File

@@ -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,