tower-frontend: support outputing artifacts into the dep file