feat: 第一个可启动版本

This commit is contained in:
claude-code-best
2026-03-31 20:55:36 +08:00
parent bd756cc369
commit 751a684dcf
3 changed files with 79 additions and 226 deletions

View File

@@ -1,4 +1,16 @@
import { feature } from "bun:bundle";
// Runtime polyfill for bun:bundle (build-time macros)
const feature = (_name: string) => false;
if (typeof globalThis.MACRO === "undefined") {
(globalThis as any).MACRO = {
VERSION: "2.1.87",
BUILD_TIME: new Date().toISOString(),
FEEDBACK_CHANNEL: "",
ISSUES_EXPLAINER: "",
NATIVE_PACKAGE_URL: "",
PACKAGE_URL: "",
VERSION_CHANGELOG: "",
};
}
// Bugfix for corepack auto-pinning, which adds yarnpkg to peoples' package.jsons
// eslint-disable-next-line custom-rules/no-top-level-side-effects