Composer: Develop directly in vendor packages

前端 未结 3 1739
情歌与酒
情歌与酒 2021-01-02 11:43

I have a PHP project where I use composer.

My own main library is actually a required package, as I\'m also building a \"standalone version\" for people to install (

相关标签:
3条回答
  • 2021-01-02 12:04

    As of a couple minutes ago composer updates will now ask you whether you want to revert the changes or do a stash/apply before/after the package update. This should help quite a bit with such problems, see https://github.com/composer/composer/pull/1188 for details.

    0 讨论(0)
  • 2021-01-02 12:09

    You can update only a single or few packages by specifying them at the end for the update comamnd:

    composer update pkg1 pkg2 ...
    
    0 讨论(0)
  • 2021-01-02 12:19

    After all these years... I have created a package that makes it easy to develop Composer packages while using them, making use of Composer's "path repositories", but without having to touch composer.json, which might not be desirable in a repository shared with other developers.

    Shameless plug, but this was my own question, so I hope this is okay. :)

    0 讨论(0)
提交回复
热议问题