refactor: 移除 ccw/package.json 文件并更新路径引用

This commit is contained in:
catlog22
2025-12-23 09:47:07 +08:00
parent 8203d690cb
commit fdac697f6e
4 changed files with 3 additions and 69 deletions

View File

@@ -49,7 +49,7 @@ const VERSION_CHECK_CACHE_TTL = 3600000; // 1 hour
*/
function getCurrentVersion(): string {
try {
const packageJsonPath = join(import.meta.dirname, '../../../package.json');
const packageJsonPath = join(import.meta.dirname, '../../../../package.json');
if (existsSync(packageJsonPath)) {
const pkg = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
return pkg.version || '0.0.0';