src/cli.js
function validateRelativePath(pluginDir) {
  return str => {
    try {
      const stat = fs.statSync(path.join(pluginDir, str));
      return stat.isFile();
    } catch (e) {
      return false;
    }
  };
}
function validateRelativePath(pluginDir) {
  return str => {
    try {
      const stat = fs.statSync(path.join(pluginDir, str));
      return stat.isFile();
    } catch (e) {
      return false;
    }
  };
}
function validateRelativePath ( pluginDir ) { return str => { try { const stat = fs . statSync ( path . join ( pluginDir , str ) ) ; return stat . isFile ( ) ; } catch ( e ) { return false ; } } ; }
Return validator for `relative-path` format

@param {string} pluginDir
@return {function(string): boolean}
Return validator for relative - path format