internals/setup.js
/**
 * Deletes the current directory
 *
 * @returns {Promise<any>}
 */
Deletes the current directory
@returns {Promise}
Deletes the current directory @returns { Promise }
function deleteCurrentDir() {
  return new Promise((resolve, reject) => {
    rimraf(__dirname, error => {
      if (error) {
        reject(new Error(error))
      } else {
        resolve()
      }
    })
  })
}
function deleteCurrentDir ( ) { return new Promise ( ( resolve , reject ) => { rimraf ( __dirname , error => { if ( error ) { reject ( new Error ( error ) ) } else { resolve ( ) } } ) } ) }
Deletes the current directory
 @returns {Promise<any>}
Deletes the current directory @returns { Promise<any > }