Adding Sage repo to composer and adding it as a theme

I’m trying to add a basic sage repo to composer using bedrock. Every time I tried to add it I get an error when I’m trying to run composer update. One of the errors I get is

“wordpress-theme” is not a valid type

I’m using the base bedrock composer file too where it has the following

  "extra": {
"installer-paths": {
  "web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
  "web/app/plugins/{$name}/": ["type:wordpress-plugin"],
  "web/app/themes/{$name}/": ["type:wordpress-theme"]

So I don’t understand what I’m doing wrong. Is there a template on how to add a theme to bedrock using composer, specifically if the theme has a repo on github like Sage?

Figured it out. I was missing a composer.json in the theme folder.

Can you explain what you did here?

Try running composer init from the theme folder, that will generate a composer.json file for you.

thanks @kalenjohnson , I think what I am trying to figure out is having sage be installed when I run the composer file in the root of bedrock. trying to minimize steps. if I can get it with the initial composer file, is that possible?