refactor: 完成项目整体目录重构与路径别名配置

1.  重构项目文件结构,统一文件存放位置与命名规则
2.  配置tsconfig路径别名,替换原有相对路径导入
3.  迁移drama-status枚举到dramas.types统一管理
4.  新增全局配置文件与工具类,补充完整注释与文档
5.  修复所有导入路径与依赖引用问题
This commit is contained in:
2026-07-02 19:17:56 +08:00
parent e84351e8ed
commit 4eff4d877e
71 changed files with 1216 additions and 764 deletions

View File

@@ -6,5 +6,11 @@
"watchman": false,
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"moduleNameMapper": {
"^@src/(.*)$": "<rootDir>/src/$1",
"^@config/(.*)$": "<rootDir>/config/$1",
"^@constants/(.*)$": "<rootDir>/constants/$1",
"^@app/(.*)$": "<rootDir>/$1"
}
}