diff --git a/changelog.md b/changelog.md index de26f1a..5f0955b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-11-17 - 3.0.0 - BREAKING CHANGE(TsBuild) +Stop forcing emitDecoratorMetadata in protected compiler defaults + +- Removed emitDecoratorMetadata from the set of protected/critical default compiler options. +- Projects that relied on tsbuild automatically enabling emitDecoratorMetadata (for DI frameworks like NestJS, TypeORM, Inversify) must now enable it explicitly in their tsconfig.json or via programmatic/CLI options. +- No other protected defaults were changed; outDir, noEmitOnError, declaration and inlineSourceMap remain enforced. +- Behavior is now more permissive: decorator metadata generation is controlled by user configuration rather than being forced by tsbuild. + ## 2025-11-17 - 2.7.3 - fix(tsbuild.classes) Remove duplicate emitDecoratorMetadata from default compiler options and centralize it in protected defaults diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d1f7be6..ff81a6b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbuild', - version: '2.7.3', + version: '3.0.0', description: 'A tool for compiling TypeScript files using the latest nightly features, offering flexible APIs and a CLI for streamlined development.' } diff --git a/ts/tsbuild.classes.tsbuild.ts b/ts/tsbuild.classes.tsbuild.ts index 8607c6c..925e990 100644 --- a/ts/tsbuild.classes.tsbuild.ts +++ b/ts/tsbuild.classes.tsbuild.ts @@ -130,7 +130,6 @@ export class TsBuild { outDir: 'dist_ts/', // Required for path transformation logic noEmitOnError: true, // Build integrity - prevent broken builds declaration: true, // Library consumers depend on .d.ts files - emitDecoratorMetadata: true, // Required for dependency injection frameworks inlineSourceMap: true, // Consistent debugging experience }; }