Skip to content

pnpm should error if a pnpm-workspaces.yaml file exists #9170

@ThisIsMissEm

Description

@ThisIsMissEm

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

10

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

I accidentally called the pnpm-workspace.yaml file pnpm-workspaces.yaml and consequently observed really weird behavior with pnpm, it took me a good 20 minutes to realise that I'd misspelt the config file name.

Describe the Bug

pnpm should detect that a pnpm-workspace.yaml isn't present but a pnpm-workspaces.yaml file is present, the pluralisation is an easy mistake to make.

Expected Behavior

If a pnpm-workspaces.yaml file exists, error with a message informing that you probably meant pnpm-workspace.yaml instead.

Which Node.js version are you using?

22

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions