Skip to content

pnpm deploy --legacy creates empty node_modules #9596

@theodor-aws

Description

@theodor-aws

Verify latest release

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

pnpm version

10.11.1

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

pnpm version 10.11.0 does NOT have this issue.
pnpm version 10.11.1 does have the issue:

the following command:
pnpm --filter "./**" --legacy deploy output

produces empty node_modules folder:

output:
-- node_modules:
-- -- .pnpm-workspace-state.json
(and nothing else)

Describe the Bug

pnpm version 10.11.0 does NOT have this issue.
pnpm version 10.11.1 does have the issue:

the following command:
pnpm --filter "./**" --legacy deploy output

produces empty node_modules folder:

output:
-- node_modules:
-- -- .pnpm-workspace-state.json
(and nothing else)

Expected Behavior

I expect the node_modules folder to have exported modules

Which Node.js version are you using?

v22.14.0

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)

Amazon Linux 2022

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