fix(templates/multienv): Disable useDefineForClassFields in multienv TypeScript configs to ensure decorator compatibility

This commit is contained in:
2025-11-17 01:49:35 +00:00
parent 81d6273346
commit f6886f172d
4 changed files with 9 additions and 1 deletions

View File

@@ -10,4 +10,5 @@ preload = []
# Enable decorators for Bun's TypeScript transpiler # Enable decorators for Bun's TypeScript transpiler
# This ensures user code with decorators works when executed via Bun # This ensures user code with decorators works when executed via Bun
[transpiler] [transpiler]
useDefineForClassFields = false,
experimentalDecorators = true experimentalDecorators = true

View File

@@ -1,6 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"useDefineForClassFields": false,
"lib": ["ES2022", "DOM"], "lib": ["ES2022", "DOM"],
"target": "ES2022", "target": "ES2022",
"checkJs": true "checkJs": true

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2025-11-17 - 1.21.2 - fix(templates/multienv)
Disable useDefineForClassFields in multienv TypeScript configs to ensure decorator compatibility
- Set useDefineForClassFields = false in assets/templates/multienv/bunfig.toml to keep Bun's transpiler compatible with decorator usage
- Set "useDefineForClassFields": false in assets/templates/multienv/deno.json to ensure Deno/TypeScript compiler emits class fields compatible with decorators
## 2025-11-17 - 1.21.1 - fix(templates.multienv) ## 2025-11-17 - 1.21.1 - fix(templates.multienv)
Enable checkJs in multienv Deno template to enable JS type checking Enable checkJs in multienv Deno template to enable JS type checking

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/cli', name: '@git.zone/cli',
version: '1.21.1', version: '1.21.2',
description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.' description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.'
} }