pnpm deploy
probably shouldn't allow trashing the workspace by default
#7351
Labels
pnpm deploy
probably shouldn't allow trashing the workspace by default
#7351
Verify latest release
pnpm version
8.11.0
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
Describe the Bug
When (accidentally, inadvertently, etc) setting
deploy
's target directory to.
, the workspace isrimraf
'd. (Or any target directory for that matter.)Stack Overflow question referring to this: https://stackoverflow.com/q/77561255/51685
Expected Behavior
deploy
should probably notrimraf
the target directory if it's non-empty unless told to, and it should probably refuse to work on the present pnpm workspace's root too.Which Node.js version are you using?
v20.9.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
Debian (node:20 Docker image)
The text was updated successfully, but these errors were encountered: