handle requiring the main/bridge module and exposing packages in the build template