chore(gitignore): 忽略 pnpm 自动生成的 pnpm-workspace.yaml 占位 - #16
Merged
Conversation
pnpm 在某些场景下会自动在仓库根生成 pnpm-workspace.yaml 占位文件 (内容只有 "allowBuilds: esbuild: set this to true or false" 这种 hint), 但 Inalpha 不是 pnpm monorepo(仓库根无 package.json,apps/web 与 packages/orchestration 各自独立 pnpm-lock),这个文件没用且会反复出现 让 git status 一直 dirty。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying inalpha-web with
|
| Latest commit: |
4d38a2e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://17057bf8.inalpha-web.pages.dev |
| Branch Preview URL: | https://chore-gitignore-pnpm-workspa.inalpha-web.pages.dev |
Contributor
|
LGTM ✔ 改动只涉及
注释语言(英文)、命名规范、提交标题(中文 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`pnpm-workspace.yaml` 会在某些场景下被 pnpm 自动生成在仓库根(内容只有 `allowBuilds: esbuild: set this to true or false` 这种 hint placeholder),但 Inalpha 不是 pnpm monorepo:
这个占位文件没有实际用途,但会反复出现让 `git status` 一直 dirty。
把它加进 `.gitignore`(Node 段),一行注释说明原因,方便未来真要转 pnpm monorepo 时知道为什么 ignore。
Test plan
🤖 Generated with Claude Code