Skip to content

pnpm deploy should use "deploy" script if not in workspace #9475

@ashtonmeuser

Description

@ashtonmeuser

Contribution

Describe the user story

Running pnpm deploy in most of my projects produces:

ERR_PNPM_CANNOT_DEPLOY  A deploy is only possible from inside a workspace

If PNPM detects that it is not inside a workspace, it should look for a package.json script named "deploy" and run that. I love PNPM's ability to run my scripts without "run" e.g. pnpm format, pnpm typegen, etc. This would align the behaviour of pnpm deploy for those projects defining a custom deployment script.

Describe the solution you'd like

Running pnpm deploy outside of a workspace runs a package.json "deploy" script, if available.

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions