fix(TsBuild): Set default TypeScript target to ESNext
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-11-28 - 3.1.2 - fix(TsBuild)
|
||||||
|
Set default TypeScript target to ESNext
|
||||||
|
|
||||||
|
- Default compiler target changed from ScriptTarget.ES2024 to ScriptTarget.ESNext in ts/tsbuild.classes.tsbuild.ts
|
||||||
|
- Aligns the default compiler options with documentation and ensures use of the latest language features
|
||||||
|
|
||||||
## 2025-11-27 - 3.1.1 - fix(compiler)
|
## 2025-11-27 - 3.1.1 - fix(compiler)
|
||||||
Update default TypeScript target to ES2024
|
Update default TypeScript target to ES2024
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tsbuild',
|
name: '@git.zone/tsbuild',
|
||||||
version: '3.1.1',
|
version: '3.1.2',
|
||||||
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
|
description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const compilerOptionsDefault: CompilerOptions = {
|
|||||||
noEmitOnError: true,
|
noEmitOnError: true,
|
||||||
outDir: 'dist_ts/',
|
outDir: 'dist_ts/',
|
||||||
module: plugins.typescript.ModuleKind.NodeNext,
|
module: plugins.typescript.ModuleKind.NodeNext,
|
||||||
target: plugins.typescript.ScriptTarget.ES2024,
|
target: plugins.typescript.ScriptTarget.ESNext,
|
||||||
moduleResolution: plugins.typescript.ModuleResolutionKind.NodeNext,
|
moduleResolution: plugins.typescript.ModuleResolutionKind.NodeNext,
|
||||||
lib: ['lib.dom.d.ts', 'lib.esnext.d.ts'],
|
lib: ['lib.dom.d.ts', 'lib.esnext.d.ts'],
|
||||||
noImplicitAny: false, // Allow implicit any by default
|
noImplicitAny: false, // Allow implicit any by default
|
||||||
|
|||||||
Reference in New Issue
Block a user