Skip to content

Commit 77a44d1

Browse files
author
liangweifeng
committed
fix: 修复 docs/package-lock.json 被 gitignore 忽略的问题
- 将 gitignore 中的 package-lock.json 改为 /package-lock.json(只忽略根目录) - 添加 !docs/package-lock.json 明确允许追踪 docs 目录下的 lockfile - 添加 docs/package-lock.json 到版本控制,修复 GitHub Actions npm ci 错误
1 parent 5490e12 commit 77a44d1

File tree

2 files changed

+2471
-1
lines changed

2 files changed

+2471
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ CLAUDE.md
4646
node_modules/
4747
docs/.vitepress/cache/
4848
docs/.vitepress/dist/
49-
package-lock.json
49+
/package-lock.json
50+
!docs/package-lock.json

0 commit comments

Comments
 (0)