Open
Description
Contribution
- I'd be willing to implement this feature (contributing guide)
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