lib/zip.js
function removeVendorHelper() {
  if (this.options.zip && this.options.cleanupZipHelper) {
    if (this.serverless.service.package.individually) {
      return BbPromise.resolve(this.targetFuncs)
        .map(f => {
          if (!get(f, 'module')) {
            set(f, ['module'], '.');
          }
          return f;
        })
        .then(funcs => uniqBy(funcs, f => f.module))
        .map(f => {
          this.serverless.cli.log(
            `Removing Python requirements helper from ${f.module}...`
          );
          return fse.removeAsync(
            path.join(this.servicePath, f.module, 'unzip_requirements.py')
          );
        });
    } else {
      this.serverless.cli.log('Removing Python requirements helper...');
      return fse.removeAsync(
        path.join(this.servicePath, 'unzip_requirements.py')
      );
    }
  }
}
function removeVendorHelper() {
  if (this.options.zip && this.options.cleanupZipHelper) {
    if (this.serverless.service.package.individually) {
      return BbPromise.resolve(this.targetFuncs)
        .map(f => {
          if (!get(f, 'module')) {
            set(f, ['module'], '.');
          }
          return f;
        })
        .then(funcs => uniqBy(funcs, f => f.module))
        .map(f => {
          this.serverless.cli.log(
            `Removing Python requirements helper from ${f.module}...`
          );
          return fse.removeAsync(
            path.join(this.servicePath, f.module, 'unzip_requirements.py')
          );
        });
    } else {
      this.serverless.cli.log('Removing Python requirements helper...');
      return fse.removeAsync(
        path.join(this.servicePath, 'unzip_requirements.py')
      );
    }
  }
}
function removeVendorHelper ( ) { if ( this . options . zip && this . options . cleanupZipHelper ) { if ( this . serverless . service . package . individually ) { return BbPromise . resolve ( this . targetFuncs ) . map ( f => { if ( ! get ( f , 'module' ) ) { set ( f , [ 'module' ] , '.' ) ; } return f ; } ) . then ( funcs => uniqBy ( funcs , f => f . module ) ) . map ( f => { this . serverless . cli . log ( ` ${ f . module } ` ) ; return fse . removeAsync ( path . join ( this . servicePath , f . module , 'unzip_requirements.py' ) ) ; } ) ; } else { this . serverless . cli . log ( 'Removing Python requirements helper...' ) ; return fse . removeAsync ( path . join ( this . servicePath , 'unzip_requirements.py' ) ) ; } } }
Remove the vendor helper from the current service tree.
@return {Promise} the promise to remove the vendor helper.
Remove the vendor helper from the current service tree .