mirror of
https://github.com/paoloanzn/free-code.git
synced 2026-10-23 11:32:17 -05:00
feat: reconstruct bun cli build
This commit is contained in:
1 parent
4b9d30f795
commit
e878a7ce35
39 files changed
+2756
-32
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user