We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eca1acc + cd70c1b commit fc0bebfCopy full SHA for fc0bebf
1 file changed
src/entrypoints/cli.tsx
@@ -1,6 +1,20 @@
1
#!/usr/bin/env bun
2
import { feature } from 'bun:bundle'
3
4
+// Runtime fallback for MACRO.* when not injected by build/dev defines.
5
+// This happens when running cli.tsx directly (not via `bun run dev` or built dist/).
6
+if (typeof globalThis.MACRO === 'undefined') {
7
+ ;(globalThis as any).MACRO = {
8
+ VERSION: process.env.CLAUDE_CODE_VERSION || '2.1.888',
9
+ BUILD_TIME: new Date().toISOString(),
10
+ FEEDBACK_CHANNEL: '',
11
+ ISSUES_EXPLAINER: '',
12
+ NATIVE_PACKAGE_URL: '',
13
+ PACKAGE_URL: '',
14
+ VERSION_CHANGELOG: '',
15
+ }
16
+}
17
+
18
// Bugfix for corepack auto-pinning, which adds yarnpkg to peoples' package.jsons
19
// eslint-disable-next-line custom-rules/no-top-level-side-effects
20
process.env.COREPACK_ENABLE_AUTO_PIN = '0'
0 commit comments