/** * 專案根路徑定義 / Project Root Path Definitions * * 使用中央化路徑管理,避免相對路徑 ../ 地獄 * Centralized path management to avoid relative path ../../.. hell */ import { join } from "path"; /** 套件根目錄 / Package root directory */ export const __ROOT = join(__dirname, '..'); /** 作業系統判斷:是否為 Windows 平台 / OS detection: Whether running on Windows platform */ export const isWin = process.platform === "win32"; /** 測試根目錄 / Test root directory */ export const __TEST_ROOT = join(__ROOT, 'test'); /** 測試資料目錄(唯讀)/ Test fixtures directory (read-only) */ export const __TEST_FIXTURES = join(__TEST_ROOT, 'fixtures');