Skip to content

Relative storeDir path in pnpm-workspace should be relative to yaml file not to cwd #10290

@pimlie

Description

@pimlie

Verify latest release

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

pnpm version

10.24

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

Store

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

No response

Reproduction steps

Set storeDir: ../.pnpm-store in pnpm-workspace.yaml

Describe the Bug

In root of mono repo:

/some/project/web $ pnpm config get store-dir
../.pnpm-store
/some/project/web $ pnpm store path
/some/project/.pnpm-store/v10

then go to a package in the mono repo:

/some/project/web/apps/website $ pnpm config get store-dir
../.pnpm-store
/some/project/web/apps/website $ pnpm store path
/some/project/web/apps/.pnpm-store/v10

Expected Behavior

That both pnpm store path commands return the same store path

Which Node.js version are you using?

25.1

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

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions