docs: function exportDeployments(deployments) {
    if (!deployments) {
      throw new Error('Deployments have to be passed to be exported.');
    }
    return Object.values(deployments).map(deployment => {
      checkForErrors(deployment);
      deployment = setUpDeploymentStructure(deployment);
      writeDeploymentConfigs(deployment);
      return deployment;
    });
  }