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

Appearance settings

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

Copy link
Copy link
@ashtonmeuser

Description

@ashtonmeuser
Issue body actions

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

ADTC, KieranP and nilsbungerADTCADTC and KieranPADTC

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.