-
Notifications
You must be signed in to change notification settings - Fork 92
feat: Look for pnpm lockfiles in git-repo if not found in package repo #411
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
base: master
Are you sure you want to change the base?
Conversation
stevearc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing a separate vim.fs.find up to the git root (which is not guaranteed to exist), I'd prefer a solution that makes use of the fact that we're already doing get_candidate_package_files to find all possible package.json files. It would require a little refactoring, but we could inspect the directory of each of them for the lockfiles instead of just the one that we determine is the relevant package file.
Yeah looking at that function, it would make more sense to have the logic there or a similar function. Would it make sense to search for the closest lock-file, as well as the package.json? |
|
Maybe something like refactoring the |
|
What I am thinking is: we are already finding every possible |
|
Sounds good - I'll get on around to it |
|
I've updated the PR |
|
Not meaning to be disrespectful, but bumping this as it seems to have been forgotten @stevearc |
For pnpm monorepos its usually like so
. ├── .git ├── pnpm-lock.yaml ├── package.json └── packages/ ├── lib1/ │ └── package.json └── lib2/ └── package.jsonIn the current case this would default back to npm if inside lib1