feat: reconstruct bun cli build

This commit is contained in:
paoloanzn committed 2026-03-31 14:34:56 +02:00
1 parent 4b9d30f795
commit e878a7ce35
39 files changed
+2756 -32

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@ import {
ColorFile,
getSyntaxTheme as nativeGetSyntaxTheme,
type SyntaxTheme,
} from 'color-diff-napi'
} from '../../native-ts/color-diff/index.js'
import { isEnvDefinedFalsy } from '../../utils/envUtils.js'
export type ColorModuleUnavailableReason = 'env'
@@ -12,8 +12,8 @@ export type ColorModuleUnavailableReason = 'env'
* Returns a static reason why the color-diff module is unavailable, or null if available.
* 'env' = disabled via CLAUDE_CODE_SYNTAX_HIGHLIGHT
*
* The TS port of color-diff works in all build modes, so the only way to
* disable it is via the env var.
* The reconstructed project always uses the bundled TypeScript port, so the
* only way to disable syntax highlighting is via the env var.
*/
export function getColorModuleUnavailableReason(): ColorModuleUnavailableReason | null {
if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT)) {