lib/shared.js
function getRequirementsWorkingPath(
  subfolder,
  requirementsTxtDirectory,
  options
) {
  // If we want to use the static cache
  if (options && options.useStaticCache) {
    if (subfolder) {
      subfolder = subfolder + '_slspyc';
    }
    // If we have max number of cache items...

    return path.join(getUserCachePath(options), subfolder);
  }

  // If we don't want to use the static cache, then fallback to the way things used to work
  return path.join(requirementsTxtDirectory, 'requirements');
}
function getRequirementsWorkingPath(
  subfolder,
  requirementsTxtDirectory,
  options
) {
  // If we want to use the static cache
  if (options && options.useStaticCache) {
    if (subfolder) {
      subfolder = subfolder + '_slspyc';
    }
    // If we have max number of cache items...

    return path.join(getUserCachePath(options), subfolder);
  }

  // If we don't want to use the static cache, then fallback to the way things used to work
  return path.join(requirementsTxtDirectory, 'requirements');
}
function getRequirementsWorkingPath ( subfolder , requirementsTxtDirectory , options ) { // If we want to use the static cache if ( options && options . useStaticCache ) { if ( subfolder ) { subfolder = subfolder + '_slspyc' ; } // If we have max number of cache items... return path . join ( getUserCachePath ( options ) , subfolder ) ; } // If we don't want to use the static cache, then fallback to the way things used to work return path . join ( requirementsTxtDirectory , 'requirements' ) ; }
The working path that all requirements will be compiled into
@param  {string} subfolder
@param  {string} servicePath
@param  {Object} options
@return {string}
The working path that all requirements will be compiled into