pdm-example-monorepo icon indicating copy to clipboard operation
pdm-example-monorepo copied to clipboard

Update README.md: Explain how to deal with updates in sub-projects dependencies

Open gg-mmill opened this issue 1 year ago • 1 comments

Hello, thanks a lot for this example repo.

This issue bugged me for some time (until I realized that pdm lock indeed re-generated the lock file correctly).

I first thought there was a deeper bug, that prevented taking into account modifications in the dependencies of the sub-projects.

gg-mmill avatar Apr 11 '24 08:04 gg-mmill

@gg-mmill I'd suggest adding this into README.md too:

ls packages | xargs -I % sh -c "pdm update -p packages/%"

or create a wrapper shell script, e.g. pdm-sub-pkgs.sh :

ls packages | xargs -I % sh -c "pdm ${@} -p packages/%"

Then you can do ./pdm-sub-pkgs.sh update

sinogermany avatar Apr 17 '24 09:04 sinogermany