Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pnpmPublic

feat: support check more invalid workspace file#10319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
btea wants to merge2 commits intopnpm:main
base:main
Choose a base branch
Loading
frombtea:feat/check-more-invalid-workspace-file-name

Conversation

@btea
Copy link
Member

close#10313

CopilotAI review requested due to automatic review settingsDecember 15, 2025 01:55
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR extends the detection of invalid workspace manifest filenames by adding two dot-prefixed variants (.pnpm-workspace.yaml and.pnpm-workspace.yml) to the list of invalid filenames. When these files are found, pnpm will throw a helpful error message guiding users to use the correctpnpm-workspace.yaml filename instead.

Key changes:

  • Adds.pnpm-workspace.yaml and.pnpm-workspace.yml to the list of invalid workspace manifest filenames that trigger an error
  • Updates changeset documentation to reflect the new behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

FileDescription
workspace/find-workspace-dir/src/index.tsExtendsINVALID_WORKSPACE_MANIFEST_FILENAME array to include dot-prefixed variants
.changeset/honest-radios-cut.mdDocuments the new feature in the changeset

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

constWORKSPACE_DIR_ENV_VAR='NPM_CONFIG_WORKSPACE_DIR'
constWORKSPACE_MANIFEST_FILENAME='pnpm-workspace.yaml'
constINVALID_WORKSPACE_MANIFEST_FILENAME=['pnpm-workspaces.yaml','pnpm-workspaces.yml','pnpm-workspace.yml']
constINVALID_WORKSPACE_MANIFEST_FILENAME=['pnpm-workspaces.yaml','pnpm-workspaces.yml','pnpm-workspace.yml','.pnpm-workspace.yaml','.pnpm-workspace.yml']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The newly added invalid workspace filenames (.pnpm-workspace.yaml and.pnpm-workspace.yml) lack test coverage. While there is an existing test inpnpm/test/monorepo/index.ts that verifies the error is thrown forpnpm-workspace.yml, the new dot-prefixed variants should also be tested to ensure they are properly detected and produce the expected error message.

Copilot uses AI. Check for mistakes.
constWORKSPACE_DIR_ENV_VAR='NPM_CONFIG_WORKSPACE_DIR'
constWORKSPACE_MANIFEST_FILENAME='pnpm-workspace.yaml'
constINVALID_WORKSPACE_MANIFEST_FILENAME=['pnpm-workspaces.yaml','pnpm-workspaces.yml','pnpm-workspace.yml']
constINVALID_WORKSPACE_MANIFEST_FILENAME=['pnpm-workspaces.yaml','pnpm-workspaces.yml','pnpm-workspace.yml','.pnpm-workspace.yaml','.pnpm-workspace.yml']
Copy link
Member

@zkochanzkochanDec 16, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'd check what is the impact of adding additional file name checks. If every invalid filename check adds one more fs operation, I don't think it makes sense at all.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Indeed, matching only the public partpnpm-workspace should be sufficient.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@zkochanzkochanzkochan left review comments

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add.pnpm-workspace.yaml and.pnpm-workspace.yml to invalid workspace manifest file names

2 participants

@btea@zkochan

[8]ページ先頭

©2009-2025 Movatter.jp