New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploy uses monorepo root for output instead of working dir or absolute path #4980
Comments
I don't have objections to changing it, but I would be interested in more opinions. cc @pnpm/collaborators |
please allow me some time to think about this. it's a very complex question. |
I think inferring the package/workspace from the working directory would be a nice addition. that's kind of what I expected when first running |
This would a breaking change, and personally I'm always using |
This command is experimental. Breaking changes are allowed. |
I must say I was a bit surprised that |
replaces path.join in deploy with path.resolve which will resolve relative and absolute paths to a relative path. pnpm#4980
…ry (pnpm#4980) Previously the deploy target directory was specified as a relative path to the workspace project root. This meant that absolute paths could not be used. Now this uses the current working directory and allows absolute paths, this is more in line with users expectations of unix command behaivour. close pnpm#4980
@shellscape did you think about it? A PR is submitted but I don't see enough feedback yet. |
I've been sick the last few days. I'll weigh in tomorrow |
If you're using Regardless of where the target is relative to, absolute paths would make it much easier to use. Also, were this adopted, a default filter of |
@shellscape did you have any objections to this? |
Apologies. I've been sick this past week and have not been able to get back to this. |
Hope you're feeling better soon. |
Would it be preferred if the change just allowed absolute paths to be used instead of changing the base path? |
@zkochan / @shellscape is there anything that I can do to help get #5026 reviewed & approved? the comments so far seem generally in favour, and I believe that I have addressed any objections satisfactorily. I'd really like to start using |
) * fix: plugin-commands-deploy use path resolve on deploy target directory (#4980) Previously the deploy target directory was specified as a relative path to the workspace project root. This meant that absolute paths could not be used. Now this uses the current working directory and allows absolute paths, this is more in line with users expectations of unix command behaivour. close #4980 * fix: allow both absolute and relative * docs: update changesets Co-authored-by: Zoltan Kochan <z@kochan.io>
thanks @zkochan 👍 |
pnpm version: 7.5.0
Code to reproduce the issue:
say you're in a project 'p' within a monorepo
Expected behavior:
I'd expect them both to put them within the current working dir.
Actual behavior:
it will put dist within the root of the monorepo,
Additional information:
it would also be really handy to infer the package from the working directory so filter can be omitted
Edit: apologies, just realised I got expected and actual the wrong way round
The text was updated successfully, but these errors were encountered: