- doctorDiagnostic: 增加 Windows nvm4w/nodejs 路径检测 - 路径比较时统一规范化分隔符,确保跨平台匹配 - chore: bump version to 4.0.8
19 lines
732 B
TypeScript
19 lines
732 B
TypeScript
/**
|
|
* Shared MACRO define map used by both dev.ts (runtime -d flags)
|
|
* and build.ts (Bun.build define option).
|
|
*
|
|
* Each value is a JSON-stringified expression that replaces the
|
|
* corresponding MACRO.* identifier at transpile / bundle time.
|
|
*/
|
|
export function getMacroDefines(): Record<string, string> {
|
|
return {
|
|
"MACRO.VERSION": JSON.stringify("4.0.8"),
|
|
"MACRO.BUILD_TIME": JSON.stringify(new Date().toISOString()),
|
|
"MACRO.FEEDBACK_CHANNEL": JSON.stringify(""),
|
|
"MACRO.ISSUES_EXPLAINER": JSON.stringify(""),
|
|
"MACRO.NATIVE_PACKAGE_URL": JSON.stringify(""),
|
|
"MACRO.PACKAGE_URL": JSON.stringify("@costrict/csc"),
|
|
"MACRO.VERSION_CHANGELOG": JSON.stringify(""),
|
|
};
|
|
}
|