Switch ts target to es2022 (#1811)

This commit is contained in:
Michael Telatynski 2024-08-01 16:16:12 +01:00 committed by GitHub
parent 13a0d0d3e2
commit ca05241e72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -2,10 +2,10 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"esModuleInterop": true, "esModuleInterop": true,
"target": "es2016", "target": "es2022",
"sourceMap": false, "sourceMap": false,
"strict": true, "strict": true,
"lib": ["es2020"] "lib": ["es2022"]
}, },
"include": ["../scripts/@types/*.d.ts", "./**/*.ts"], "include": ["../scripts/@types/*.d.ts", "./**/*.ts"],
"ts-node": { "ts-node": {

View File

@ -3,9 +3,9 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"moduleResolution": "node", "moduleResolution": "node",
"esModuleInterop": true, "esModuleInterop": true,
"target": "es2017", "target": "es2022",
"module": "es2022", "module": "es2022",
"lib": ["ESNext", "es2021", "dom"] "lib": ["es2022", "dom"]
}, },
"include": ["**/*.ts"] "include": ["**/*.ts"]
} }

View File

@ -4,13 +4,13 @@
"esModuleInterop": true, "esModuleInterop": true,
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",
"target": "es2016", "target": "es2022",
"sourceMap": false, "sourceMap": false,
"outDir": "./lib", "outDir": "./lib",
"rootDir": "./src", "rootDir": "./src",
"declaration": true, "declaration": true,
"typeRoots": ["src/@types", "node_modules/@types"], "typeRoots": ["src/@types", "node_modules/@types"],
"lib": ["es2020", "dom"], "lib": ["es2022", "dom"],
"types": ["node"], "types": ["node"],
"strict": true "strict": true
}, },