MCPcopy
hub / github.com/claude-code-best/claude-code / getMacroDefines

Function getMacroDefines

scripts/defines.ts:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 * VERSION is read from package.json to avoid version drift.
17 */
18export function getMacroDefines(): Record<string, string> {
19 return {
20 'MACRO.VERSION': JSON.stringify(pkg.version),
21 'MACRO.BUILD_TIME': JSON.stringify(new Date().toISOString()),
22 'MACRO.FEEDBACK_CHANNEL': JSON.stringify(''),
23 'MACRO.ISSUES_EXPLAINER': JSON.stringify(''),
24 'MACRO.NATIVE_PACKAGE_URL': JSON.stringify(''),
25 'MACRO.PACKAGE_URL': JSON.stringify(''),
26 'MACRO.VERSION_CHANGELOG': JSON.stringify(''),
27 }
28}
29
30/**
31 * Default feature flags enabled in both Bun.build and Vite builds.

Callers 3

vite.config.tsFile · 0.90
build.tsFile · 0.90
dev.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected