Exclude pods from builds in Brocfile

Hi all, Is there any way to exclude a pod/module from a build in a Brocfile (or any other place)?

The use case is where I have an app made of sub-apps within pods. eg.

  • /app/modules/components
  • /app/modules/app1
  • /app/modules/app2
  • /app/modules/app3

I’d like to build them all when environment is set to ‘development’ or only eg. ‘app1’ when environment is ‘app1’. Any suggestions?