Skip to content

Commit 0be12cd

Browse files
committed
fix(docs): 将 docs/tsconfig.json 纳入版本控制
根 .gitignore 的 *.json 规则会忽略 docs 下的 JSON;在 docs/.gitignore 用 !tsconfig.json/!package.json 重新纳入,确保克隆后类型检查/构建配置完整。
1 parent f3835d0 commit 0be12cd

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

docs/.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ dist
33
.vite
44
*.local
55

6-
# 根 .gitignore 忽略了所有 pnpm-lock.yaml,这里为文档站重新纳入
7-
# 供 CI 的 --frozen-lockfile 与依赖缓存使用
6+
# 根 .gitignore 用 *.json / pnpm-lock.yaml 忽略了这些文件
7+
# 这里为文档站重新纳入版本控制(构建/类型检查/依赖锁定需要)
88
!pnpm-lock.yaml
9+
!tsconfig.json
10+
!package.json

docs/tsconfig.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "@vue/tsconfig/tsconfig.dom.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {"@/*": ["./src/*"]},
6+
"types": ["vite/client"]
7+
},
8+
"include": ["src/**/*.ts", "src/**/*.vue", "vite.config.ts", "env.d.ts"]
9+
}

0 commit comments

Comments
 (0)