Custom Theme Repository update I have a custom theme that I use in several websites.
My theme is on gitlab.
I can download my theme by composer in different websites.
My problem is when I update repository theme with a fix or new feature and then this do not mirror on websites, even if I delete theme folder and composer.json info, it's always stuck on the same version.
My composer.json of theme repository
{
&quot;name&quot;: &quot;test/test-theme&quot;,
&quot;description&quot;: &quot;Drupal Custom Theme&quot;,
&quot;type&quot;: &quot;drupal-custom-theme&quot;,
&quot;minimum-stability&quot;: &quot;dev&quot;,
&quot;require&quot;: {}

}
My composer.json from the website:
&quot;repositories&quot;: [
    {
        &quot;type&quot;: &quot;composer&quot;,
        &quot;url&quot;: &quot;https://packages.drupal.org/8&quot;
    },
    {
        &quot;type&quot;: &quot;package&quot;,
        &quot;package&quot;: {
          &quot;name&quot;: &quot;test/test-theme&quot;,
          &quot;version&quot;: &quot;dev&quot;,
          &quot;type&quot;: &quot;drupal-custom-theme&quot;,
          &quot;source&quot;: {
            &quot;type&quot;: &quot;git&quot;,
            &quot;url&quot;: &quot;{URL}&quot;,
            &quot;reference&quot;: &quot;master&quot;
          }
        }
      }
],
&quot;require&quot;: {
    &quot;test/test-theme&quot;: &quot;dev&quot;,
 }

How can I update my theme last features with composer?
We had a similar setup. But the only difference is we create a new tag for every update in the theme repository. So we just reference the new tag in  website composer.I would suggest you to try that instead of referencing branch so you get updated code on every compiser update.
If you are not interested in doing in that manner I would suggest you to clear composer cache and execute composer update you will probably get the updated code.