How to make composer NOT create a .git directory for a package

前端 未结 3 2103
挽巷
挽巷 2021-01-03 21:46

I found a couple related posts, but those don\'t really answer my question. Let\'s say I want to install this package: https://github.com/pear/Net_Socket

an excerpt

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 22:47

    composer update --prefer-dist works fine, but it might be simpler to just change the default download method for composer packages (composer.json):

    {
    "config": {
        "preferred-install": {
            "*": "dist"
        }
      }
    }
    

    https://getcomposer.org/doc/06-config.md#preferred-install

提交回复
热议问题